Method: Aws::Drs::Client#create_extended_source_server
- Defined in:
- lib/aws-sdk-drs/client.rb
#create_extended_source_server(params = {}) ⇒ Types::CreateExtendedSourceServerResponse
Create an extended source server in the target Account based on the source server in staging account.
Examples:
Request syntax with placeholder values
Request syntax with placeholder values
resp = client.create_extended_source_server({
source_server_arn: "SourceServerARN", # required
tags: {
"TagKey" => "TagValue",
},
})
Response structure
Response structure
resp.source_server.agent_version #=> String
resp.source_server.arn #=> String
resp.source_server.data_replication_info.data_replication_error.error #=> String, one of "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"
resp.source_server.data_replication_info.data_replication_error.raw_error #=> String
resp.source_server.data_replication_info.data_replication_initiation.next_attempt_date_time #=> String
resp.source_server.data_replication_info.data_replication_initiation.start_date_time #=> String
resp.source_server.data_replication_info.data_replication_initiation.steps #=> Array
resp.source_server.data_replication_info.data_replication_initiation.steps[0].name #=> String, one of "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"
resp.source_server.data_replication_info.data_replication_initiation.steps[0].status #=> String, one of "NOT_STARTED", "IN_PROGRESS", "SUCCEEDED", "FAILED", "SKIPPED"
resp.source_server.data_replication_info.data_replication_state #=> String, one of "STOPPED", "INITIATING", "INITIAL_SYNC", "BACKLOG", "CREATING_SNAPSHOT", "CONTINUOUS", "PAUSED", "RESCAN", "STALLED", "DISCONNECTED"
resp.source_server.data_replication_info.eta_date_time #=> String
resp.source_server.data_replication_info.lag_duration #=> String
resp.source_server.data_replication_info.replicated_disks #=> Array
resp.source_server.data_replication_info.replicated_disks[0].backlogged_storage_bytes #=> Integer
resp.source_server.data_replication_info.replicated_disks[0].device_name #=> String
resp.source_server.data_replication_info.replicated_disks[0].replicated_storage_bytes #=> Integer
resp.source_server.data_replication_info.replicated_disks[0].rescanned_storage_bytes #=> Integer
resp.source_server.data_replication_info.replicated_disks[0].total_storage_bytes #=> Integer
resp.source_server.data_replication_info.replicated_disks[0].volume_status #=> String, one of "REGULAR", "CONTAINS_MARKETPLACE_PRODUCT_CODES", "MISSING_VOLUME_ATTRIBUTES", "MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE", "PENDING"
resp.source_server.data_replication_info.staging_availability_zone #=> String
resp.source_server.data_replication_info.staging_outpost_arn #=> String
resp.source_server.last_launch_result #=> String, one of "NOT_STARTED", "PENDING", "SUCCEEDED", "FAILED"
resp.source_server.life_cycle.added_to_service_date_time #=> String
resp.source_server.life_cycle.elapsed_replication_duration #=> String
resp.source_server.life_cycle.first_byte_date_time #=> String
resp.source_server.life_cycle.last_launch.initiated.api_call_date_time #=> String
resp.source_server.life_cycle.last_launch.initiated.job_id #=> String
resp.source_server.life_cycle.last_launch.initiated.type #=> String, one of "RECOVERY", "DRILL"
resp.source_server.life_cycle.last_launch.status #=> String, one of "PENDING", "IN_PROGRESS", "LAUNCHED", "FAILED", "TERMINATED"
resp.source_server.life_cycle.last_seen_by_service_date_time #=> String
resp.source_server.recovery_instance_id #=> String
resp.source_server.replication_direction #=> String, one of "FAILOVER", "FAILBACK"
resp.source_server.reversed_direction_source_server_arn #=> String
resp.source_server.source_cloud_properties.origin_account_id #=> String
resp.source_server.source_cloud_properties.origin_availability_zone #=> String
resp.source_server.source_cloud_properties.origin_region #=> String
resp.source_server.source_cloud_properties.source_outpost_arn #=> String
resp.source_server.source_network_id #=> String
resp.source_server.source_properties.cpus #=> Array
resp.source_server.source_properties.cpus[0].cores #=> Integer
resp.source_server.source_properties.cpus[0].model_name #=> String
resp.source_server.source_properties.disks #=> Array
resp.source_server.source_properties.disks[0].bytes #=> Integer
resp.source_server.source_properties.disks[0].device_name #=> String
resp.source_server.source_properties.identification_hints.aws_instance_id #=> String
resp.source_server.source_properties.identification_hints.fqdn #=> String
resp.source_server.source_properties.identification_hints.hostname #=> String
resp.source_server.source_properties.identification_hints.vm_ware_uuid #=> String
resp.source_server.source_properties.last_updated_date_time #=> String
resp.source_server.source_properties.network_interfaces #=> Array
resp.source_server.source_properties.network_interfaces[0].ips #=> Array
resp.source_server.source_properties.network_interfaces[0].ips[0] #=> String
resp.source_server.source_properties.network_interfaces[0].is_primary #=> Boolean
resp.source_server.source_properties.network_interfaces[0].mac_address #=> String
resp.source_server.source_properties.os.full_string #=> String
resp.source_server.source_properties.ram_bytes #=> Integer
resp.source_server.source_properties.recommended_instance_type #=> String
resp.source_server.source_properties.supports_nitro_instances #=> Boolean
resp.source_server.source_server_id #=> String
resp.source_server.staging_area.error_message #=> String
resp.source_server.staging_area.staging_account_id #=> String
resp.source_server.staging_area.staging_source_server_arn #=> String
resp.source_server.staging_area.status #=> String, one of "EXTENDED", "EXTENSION_ERROR", "NOT_EXTENDED"
resp.source_server.tags #=> Hash
resp.source_server.tags["TagKey"] #=> String
Parameters:
-
params
(Hash)
(defaults to: {})
—
({})
Options Hash (params):
-
:source_server_arn
(required, String)
—
This defines the ARN of the source server in staging Account based on which you want to create an extended source server.
-
:tags
(Hash<String,String>)
—
A list of tags associated with the extended source server.
Returns:
-
(Types::CreateExtendedSourceServerResponse)
—
Returns a response object which responds to the following methods:
-
#source_server => Types::SourceServer
-
See Also:
612 613 614 615 |
# File 'lib/aws-sdk-drs/client.rb', line 612 def create_extended_source_server(params = {}, options = {}) req = build_request(:create_extended_source_server, params) req.send_request(options) end |