Get VM Replication Job
You can get a resource representation of a replication job with the specified UID that protects virtual machines.
Required Privileges
To perform this task, a user must have one of the following roles assigned: Portal Administrator, Service Provider Global Administrator, Service Provider Administrator, Company Owner, Company Administrator.
Request
To get a representation of a replication job that protects virtual machines, send the GET HTTP request to the URL of the /infrastructure/backupServers/jobs/replicationVmJobs/{jobUid} resource.
HTTP Request
GET https://<hostname>:1280/api/v3/infrastructure/backupServers/jobs/replicationVmJobs/{jobUid} |
Request Headers
The request contains the following headers.
Header | Required/Optional | Value | Description |
Authorization | Required | Bearer <Access-Token> | Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format. |
Accept | Optional | application/json | Specifies a media type of representation that is required in the response message. If the requested type is not supported, the server will return the response in the application/json media type. |
Request parameters
A list of parameters that are applicable for this operation:
Name | In | Type | Required | Default | Description |
---|---|---|---|---|---|
jobUid | Path | String (uuid) | Yes | — | Job UID |
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
In the response body, Veeam Service Provider Console returns a resource representation based on the BackupServerReplicationVmJob schema.
Example
The following request returns a representation of a replication job with UID bc04d2e5-dd4c-4f85-af0e-424106a32a75 that protects virtual machines.
Request: GET https://localhost:1280/api/v3/infrastructure/backupServers/jobs/replicationVmJobs/bc04d2e5-dd4c-4f85-af0e-424106a32a75
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 OK
Response Body: { "data": { "instanceUid": "bc04d2e5-dd4c-4f85-af0e-424106a32a75", "protectedVmCount": 5, "isCloudJob": false, "cloudHostUid": "1bfb5b3b-eedc-407d-b672-8927af54014c", "targetHostUid": "e4cbfa3e-7704-4143-979b-56961e124cee", "sourceWanAcceleratorUid": "ee3a71aa-7103-4d35-975e-c84de8ed65ba", "targetWanAcceleratorUid": "2dac72a0-aabf-41ae-be27-cd697eb3c865", "throughWanAccelerators": false } } |