StartReplication
Starts replication for a stopped Source Server. This action would make the Source Server protected again and restart billing for it.
Request Syntax
POST /StartReplication HTTP/1.1
Content-type: application/json
{
"sourceServerID": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- sourceServerID
-
The ID of the Source Server to start replication for.
Type: String
Length Constraints: Fixed length of 19.
Pattern:
^s-[0-9a-zA-Z]{17}$
Required: Yes
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"sourceServer": {
"arn": "string",
"dataReplicationInfo": {
"dataReplicationError": {
"error": "string",
"rawError": "string"
},
"dataReplicationInitiation": {
"nextAttemptDateTime": "string",
"startDateTime": "string",
"steps": [
{
"name": "string",
"status": "string"
}
]
},
"dataReplicationState": "string",
"etaDateTime": "string",
"lagDuration": "string",
"replicatedDisks": [
{
"backloggedStorageBytes": number,
"deviceName": "string",
"replicatedStorageBytes": number,
"rescannedStorageBytes": number,
"totalStorageBytes": number
}
],
"stagingAvailabilityZone": "string"
},
"lastLaunchResult": "string",
"lifeCycle": {
"addedToServiceDateTime": "string",
"elapsedReplicationDuration": "string",
"firstByteDateTime": "string",
"lastLaunch": {
"initiated": {
"apiCallDateTime": "string",
"jobID": "string",
"type": "string"
},
"status": "string"
},
"lastSeenByServiceDateTime": "string"
},
"recoveryInstanceId": "string",
"replicationDirection": "string",
"reversedDirectionSourceServerArn": "string",
"sourceCloudProperties": {
"originAccountID": "string",
"originAvailabilityZone": "string",
"originRegion": "string"
},
"sourceNetworkID": "string",
"sourceProperties": {
"cpus": [
{
"cores": number,
"modelName": "string"
}
],
"disks": [
{
"bytes": number,
"deviceName": "string"
}
],
"identificationHints": {
"awsInstanceID": "string",
"fqdn": "string",
"hostname": "string",
"vmWareUuid": "string"
},
"lastUpdatedDateTime": "string",
"networkInterfaces": [
{
"ips": [ "string" ],
"isPrimary": boolean,
"macAddress": "string"
}
],
"os": {
"fullString": "string"
},
"ramBytes": number,
"recommendedInstanceType": "string",
"supportsNitroInstances": boolean
},
"sourceServerID": "string",
"stagingArea": {
"errorMessage": "string",
"stagingAccountID": "string",
"stagingSourceServerArn": "string",
"status": "string"
},
"tags": {
"string" : "string"
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- sourceServer
-
The Source Server that this action was targeted on.
Type: SourceServer object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ConflictException
-
The request could not be completed due to a conflict with the current state of the target resource.
HTTP Status Code: 409
- InternalServerException
-
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
- ResourceNotFoundException
-
The resource for this operation was not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- UninitializedAccountException
-
The account performing the request has not been initialized.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: