method | url |
POST | https://zvm_ip:port/v1/vras/{vraIdentifier}/changeRecoveryVra/execute |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
vraIdentifier | The identifier of the VRA. |
{ "VmsAllocations": [ { "VmIdentifier": "vmId", "HostIdentifier": "hostId" }, { "VmIdentifier": "vmId", "HostIdentifier": "null" } ] } |
Parameter | Description | mandatory | default |
VmsAllocations | An array holding VMs with the identifiers of their new target host. ■ By default this parameter is set to null, which means all VMs will be automatically changed to recover to the most suitable target hosts. ■ When VMs are specified, only those specified will change host, once they pass validations. ■ VMs not specified are kept on their current recovery host. ■ VMs that are specified without a HostIdentifier (null), will be automatically changed to recover to the most suitable target hosts. | No | Null |
VmIdentifier | The internal virtual machine identifier. The identifier comprises the server identifier and the virtual machine moref, with the format, serverid.moref. | No | |
HostIdentifier | The unique identifier of the host that the VM will be recovered to. | No |
{ "TaskIdentifier": "String content" } |
Parameter | Description |
TaskIdentifier | The identifier of the task that can be used with the Tasks API to monitor the ongoing status. |
method | url |
GET | https://zvm_ip:port/v1/vms |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
Parameter | Description |
RecoveryHostIdentifier | The identifier of the host that handles the replicated data. The identifier comprises the server identifier and the host moref, with the format, serverid.moref. |
method | url |
GET | https://zvm_ip:port/v1/vras |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
Parameter | Description |
VraAlerts | Details on the VRA alert status. |
VraAlertsStatus | The alert status of the VRA. Possible values are: 0 or Normal 1 or Warning 2 or Error |
method | url |
GET | https://zvm_ip:port/v1/vras/{vraIdentifier}/changeRecoveryVra/potentials?VmIdentifier=<vmId> |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. | |
port | The port to access the Zerto Virtual Manager. The default port is 9669. | |
vraIdentifier | The identifier of the VRA. | |
Filters | Filters are optional and any combination of filters is valid. Filters are not case-sensitive. | |
Filter | Description | |
VmIdentifier | The internal virtual machine identifier. If specified, a list of potential target hosts will be returned for this VM only. |
{ "Hosts": [ { "HostIdentifier": "string content", "HostName": "string content" }, { "HostIdentifier": "string content, "HostName": "string content" } ] } |
Parameter | Description |
Hosts | A list of potential hosts that VM/s can be recovered to. If a VM was specified, only potential hosts for the VM will be returned. |
HostIdentifier | The unique identifier of the host. |
HostName | The address or DNS name of the host. |
method | url |
POST | https://zvm_ip:port/v1/vras/{vraIdentifier}/changeRecoveryVra/recommendation |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
vraIdentifier | The identifier of the VRA. |
{ "Constraints": [ "FixedVmsAllocations": { "VmIdentifier": "vmId", "HostIdentifier": "hostId" }, { "VmIdentifier": "vmId", "HostIdentifier": "hostId" } ], "VmsToCalculate": ["<vmId>","<vmId>"] } |
Parameter | Description | mandatory | default |
FixedVmsAllocations | An optional constraints object which contains an array of VmIdentifier and HostIdentifier pairings that will be assumed when calculating recommendations for the VMs indicated in the VmsToCalculate array. | No | Null |
VmIdentifier | The internal virtual machine identifier. The identifier comprises the server identifier and the virtual machine moref, with the format, serverid.moref. | No | |
HostIdentifier | The unique identifier of the host that the VM will be recovered to. | No | |
VmsToCalculate | An array of vmIds that will receive recommendations. | Yes |
{ "Recommendations": [ { "vmRecommendation": , "VmIdentifier": "string content", "HostIdentifier": "string content", "HostName": "string content" "Reason": "string content" }, "vmRecommendation": , "VmIdentifier": "string content", "HostIdentifier": "string content", "HostName": "string content" "Reason": "string content" } ] } |
Parameter | Description |
Recommendations | |
vmRecommendation | A list of recommended target hosts for each VM. |
VmIdentifier | The internal virtual machine identifier. The identifier comprises the server identifier and the virtual machine moref, with the format, serverid.moref. |
HostIdentifier | The unique identifier of the host that the VM will be recovered to. The response is null if a host was not successfully recommended. |
HostName | The name of the host that the VM will be recovered to. |
Reason | The reason describing why a new host could not be recommended. The response is null if a host was successfully recommended. |
method | url |
POST | https://zvm_ip:port/v1/vras/{vraIdentifier}/changeRecoveryVra/validate |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
vraIdentifier | The identifier of the VRA. |
{ "VmsAllocations":[ { "VmIdentifier": "string content", "HostIdentifier": "string content" }, { "VmIdentifier": "string content", "HostIdentifier": "string content" } ] } |
Parameter | Description | mandatory | default |
VmsAllocations | An array holding VMs with the identifiers of their new target host. ■ By default this parameter is set to null, which means all VMs will be automatically changed to recover to the most suitable target host/s. ■ When VMs are specified, only those specified will change host (if they pass validations). ■ VMs not specified are kept on their current recovery host. ■ VMs that are specified without a target host (target host is null), will be automatically changed to recover to the most suitable target host/s. | Yes | |
VmIdentifier | The internal virtual machine identifier. The identifier comprises the server identifier and the virtual machine moref, with the format, serverid.moref. | Yes | |
HostIdentifier | The unique identifier of the host that the VM will be recovered to. |
{ "VmsValidationResults": [ { "VmIdentifier": "string content", "HostIdentifier": "string content, "Status": "VmValidationStatusEnum", "Reason": "string content" }, { "VmIdentifier": "string content", "HostIdentifier": "string content", "Status": "VmValidationStatusEnum", "Reason": "string content" } ] } |
Parameter | Description |
VmsValidationResults | Array of objects containing VmIdentifier, HostIdentifier, Status, and Reason for each proposed VM and target host change. |
VmIdentifier | The internal virtual machine identifier. The identifier comprises the server identifier and the virtual machine moref, with the format, serverid.moref. |
HostIdentifier | The unique identifier of the host on which validation was requested for the VMs. |
Status | The status of the proposed change. Possible values are: 0 or Success 1 or Failure 2 or Warning |
Reason | The reason for the status in the case of a Warning or Error. |
method | url |
POST | https://zvm_ip:port/v1/vras/{vraIdentifier}/changeRecoveryVra/execute |
zvm_ip | The IP address of the Zerto Virtual Manager where the API is run. |
port | The port to access the Zerto Virtual Manager. The default port is 9669. |
vraIdentifier | The identifier of the VRA containing the VMs. |
{ "TaskIdentifier": "String content" } |
Parameter | Description |
TaskIdentifier | The identifier of the task that can be used with the Tasks API to monitor the ongoing status. |