Update VM Protection Settings
DescriptionUpdate the protection settings of a virtual machine. This endpoint must be called after the remove protection operation in order for the VM to be recovered during recovery.
Request
URLURL
Path Parameters
Path Parameters
The ID of a pairing between this Site Recovery Manager server and remote one.
The ID of a protection group defined within current pairing.
The ID of a protected virtual machine.
Request Body
A spec describing the new VM protection settings.
{
"change_version": "string",
"devices": [
{
"backing": "FILE",
"detached": false,
"key": 0,
"label": "string",
"production_datastores": [
"string"
],
"production_path": {
"datastore": "string",
"datastore_name": "local",
"filename": "finance-vm.vmdk",
"friendly_path": "string",
"path": "vms/finance-vm"
},
"recovery_path": {
"datastore": "string",
"datastore_name": "local",
"filename": "finance-vm.vmdk",
"friendly_path": "string",
"path": "vms/finance-vm"
},
"replicated": false,
"type": "HARD_DRIVE"
}
],
"folder": {
"editable": false,
"is_inventory_mapped_target": false,
"source": "string",
"source_has_inventory_mapping": false,
"source_name": "string",
"target": "string",
"target_name": "string"
},
"host": {
"editable": false,
"is_inventory_mapped_target": false,
"source": "string",
"source_has_inventory_mapping": false,
"source_name": "string",
"target": "string",
"target_name": "string"
},
"location": {
"name": "string",
"placeholder_vm": "string",
"placeholder_vm_path": {
"datastore": "string",
"datastore_name": "local",
"filename": "finance-vm.vmdk",
"friendly_path": "string",
"path": "vms/finance-vm"
},
"production_vm_path": {
"datastore": "string",
"datastore_name": "local",
"filename": "finance-vm.vmdk",
"friendly_path": "string",
"path": "vms/finance-vm"
},
"protected_site": "string",
"recovery_site": "string"
},
"networks": [
{
"editable": false,
"index": 0,
"is_inventory_mapped_target": false,
"key": 0,
"source": "string",
"source_has_inventory_mapping": false,
"source_name": "string",
"source_network_nsx_backed": false,
"target": "string",
"target_name": "string",
"target_network_nsx_backed": false
}
],
"placeholder_needs_repair": false,
"resource_pool": {
"editable": false,
"is_inventory_mapped_target": false,
"source": "string",
"source_has_inventory_mapping": false,
"source_name": "string",
"target": "string",
"target_name": "string"
}
}
Version number of these settings. Keep this if need to update the VM protection settings. Applicable only if the VM is protected.
List of VM devices, including hard disks, optical disks and floppy disks
Details about a protection resource of a VM. For example: folder, resource pool, host, network.
Details about a protection resource of a VM. For example: folder, resource pool, host, network.
Whether repair placeholder operation is required. If true, only repair placeholder is possible and not configure protection.
Details about a protection resource of a VM. For example: folder, resource pool, host, network.
Authentication
Response
Response BodyResponse Body
202 Accepted
A task to monitor the operation progress
{
"_meta": {
"errors": [
{
"code": "string",
"field": "string",
"message": "string"
}
]
},
"complete_time": 0,
"description": "string",
"description_id": "string",
"entity": "string",
"entity_name": "string",
"error": {
"details": "string",
"message": "string"
},
"id": "string",
"progress": 0,
"queued_time": 0,
"result": {},
"start_time": 0,
"status": "QUEUED"
}
Errors
Bad request - the server could not understand the request due to invalid syntax or invalid request body content
Unauthorized - the client must authenticate itself to get the requested response
Forbidden - not sufficient access rights to fulfill the request
Not Found - server cannot find the requested in URL resource
Internal server error - unexpected condition prevents fulfilling the request
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-dr-permissions:
permissions:
- System.View
- System.Read
- VcDr.ProtectionProfile.com.vmware.vcDr.Edit
x-dr-remote-site-connectivity-contract:
not-authenticated: ERROR
server-down: ERROR