Create Recovery Steps Callout
Add a callout/prompt to the list of recovery steps in a given recovery view mode.
Will fail if cannot retrieve recovery steps in the desired mode in the current recovery plan state.
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 view mode of the recovery steps. Possible values are: test
, recovery
, cleanup
, reprotect
.
Spec describing the new callout settings.
{
"name": "string",
"content": "string",
"callout_type": "string",
"timeout_seconds": 0,
"position": 0
}
Name of the callout.
Content of the callout.
Callout type.
- PROMPT - If the callout is a prompt, it will pause the execution of the recovery script and will display a message until the user acknowledges it.
- RUN_ON_VM - The callout must run inside the recovered VM.
- RUN_ON_SRM_SERVER - The callout must run inside the Site Recovery Manager virtual machine.
Time in seconds to wait until the command completes.
If the command is not complete when the timeout occurs, the child process will be stopped.
Applicable only when parameter callout_type
is RUN_ON_VM
or RUN_ON_SRM_SERVER
.
A position in the current recovery steps list.
Zero-based.
Task to monitor the operation progress.
{
"id": "string",
"description": "string",
"description_id": "string",
"entity": "string",
"entity_name": "string",
"status": "string",
"error": {
"message": "string",
"details": "string"
},
"progress": 0,
"queued_time": 0,
"start_time": 0,
"complete_time": 0,
"_meta": {
"errors": [
{
"code": "string",
"message": "string",
"field": "string"
}
]
}
}
Bad request - the server could not understand the request due to invalid syntax or invalid request body content
{
"error_code": "string",
"message": "string",
"op_id": "string"
}
The code of the error.
The message of the error.
The ID of the operation.
Unauthorized - the client must authenticate itself to get the requested response
Forbidden - not sufficient access rights to fulfill the request
{
"error_code": "string",
"message": "string",
"op_id": "string"
}
The code of the error.
The message of the error.
The ID of the operation.
Not Found - server cannot find the requested in URL resource
Internal server error - unexpected condition prevents fulfilling the request
{
"error_code": "string",
"message": "string",
"op_id": "string"
}
The code of the error.
The message of the error.
The ID of the operation.