Update Plan Virtual Machine Recovery Settings
DescriptionUpdate recovery settings for a protected virtual machine.
Request
URLURL
Path Parameters
Path Parameters
The ID of a pairing between this Site Recovery Manager server and remote one.
The ID of a recovery plan defined within current pairing.
The ID of a virtual machine.
Request Body
{
"ip_customization_type": "AUTO",
"priority": "P1",
"shutdown_action_settings": {
"timeout_seconds": 0
},
"startup_action": "POWER_ON"
}
Recovery settings related to power off of a VM.
IP customization modes:
- Auto (AUTO)
- If the advanced setting ‘recovery.useIpMapperAutomatically’ is set to True - Site Recovery Manager evaluates the IP subnet mapping rules during recovery to customize the virtual machines.
- If the advanced setting ‘recovery.useIpMapperAutomatically’ is set to False - Site Recovery Manager does not evaluate the IP subnet mapping rules during recovery.
- Use IP customization rules if applicable (NETWORK_LEVEL)
- Site Recovery Manager will evaluate the IP subnet mapping rules during recovery of the concrete VM regardless of the advanced setting value of recovery.useIpMapperAutomatically.
- Manual IP customization (MANUAL)
- Manually set up explicit recovery IP settings per VM.
- No IP customization (NO_CUSTOMIZATION)
- Do not change VM IP settings during recovery.
Possible values are: AUTO , NETWORK_MAPPING_LEVEL , MANUAL , NO_CUSTOMIZATION
Recovery priority group. Used to translate server priority values to client priorities. The recovery priority for this VM. P1 is the highest and P5 is the lowest priority.
Possible values are: P1 , P2 , P3 , P4 , P5
Startup action after recovery:
- DO_NOT_POWER_ON - The VM will not be powered on and post-power-on steps will not be executed as partof the recovery and test workflows. Note that the VM may still get powered onduring recovery as part of the IP customization workflow.
- POWER_ON - The VM will be powered on and post-power-on steps will be executed as part of the recovery and test workflows.
Possible values are: POWER_ON , DO_NOT_POWER_ON
Contains the IP settings for all the virtual ethernet cards on the VM
Contains all per VM steps that should be executed after the VM is powered on
Contains all per VM steps that should be executed before the VM is powered on
This is a list of VM identities that must be powered-on before this VM can be powered on. Dependencies are only valid within VMs of the same recovery priority. If there are dependent VMs that are not in the current plan and same recovery priority, they will be ignored. This list may contain VMs that are not contained by any protection group in the plan. But it will only contain valid VMs.
Recovery settings related to power-on of a VM
Authentication
Response
Response BodyResponse Body
202 Accepted
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.RecoveryProfile.com.vmware.vcDr.Edit
x-dr-remote-site-connectivity-contract:
not-authenticated: DEPENDS_ON_PROVIDED_PARAMS
server-down: DEPENDS_ON_PROVIDED_PARAMS