DisconnectFromService - ApplicationMigrationService


Disconnects specific Source Servers from Application Migration Service. Data replication is stopped immediately. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the agent on the source server has not been prevented from communicating with the Application Migration Service service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

Request Syntax

POST /DisconnectFromService 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.


Request to disconnect Source Server from service by Server ID.

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 { "arn": "string", "dataReplicationInfo": { "dataReplicationError": { "error": "string", "rawError": "string" }, "dataReplicationInitiation": { "nextAttemptDateTime": "string", "startDateTime": "string", "steps": [ { "name": "string", "status": "string" } ] }, "dataReplicationState": "string", "etaDateTime": "string", "lagDuration": "string", "lastSnapshotDateTime": "string", "replicatedDisks": [ { "backloggedStorageBytes": number, "deviceName": "string", "replicatedStorageBytes": number, "rescannedStorageBytes": number, "totalStorageBytes": number } ] }, "isArchived": boolean, "launchedInstance": { "ec2InstanceID": "string", "firstBoot": "string", "jobID": "string" }, "lifeCycle": { "addedToServiceDateTime": "string", "elapsedReplicationDuration": "string", "firstByteDateTime": "string", "lastCutover": { "finalized": { "apiCallDateTime": "string" }, "initiated": { "apiCallDateTime": "string", "jobID": "string" }, "reverted": { "apiCallDateTime": "string" } }, "lastSeenByServiceDateTime": "string", "lastTest": { "finalized": { "apiCallDateTime": "string" }, "initiated": { "apiCallDateTime": "string", "jobID": "string" }, "reverted": { "apiCallDateTime": "string" } }, "state": "string" }, "replicationType": "string", "sourceProperties": { "cpus": [ { "cores": number, "modelName": "string" } ], "disks": [ { "bytes": number, "deviceName": "string" } ], "identificationHints": { "awsInstanceID": "string", "fqdn": "string", "hostname": "string", "vmPath": "string", "vmWareUuid": "string" }, "lastUpdatedDateTime": "string", "networkInterfaces": [ { "ips": [ "string" ], "isPrimary": boolean, "macAddress": "string" } ], "os": { "fullString": "string" }, "ramBytes": number, "recommendedInstanceType": "string" }, "sourceServerID": "string", "tags": { "string" : "string" }, "vcenterClientID": "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.


Source server ARN.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.


Source server data replication info.

Type: DataReplicationInfo object


Source server archived status.

Type: Boolean


Source server launched instance.

Type: LaunchedInstance object


Source server lifecycle state.

Type: LifeCycle object


Source server replication type.

Type: String



Source server properties.

Type: SourceProperties object


Source server ID.

Type: String

Length Constraints: Fixed length of 19.

Pattern: ^s-[0-9a-zA-Z]{17}$


Source server Tags.

Type: String to string map

Key Length Constraints: Minimum length of 0. Maximum length of 256.

Value Length Constraints: Minimum length of 0. Maximum length of 256.


Source server vCenter client id.

Type: String

Length Constraints: Fixed length of 21.

Pattern: ^vcc-[0-9a-zA-Z]{17}$


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


The request could not be completed due to a conflict with the current state of the target resource.

HTTP Status Code: 409


Resource not found exception.

HTTP Status Code: 404


Uninitialized account exception.

HTTP Status Code: 400

See Also

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