CreateRecoveryPlan
Creates a recovery plan.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdr:CreateRecoveryPlan |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SitePairId |
string |
No |
The site pair ID. |
s-xxxxxxxxxxxxxxxxxx |
| Name |
string |
No |
The name of the recovery plan. |
test1 |
| Direction |
string |
No |
The direction of the recovery plan. Valid value: forward. |
forward |
| Content |
string |
No |
The details of the recovery plan. |
{ "groups": [ { "name": "Group-1", "id": "Group-1", "servers": [ { "name": "sr-xxxxxxxxxxxxxxxxxx", "serverId": "sr-xxxxxxxxxxxxxxxxxx", "testFailoverAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-tfo", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" }, "testCleanupAction": {}, "changeRecoveryPointAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-cpr", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" }, "forcedFailoverAction": { "eipAddressId": "", "recoveryPostScriptContent": "", "recoveryPostScriptType": "POWERSHELL", "recoveryInstanceName": "HDR_Recovery-sr-xxxxxxxxxxxxxxxxxx-ffo", "recoveryCpu": 2, "recoveryMemory": 4294967296, "recoveryUseEssd": false, "recoveryUseSsd": false, "recoveryReserveIp": false, "recoveryUseDhcp": true, "recoveryIpAddress": "", "recoveryNetwork": "vsw-xxxxxxxxxxxxxxxxxx" } } ] } ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return code. |
200 |
| Message |
string |
The return message. |
successful |
| RequestId |
string |
The request ID. |
FEC3D491-15BB-5C8F-902E-773794FF1B29 |
| TaskId |
string |
The task ID. |
t-00055g8sxr0ys0g99n83 |
| Success |
boolean |
Indicates whether the request is successful. |
True |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "FEC3D491-15BB-5C8F-902E-773794FF1B29",
"TaskId": "t-00055g8sxr0ys0g99n83",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.