Start Vm Replication

Start Vm Replication

This request configures a new replication for the specified VM.

Request
URI
POST
https://{api_host}//vm-replications
COPY
Query Parameters
string
site
Optional

Optional site to run the operation on. When omitted, defaults to the local site.

site example
site1
Header Parameters
string
operationID
Optional

Operation ID for correlating logs across multiple services

string
On-Prem-Auth
Optional

On-Prem-Auth


Request Body
CloudReplicationSettings of type(s) application/json
Required
{
    "source": {
        "type": "vm",
        "site": "site1",
        "vmId": "441a891a-5294-4dff-b02d-c605d335be1b",
        "excludedDiskKeys": null
    },
    "destination": {
        "type": "vcloud",
        "site": "site2",
        "vdc": "d6977f40-4d90-46b2-a34e-5077e8648eda",
        "storageProfile": "*"
    },
    "description": "A Protected Workload",
    "rpo": 5,
    "slaProfileId": null,
    "dataConnectionType": "ENCRYPTED",
    "quiesced": true,
    "retentionPolicy": {
        "rules": [
            {
                "numberOfInstances": 3,
                "distance": 60
            }
        ]
    },
    "targetDiskType": "THIN",
    "initialSyncTime": 0,
    "isMigration": false
}
dataConnectionType
Optional

dataConnectionType

string
description
Optional

The description of the replication.

destination
Optional

The destination location of the replication.

integer As int64 As int64
initialSyncTime
Optional

Replication initial sync time. If in the past, 0 or negative, the sync will not be delayed. The time is specified as the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC

boolean
isMigration
Optional

Whether the replication is actually a migration.

boolean
quiesced
Optional

Replicated image guest quiescing - if empty/omitted no change will be applied.

retentionPolicy
Optional

retentionPolicy

integer As int32 As int32
rpo
Optional

Recovery point objective in minutes - if empty/omitted no change will be applied.

string
slaProfileId
Optional

The SLA Profile to use instead of the custom rpo/dataConnectionType/retentionPolicy settings

source
Optional

The source location of the replication.

targetDiskType
Optional

targetDiskType

Authentication
This operation uses the following authentication methods.
Responses
202

Accepted

Returns C4ApiTask_of_SingleVmReplicationInfo of type(s) application/vnd.vmware.h4-v4.6+json;charset=UTF-8
{
    "endTime": 1499929558827,
    "error": {
        "args": [],
        "code": "Forbidden",
        "msg": "Permission denied.",
        "stacktrace": "com.vmware.h4.api.error.exceptions.PermissionDeniedException: Permission denied."
    },
    "id": "f61d60d2-698a-46dc-a266-88df27644956",
    "lastUpdated": 1499929558827,
    "progress": 100,
    "result": {
        "destination": {
            "destinationCatalogItemId": "0221b98b-b91c-4524-a491-f744f67bffbe",
            "org": "org2",
            "recoveredVappId": "null",
            "site": "site2",
            "vdcId": "5ee9224f-305d-46f6-865f-b605e70acef8",
            "vdcName": "Virtual DC 2"
        },
        "source": {
            "vappName": "vApp1"
        },
        "vappReplicationId": "C4VAPP-ccbe771e-b685-46c7-8c7a-4ed36915d963"
    },
    "resultType": "string",
    "site": "site2",
    "startTime": 1499929548951,
    "state": "string",
    "user": "root",
    "warnings": [],
    "workflowInfo": {}
}
integer As int64 As int64
endTime
Optional

Timestamp in msec of the completion time of the task. -1 indicates that the task did not complete yet.

error
Optional

error

string As uuid As uuid
id
Optional

The unique identifier of the long-running task. It is unique and can be used for monitoring.

integer As int64 As int64
lastUpdated
Optional

Timestamp in msec of the last task status update.

integer As int32 As int32
progress
Optional

Percentage-based progress of the task.

result
Optional

result

string
resultType
Optional

Indicates the type of the task result. Populates only when the execution succeeds.

string
site
Optional

Site on which the task runs.

integer As int64 As int64
startTime
Optional

Timestamp in msec of the creation time of the task.

state
Optional

state

string
user
Optional

The user who started the task.

warnings
Optional

Warnings, which occurred during the task execution.

workflowInfo
Optional

workflowInfo


400

The returned error codes include (but are not limited to): BadRequest, ServiceNotLicensed

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.


401

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

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.


404

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

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.