Skip to content

Disconnect Source Server

drs_disconnect_source_server R Documentation

Disconnects a specific Source Server from Elastic Disaster Recovery

Description

Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery 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.

Usage

drs_disconnect_source_server(sourceServerID)

Arguments

sourceServerID

[required] The ID of the Source Server to disconnect.

Value

A list with the following syntax:

list(
  agentVersion = "string",
  arn = "string",
  dataReplicationInfo = list(
    dataReplicationError = list(
      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 = list(
      nextAttemptDateTime = "string",
      startDateTime = "string",
      steps = list(
        list(
          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 = list(
      list(
        backloggedStorageBytes = 123,
        deviceName = "string",
        replicatedStorageBytes = 123,
        rescannedStorageBytes = 123,
        totalStorageBytes = 123,
        volumeStatus = "REGULAR"|"CONTAINS_MARKETPLACE_PRODUCT_CODES"|"MISSING_VOLUME_ATTRIBUTES"|"MISSING_VOLUME_ATTRIBUTES_AND_PRECHECK_UNAVAILABLE"|"PENDING"
      )
    ),
    stagingAvailabilityZone = "string",
    stagingOutpostArn = "string"
  ),
  lastLaunchResult = "NOT_STARTED"|"PENDING"|"SUCCEEDED"|"FAILED",
  lifeCycle = list(
    addedToServiceDateTime = "string",
    elapsedReplicationDuration = "string",
    firstByteDateTime = "string",
    lastLaunch = list(
      initiated = list(
        apiCallDateTime = "string",
        jobID = "string",
        type = "RECOVERY"|"DRILL"
      ),
      status = "PENDING"|"IN_PROGRESS"|"LAUNCHED"|"FAILED"|"TERMINATED"
    ),
    lastSeenByServiceDateTime = "string"
  ),
  recoveryInstanceId = "string",
  replicationDirection = "FAILOVER"|"FAILBACK",
  reversedDirectionSourceServerArn = "string",
  sourceCloudProperties = list(
    originAccountID = "string",
    originAvailabilityZone = "string",
    originRegion = "string",
    sourceOutpostArn = "string"
  ),
  sourceNetworkID = "string",
  sourceProperties = list(
    cpus = list(
      list(
        cores = 123,
        modelName = "string"
      )
    ),
    disks = list(
      list(
        bytes = 123,
        deviceName = "string"
      )
    ),
    identificationHints = list(
      awsInstanceID = "string",
      fqdn = "string",
      hostname = "string",
      vmWareUuid = "string"
    ),
    lastUpdatedDateTime = "string",
    networkInterfaces = list(
      list(
        ips = list(
          "string"
        ),
        isPrimary = TRUE|FALSE,
        macAddress = "string"
      )
    ),
    os = list(
      fullString = "string"
    ),
    ramBytes = 123,
    recommendedInstanceType = "string",
    supportsNitroInstances = TRUE|FALSE
  ),
  sourceServerID = "string",
  stagingArea = list(
    errorMessage = "string",
    stagingAccountID = "string",
    stagingSourceServerArn = "string",
    status = "EXTENDED"|"EXTENSION_ERROR"|"NOT_EXTENDED"
  ),
  tags = list(
    "string"
  )
)

Request syntax

svc$disconnect_source_server(
  sourceServerID = "string"
)