Menu
AWS Server Migration Service
Server Migration (API Version 2016-10-24)

GetServers

Request Syntax

Copy
{ "maxResults": number, "nextToken": "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.

maxResults

Type: Integer

Required: No

nextToken

Type: String

Required: No

Response Syntax

Copy
{ "lastModifiedOn": number, "nextToken": "string", "serverCatalogStatus": "string", "serverList": [ { "replicationJobId": "string", "replicationJobTerminated": boolean, "serverId": "string", "serverType": "string", "vmServer": { "vmManagerName": "string", "vmManagerType": "string", "vmName": "string", "vmPath": "string", "vmServerAddress": { "vmId": "string", "vmManagerId": "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.

lastModifiedOn

Type: Timestamp

nextToken

Type: String

serverCatalogStatus

Type: String

Valid Values: NOT_IMPORTED | IMPORTING | AVAILABLE | DELETED | EXPIRED

serverList

Type: Array of Server objects

Errors

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

UnauthorizedOperationException

HTTP Status Code: 400

See Also

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