GetReplicationRuns - Amazon Server Migration Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Describes the replication runs for the specified replication job.

Request Syntax

{ "maxResults": number, "nextToken": "string", "replicationJobId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

Type: Integer

Required: No


The token for the next set of results.

Type: String

Required: No


The ID of the replication job.

Type: String

Required: Yes

Response Syntax

{ "nextToken": "string", "replicationJob": { "description": "string", "encrypted": boolean, "frequency": number, "kmsKeyId": "string", "latestAmiId": "string", "licenseType": "string", "nextReplicationRunStartTime": number, "numberOfRecentAmisToKeep": number, "replicationJobId": "string", "replicationRunList": [ { "amiId": "string", "completedTime": number, "description": "string", "encrypted": boolean, "kmsKeyId": "string", "replicationRunId": "string", "scheduledStartTime": number, "stageDetails": { "stage": "string", "stageProgress": "string" }, "state": "string", "statusMessage": "string", "type": "string" } ], "roleName": "string", "runOnce": boolean, "seedReplicationTime": number, "serverId": "string", "serverType": "string", "state": "string", "statusMessage": "string", "vmServer": { "vmManagerName": "string", "vmManagerType": "string", "vmName": "string", "vmPath": "string", "vmServerAddress": { "vmId": "string", "vmManagerId": "string" } } }, "replicationRunList": [ { "amiId": "string", "completedTime": number, "description": "string", "encrypted": boolean, "kmsKeyId": "string", "replicationRunId": "string", "scheduledStartTime": number, "stageDetails": { "stage": "string", "stageProgress": "string" }, "state": "string", "statusMessage": "string", "type": "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.


The token required to retrieve the next set of results. This value is null when there are no more results to return.

Type: String


Information about the replication job.

Type: ReplicationJob object


Information about the replication runs.

Type: Array of ReplicationRun objects


For information about the errors that are common to all actions, see Common Errors.


A specified parameter is not valid.

HTTP Status Code: 400


A required parameter is missing.

HTTP Status Code: 400


You lack permissions needed to perform this operation.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: