• 沒有找到結果。

UpdateReplicationConfigurationTemplate

Updates multiple ReplicationConfigurationTemplates by ID.

Request Syntax

POST /UpdateReplicationConfigurationTemplate HTTP/1.1 Content-type: application/json

{

"arn": "string",

"associateDefaultSecurityGroup": boolean, "bandwidthThrottling": number,

"createPublicIP": boolean, "dataPlaneRouting": "string",

"defaultLargeStagingDiskType": "string", "ebsEncryption": "string",

"ebsEncryptionKeyArn": "string",

"replicationConfigurationTemplateID": "string", "replicationServerInstanceType": "string",

"replicationServersSecurityGroupsIDs": [ "string" ], "stagingAreaSubnetId": "string",

"stagingAreaTags": { "string" : "string"

},

"useDedicatedReplicationServer": boolean }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

arn (p. 97)

Update replication configuration template ARN request.

Type: String

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

Required: No

associateDefaultSecurityGroup (p. 97)

Update replication configuration template associate default Application Migration Service Security group request.

Type: Boolean Required: No

bandwidthThrottling (p. 97)

Update replication configuration template bandwidth throttling request.

Type: Long

Request Body Valid Range: Minimum value of 0.

Required: No createPublicIP (p. 97)

Update replication configuration template create Public IP request.

Type: Boolean Required: No

dataPlaneRouting (p. 97)

Update replication configuration template data plane routing request.

Type: String

Valid Values: PRIVATE_IP | PUBLIC_IP Required: No

defaultLargeStagingDiskType (p. 97)

Update replication configuration template use default large Staging Disk type request.

Type: String

Valid Values: GP2 | ST1 Required: No

ebsEncryption (p. 97)

Update replication configuration template EBS encryption request.

Type: String

Valid Values: DEFAULT | CUSTOM Required: No

ebsEncryptionKeyArn (p. 97)

Update replication configuration template EBS encryption key ARN request.

Type: String

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

Required: No

replicationConfigurationTemplateID (p. 97)

Update replication configuration template template ID request.

Type: String

Length Constraints: Fixed length of 21.

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

Required: Yes

replicationServerInstanceType (p. 97)

Update replication configuration template Replication Server instance type request.

Response Syntax Type: String

Length Constraints: Minimum length of 0. Maximum length of 255.

Required: No

replicationServersSecurityGroupsIDs (p. 97)

Update replication configuration template Replication Server Security groups IDs request.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 32 items.

Length Constraints: Minimum length of 0. Maximum length of 255.

Pattern: ^sg-[0-9a-fA-F]{8,}$

Required: No

stagingAreaSubnetId (p. 97)

Update replication configuration template Staging Area subnet ID request.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 255.

Pattern: ^subnet-[0-9a-fA-F]{8,}$

Required: No stagingAreaTags (p. 97)

Update replication configuration template Staging Area Tags request.

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.

Required: No

useDedicatedReplicationServer (p. 97)

Update replication configuration template use dedicated Replication Server request.

Type: Boolean Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"arn": "string",

"associateDefaultSecurityGroup": boolean, "bandwidthThrottling": number,

"createPublicIP": boolean, "dataPlaneRouting": "string",

Response Elements "defaultLargeStagingDiskType": "string", "ebsEncryption": "string",

"ebsEncryptionKeyArn": "string",

"replicationConfigurationTemplateID": "string", "replicationServerInstanceType": "string",

"replicationServersSecurityGroupsIDs": [ "string" ], "stagingAreaSubnetId": "string",

"stagingAreaTags": { "string" : "string"

},

"tags": {

"string" : "string"

},

"useDedicatedReplicationServer": boolean }

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.

arn (p. 99)

Replication Configuration template ARN.

Type: String

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

associateDefaultSecurityGroup (p. 99)

Replication Configuration template associate default Application Migration Service Security group.

Type: Boolean

bandwidthThrottling (p. 99)

Replication Configuration template bandwidth throtting.

Type: Long

Valid Range: Minimum value of 0.

createPublicIP (p. 99)

Replication Configuration template create Public IP.

Type: Boolean dataPlaneRouting (p. 99)

Replication Configuration template data plane routing.

Type: String

Valid Values: PRIVATE_IP | PUBLIC_IP defaultLargeStagingDiskType (p. 99)

Replication Configuration template use dedault large Staging Disk type.

Type: String

Valid Values: GP2 | ST1

Response Elements ebsEncryption (p. 99)

Replication Configuration template EBS encryption.

Type: String

Valid Values: DEFAULT | CUSTOM ebsEncryptionKeyArn (p. 99)

Replication Configuration template EBS encryption key ARN.

Type: String

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

replicationConfigurationTemplateID (p. 99) Replication Configuration template template ID.

Type: String

Length Constraints: Fixed length of 21.

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

replicationServerInstanceType (p. 99)

Replication Configuration template server instance type.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 255.

replicationServersSecurityGroupsIDs (p. 99)

Replication Configuration template server Security Groups IDs.

Type: Array of strings

Array Members: Minimum number of 0 items. Maximum number of 32 items.

Length Constraints: Minimum length of 0. Maximum length of 255.

Pattern: ^sg-[0-9a-fA-F]{8,}$

stagingAreaSubnetId (p. 99)

Replication Configuration template Staging Area subnet ID.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 255.

Pattern: ^subnet-[0-9a-fA-F]{8,}$

stagingAreaTags (p. 99)

Replication Configuration template Staging Area 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.

Errors tags (p. 99)

Replication Configuration template 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.

useDedicatedReplicationServer (p. 99)

Replication Configuration template use Dedicated Replication Server.

Type: Boolean

Errors

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

AccessDeniedException

Operating denied due to a file permission or access check error.

HTTP Status Code: 403 ResourceNotFoundException

Resource not found exception.

HTTP Status Code: 404 UninitializedAccountException

Unitialized account exception.

HTTP Status Code: 400 ValidationException

Validate 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:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

UpdateSourceServerReplicationType

UpdateSourceServerReplicationType

Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING replication type.

Request Syntax

POST /UpdateSourceServerReplicationType HTTP/1.1 Content-type: application/json

{

"replicationType": "string", "sourceServerID": "string"

}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

replicationType (p. 103)

Replication type to which to update source server.

Type: String

Valid Values: AGENT_BASED | SNAPSHOT_SHIPPING Required: Yes

sourceServerID (p. 103)

ID of source server on which to update replication type.

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",

Response Syntax "rawError": "string"

},

"dataReplicationInitiation": { "nextAttemptDateTime": "string", "startDateTime": "string",

"dataReplicationState": "string", "etaDateTime": "string",

"lagDuration": "string",

"lastSnapshotDateTime": "string", "replicatedDisks": [

"isArchived": boolean, "launchedInstance": { "ec2InstanceID": "string", "firstBoot": "string", "jobID": "string"

},

"lifeCycle": {

"addedToServiceDateTime": "string", "elapsedReplicationDuration": "string", "firstByteDateTime": "string",

"lastCutover": {

"lastSeenByServiceDateTime": "string", "lastTest": {

"replicationType": "string", "sourceProperties": { "cpus": [

Response Elements

"lastUpdatedDateTime": "string", "networkInterfaces": [

"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.

arn (p. 103)

Source server ARN.

Type: String

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

dataReplicationInfo (p. 103)

Source server data replication info.

Type: DataReplicationInfo (p. 113) object isArchived (p. 103)

Source server archived status.

Type: Boolean

Errors launchedInstance (p. 103)

Source server launched instance.

Type: LaunchedInstance (p. 130) object lifeCycle (p. 103)

Source server lifecycle state.

Type: LifeCycle (p. 132) object replicationType (p. 103)

Source server replication type.

Type: String

Valid Values: AGENT_BASED | SNAPSHOT_SHIPPING sourceProperties (p. 103)

Source server properties.

Type: SourceProperties (p. 149) object sourceServerID (p. 103)

Source server ID.

Type: String

Length Constraints: Fixed length of 19.

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

tags (p. 103)

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.

vcenterClientID (p. 103)

Source server vCenter client id.

Type: String

Length Constraints: Fixed length of 21.

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

Errors

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

ConflictException

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

HTTP Status Code: 409

See Also ResourceNotFoundException

Resource not found exception.

HTTP Status Code: 404 UninitializedAccountException

Unitialized account exception.

HTTP Status Code: 400 ValidationException

Validate 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:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3