Clone Recovery Plan

Clone Recovery Plan

This request clones the specified plan for further customization.

Request
URI
POST
https://{api_host}//recovery-plans/{recoveryPlanId}/clone
COPY
Path Parameters
string
recoveryPlanId
Required

recoveryPlanId

recoveryPlanId example
e7bf7128-2825-48ca-9075-3f496de70ffe
Header Parameters
string
operationID
Optional

Operation ID for correlating logs across multiple services


Request Body
RecoveryPlanCloneSettings of type(s) application/json
Required
{
    "displayName": "Plan 1",
    "keepReplications": false
}
string
displayName
Optional

Recovery plan display name (unique across recovery plans).

boolean
keepReplications
Optional

Whether the new plan copies the replications assigned to the original one.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns RecoveryPlanInfo of type(s) application/json;charset=UTF-8
{
    "description": "Example of a plan",
    "displayName": "Plan 1",
    "executionInfo": {
        "isSuspendRequested": false,
        "lastError": {
            "args": [],
            "code": "Forbidden",
            "msg": "Permission denied.",
            "stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
        },
        "lastOperation": "string",
        "promptStepId": "5ee9224f-305d-46f6-865f-b605e70acef8",
        "state": "string"
    },
    "id": "2bfb7696-3aa1-49d3-bb40-d9e97df1baba",
    "isMigration": false,
    "owner": "org1@site1",
    "scheduledSyncTime": 1901071800000
}
string
description
Optional

Recovery plan description.

string
displayName
Optional

Recovery plan display name (unique across recovery plans).

executionInfo
Optional

executionInfo

string As uuid As uuid
id
Optional

Recovery plan id.

boolean
isMigration
Optional

Whether the plan is a migration plan.

string
owner
Optional

Recovery plan owner.

integer As int64 As int64
scheduledSyncTime
Optional

Time at which the replications of the recovery plan will get synced. 0 means not scheduled.


401

The returned error codes include (but are not limited to): NotAuthenticated

Returns ApiError of type(s) application/vnd.vmware.h4-v4.6+json;charset=UTF-8
{
    "args": [],
    "code": "Forbidden",
    "msg": "Permission denied.",
    "stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
}
array of string
args
Optional

Positional arguments.

string
code
Optional

Specific error code.

string
msg
Optional

Detailed error message.

string
stacktrace
Optional

Exception stacktrace.


500

The returned error codes include (but are not limited to): GeneralServerFailure

Returns ApiError of type(s) application/vnd.vmware.h4-v4.6+json;charset=UTF-8
{
    "args": [],
    "code": "Forbidden",
    "msg": "Permission denied.",
    "stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
}
array of string
args
Optional

Positional arguments.

string
code
Optional

Specific error code.

string
msg
Optional

Detailed error message.

string
stacktrace
Optional

Exception stacktrace.