drs.Client.
retry_data_replication
(**kwargs)¶Causes the data replication initiation sequence to begin immediately upon next Handshake for the specified Source Server ID, regardless of when the previous initiation started. This command will work only if the Source Server is stalled or is in a DISCONNECTED or STOPPED state.
See also: AWS API Documentation
Request Syntax
response = client.retry_data_replication(
sourceServerID='string'
)
[REQUIRED]
The ID of the Source Server whose data replication should be retried.
{
'arn': 'string',
'dataReplicationInfo': {
'dataReplicationError': {
'error': 'AGENT_NOT_SEEN'|'SNAPSHOTS_FAILURE'|'NOT_CONVERGING'|'UNSTABLE_NETWORK'|'FAILED_TO_CREATE_SECURITY_GROUP'|'FAILED_TO_LAUNCH_REPLICATION_SERVER'|'FAILED_TO_BOOT_REPLICATION_SERVER'|'FAILED_TO_AUTHENTICATE_WITH_SERVICE'|'FAILED_TO_DOWNLOAD_REPLICATION_SOFTWARE'|'FAILED_TO_CREATE_STAGING_DISKS'|'FAILED_TO_ATTACH_STAGING_DISKS'|'FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT'|'FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER'|'FAILED_TO_START_DATA_TRANSFER',
'rawError': 'string'
},
'dataReplicationInitiation': {
'nextAttemptDateTime': 'string',
'startDateTime': 'string',
'steps': [
{
'name': 'WAIT'|'CREATE_SECURITY_GROUP'|'LAUNCH_REPLICATION_SERVER'|'BOOT_REPLICATION_SERVER'|'AUTHENTICATE_WITH_SERVICE'|'DOWNLOAD_REPLICATION_SOFTWARE'|'CREATE_STAGING_DISKS'|'ATTACH_STAGING_DISKS'|'PAIR_REPLICATION_SERVER_WITH_AGENT'|'CONNECT_AGENT_TO_REPLICATION_SERVER'|'START_DATA_TRANSFER',
'status': 'NOT_STARTED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'SKIPPED'
},
]
},
'dataReplicationState': 'STOPPED'|'INITIATING'|'INITIAL_SYNC'|'BACKLOG'|'CREATING_SNAPSHOT'|'CONTINUOUS'|'PAUSED'|'RESCAN'|'STALLED'|'DISCONNECTED',
'etaDateTime': 'string',
'lagDuration': 'string',
'replicatedDisks': [
{
'backloggedStorageBytes': 123,
'deviceName': 'string',
'replicatedStorageBytes': 123,
'rescannedStorageBytes': 123,
'totalStorageBytes': 123
},
],
'stagingAvailabilityZone': 'string'
},
'lastLaunchResult': 'NOT_STARTED'|'PENDING'|'SUCCEEDED'|'FAILED',
'lifeCycle': {
'addedToServiceDateTime': 'string',
'elapsedReplicationDuration': 'string',
'firstByteDateTime': 'string',
'lastLaunch': {
'initiated': {
'apiCallDateTime': 'string',
'jobID': 'string',
'type': 'RECOVERY'|'DRILL'
},
'status': 'PENDING'|'IN_PROGRESS'|'LAUNCHED'|'FAILED'|'TERMINATED'
},
'lastSeenByServiceDateTime': 'string'
},
'recoveryInstanceId': 'string',
'replicationDirection': 'FAILOVER'|'FAILBACK',
'reversedDirectionSourceServerArn': 'string',
'sourceCloudProperties': {
'originAccountID': 'string',
'originAvailabilityZone': 'string',
'originRegion': 'string'
},
'sourceProperties': {
'cpus': [
{
'cores': 123,
'modelName': 'string'
},
],
'disks': [
{
'bytes': 123,
'deviceName': 'string'
},
],
'identificationHints': {
'awsInstanceID': 'string',
'fqdn': 'string',
'hostname': 'string',
'vmWareUuid': 'string'
},
'lastUpdatedDateTime': 'string',
'networkInterfaces': [
{
'ips': [
'string',
],
'isPrimary': True|False,
'macAddress': 'string'
},
],
'os': {
'fullString': 'string'
},
'ramBytes': 123,
'recommendedInstanceType': 'string'
},
'sourceServerID': 'string',
'stagingArea': {
'errorMessage': 'string',
'stagingAccountID': 'string',
'stagingSourceServerArn': 'string',
'status': 'EXTENDED'|'EXTENSION_ERROR'|'NOT_EXTENDED'
},
'tags': {
'string': 'string'
}
}
Response Structure
The ARN of the Source Server.
The Data Replication Info of the Source Server.
Error in data replication.
Error in data replication.
Error in data replication.
Information about whether the data replication has been initiated.
The date and time of the next attempt to initiate data replication.
The date and time of the current attempt to initiate data replication.
The steps of the current attempt to initiate data replication.
Data replication initiation step.
The name of the step.
The status of the step.
The state of the data replication.
An estimate of when the data replication will be completed.
Data replication lag duration.
The disks that should be replicated.
A disk that should be replicated.
The size of the replication backlog in bytes.
The name of the device.
The amount of data replicated so far in bytes.
The amount of data to be rescanned in bytes.
The total amount of data to be replicated in bytes.
AWS Availability zone into which data is being replicated.
The status of the last recovery launch of this Source Server.
The lifecycle information of this Source Server.
The date and time of when the Source Server was added to the service.
The amount of time that the Source Server has been replicating for.
The date and time of the first byte that was replicated from the Source Server.
An object containing information regarding the last launch of the Source Server.
An object containing information regarding the initiation of the last launch of a Source Server.
The date and time the last Source Server launch was initiated.
The ID of the Job that was used to last launch the Source Server.
The Job type that was used to last launch the Source Server.
Status of Source Server's last launch.
The date and time this Source Server was last seen by the service.
The ID of the Recovery Instance associated with this Source Server.
Replication direction of the Source Server.
For EC2-originated Source Servers which have been failed over and then failed back, this value will mean the ARN of the Source Server on the opposite replication direction.
Source cloud properties of the Source Server.
AWS Account ID for an EC2-originated Source Server.
AWS Availability Zone for an EC2-originated Source Server.
AWS Region for an EC2-originated Source Server.
The source properties of the Source Server.
An array of CPUs.
Information about a server's CPU.
The number of CPU cores.
The model name of the CPU.
An array of disks.
An object representing a data storage device on a server.
The amount of storage on the disk in bytes.
The disk or device name.
Hints used to uniquely identify a machine.
AWS Instance ID identification hint.
Fully Qualified Domain Name identification hint.
Hostname identification hint.
vCenter VM path identification hint.
The date and time the Source Properties were last updated on.
An array of network interfaces.
Network interface.
Network interface IPs.
Whether this is the primary network interface.
The MAC address of the network interface.
Operating system.
The long name of the Operating System.
The amount of RAM in bytes.
The recommended EC2 instance type that will be used when recovering the Source Server.
The ID of the Source Server.
The staging area of the source server.
Shows an error message that occurred when DRS tried to access the staging source server. In this case StagingArea$status will have value EXTENSION_ERROR
Account ID of the account to which source server belongs. If this source server is extended - shows Account ID of staging source server.
Arn of the staging source server if this source server is extended
Status of Source server extension. Possible values: (a) NOT_EXTENDED - This is a source server that is replicating in the current account. (b) EXTENDED - Source server is extended from a staging source server. In this case, the value of stagingSourceServerArn is pointing to the Arn of the source server in the staging account. (c) EXTENSION_ERROR - Some issue occurred when accessing staging source server. In this case, errorMessage field will contain an error message that explains what happened.
The tags associated with the Source Server.
Exceptions
drs.Client.exceptions.ResourceNotFoundException
drs.Client.exceptions.InternalServerException
drs.Client.exceptions.ThrottlingException
drs.Client.exceptions.ValidationException
drs.Client.exceptions.UninitializedAccountException