start_replication
(**kwargs)¶Starts replication for SNAPSHOT_SHIPPING agents.
See also: AWS API Documentation
Request Syntax
response = client.start_replication(
sourceServerID='string'
)
[REQUIRED]
ID of source server on which to start replication.
{
'applicationID': 'string',
'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'|'UNSUPPORTED_VM_CONFIGURATION'|'LAST_SNAPSHOT_JOB_FAILED',
'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'|'PENDING_SNAPSHOT_SHIPPING'|'SHIPPING_SNAPSHOT',
'etaDateTime': 'string',
'lagDuration': 'string',
'lastSnapshotDateTime': 'string',
'replicatedDisks': [
{
'backloggedStorageBytes': 123,
'deviceName': 'string',
'replicatedStorageBytes': 123,
'rescannedStorageBytes': 123,
'totalStorageBytes': 123
},
]
},
'isArchived': True|False,
'launchedInstance': {
'ec2InstanceID': 'string',
'firstBoot': 'WAITING'|'SUCCEEDED'|'UNKNOWN'|'STOPPED',
'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': 'STOPPED'|'NOT_READY'|'READY_FOR_TEST'|'TESTING'|'READY_FOR_CUTOVER'|'CUTTING_OVER'|'CUTOVER'|'DISCONNECTED'|'DISCOVERED'
},
'replicationType': 'AGENT_BASED'|'SNAPSHOT_SHIPPING',
'sourceProperties': {
'cpus': [
{
'cores': 123,
'modelName': 'string'
},
],
'disks': [
{
'bytes': 123,
'deviceName': 'string'
},
],
'identificationHints': {
'awsInstanceID': 'string',
'fqdn': 'string',
'hostname': 'string',
'vmPath': 'string',
'vmWareUuid': 'string'
},
'lastUpdatedDateTime': 'string',
'networkInterfaces': [
{
'ips': [
'string',
],
'isPrimary': True|False,
'macAddress': 'string'
},
],
'os': {
'fullString': 'string'
},
'ramBytes': 123,
'recommendedInstanceType': 'string'
},
'sourceServerID': 'string',
'tags': {
'string': 'string'
},
'vcenterClientID': 'string'
}
Response Structure
Source server application ID.
Source server ARN.
Source server data replication info.
Error in obtaining data replication info.
Error in data replication.
Error in data replication.
Request to query whether data replication has been initiated.
Request to query next data initiation date and time.
Request to query data initiation start date and time.
Request to query data initiation steps.
Data replication initiation step.
Request to query data initiation step name.
Request to query data initiation status.
Request to query the data replication state.
Request to query the time when data replication will be complete.
Request to query data replication lag duration.
Request to query data replication last snapshot time.
Request to query disks replicated.
Request to query disks replicated.
Request to query data replication backlog size in bytes.
Request to query device name.
Request to query amount of data replicated in bytes.
Request to query amount of data rescanned in bytes.
Request to query total amount of data replicated in bytes.
Source server archived status.
Source server launched instance.
Launched instance EC2 ID.
Launched instance first boot.
Launched instance Job ID.
Source server lifecycle state.
Lifecycle added to service data and time.
Lifecycle elapsed time and duration.
Lifecycle replication initiation date and time.
Lifecycle last Cutover.
Lifecycle Cutover finalized date and time.
Lifecycle Cutover finalized date and time.
Lifecycle last Cutover initiated.
Lifecycle last Cutover initiated by Job ID.
Lifecycle last Cutover reverted.
Lifecycle last Cutover reverted API call date time.
Lifecycle last seen date and time.
Lifecycle last Test.
Lifecycle last Test finalized.
Lifecycle Test failed API call date and time.
Lifecycle last Test initiated.
Lifecycle last Test initiated API call date and time.
Lifecycle last Test initiated Job ID.
Lifecycle last Test reverted.
Lifecycle last Test reverted API call date and time.
Lifecycle state.
Source server replication type.
Source server properties.
Source Server CPUs.
Source server CPU information.
The number of CPU cores on the source server.
The source server's CPU model name.
Source Server disks.
The disk identifier.
The amount of storage on the disk in bytes.
The disk or device name.
Source server identification hints.
AWS Instance ID identification hint.
FQDN address identification hint.
Hostname identification hint.
vCenter VM path identification hint.
vmWare UUID identification hint.
Source server last update date and time.
Source server network interfaces.
Network interface.
Network interface IPs.
Network interface primary IP.
Network interface Mac address.
Source server OS.
OS full string.
Source server RAM in bytes.
Source server recommended instance type.
Source server ID.
Source server Tags.
Source server vCenter client id.
Exceptions
mgn.Client.exceptions.UninitializedAccountException
mgn.Client.exceptions.ResourceNotFoundException
mgn.Client.exceptions.ValidationException
mgn.Client.exceptions.ServiceQuotaExceededException
mgn.Client.exceptions.ConflictException