Every resource and resource collection in Enterprise Manager REST API has its own URL. A resource URL functions as a reference to an Enterprise Manager object: it is a resource address that the client can use to access the resource. For example, a backup server connected to Enterprise Manager can be addressed by the URL of the following type:
Every resource URL consists of two parts:
- Base URL of Veeam Backup Enterprise Manager REST API
- Resource location
The base URL is common for all resources: it is the entry point to Veeam Backup Enterprise Manager REST API. Veeam Backup Enterprise Manager REST API has the following base URL:
- <Enterprise-Manager> is the name of the machine on which Veeam Backup Enterprise Manager is installed.
- 9398 is an HTTPS port used to communicate with the REST API web service.
In earlier versions of Veeam Backup & Replication, you could also access Veeam Backup Enterprise Manager REST API over the HTTP protocol using port 9399. This protocol is deprecated as insecure and is not used in version 1.5 of Veeam Backup Enterprise Manager REST API.
The resource location identifies the path to the resource itself in Enterprise Manager REST API. The resource location is suffixed to the base URL, forming the URL for the resource. For example, you can access the collection of jobs by the URL of the following type:
The resource location for key resources includes the entity ID. Every key resource has an entity ID — an object identifier in the URN format. The entity ID is unique and persists for the time of the Veeam Backup Enterprise Manager REST API work session. For example, a backup server connected to Veeam Backup Enterprise Manager can have the following entity ID and the following URN:
Non-key resources may or may not have IDs that are called resource IDs. For example, the task resource has a resource ID of the following format:
Such resources as files or directories do not have IDs:
The client must never construct URLs for resources itself. URLs for all resources and actions that the client can perform are generated automatically by the server and provided in resource representations. The client should only select the URL it needs and send a necessary HTTP request to it.