Skip to content

Start Recovery

drs_start_recovery R Documentation

Launches Recovery Instances for the specified Source Servers

Description

Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.

Usage

drs_start_recovery(isDrill, sourceServers, tags)

Arguments

isDrill

Whether this Source Server Recovery operation is a drill or not.

sourceServers

[required] The Source Servers that we want to start a Recovery Job for.

tags

The tags to be associated with the Recovery Job.

Value

A list with the following syntax:

list(
  job = list(
    arn = "string",
    creationDateTime = "string",
    endDateTime = "string",
    initiatedBy = "START_RECOVERY"|"START_DRILL"|"FAILBACK"|"DIAGNOSTIC"|"TERMINATE_RECOVERY_INSTANCES"|"TARGET_ACCOUNT"|"CREATE_NETWORK_RECOVERY"|"UPDATE_NETWORK_RECOVERY"|"ASSOCIATE_NETWORK_RECOVERY",
    jobID = "string",
    participatingResources = list(
      list(
        launchStatus = "PENDING"|"IN_PROGRESS"|"LAUNCHED"|"FAILED"|"TERMINATED",
        participatingResourceID = list(
          sourceNetworkID = "string"
        )
      )
    ),
    participatingServers = list(
      list(
        launchActionsStatus = list(
          runs = list(
            list(
              action = list(
                actionCode = "string",
                actionId = "string",
                actionVersion = "string",
                active = TRUE|FALSE,
                category = "MONITORING"|"VALIDATION"|"CONFIGURATION"|"SECURITY"|"OTHER",
                description = "string",
                name = "string",
                optional = TRUE|FALSE,
                order = 123,
                parameters = list(
                  list(
                    type = "SSM_STORE"|"DYNAMIC",
                    value = "string"
                  )
                ),
                type = "SSM_AUTOMATION"|"SSM_COMMAND"
              ),
              failureReason = "string",
              runId = "string",
              status = "IN_PROGRESS"|"SUCCEEDED"|"FAILED"
            )
          ),
          ssmAgentDiscoveryDatetime = "string"
        ),
        launchStatus = "PENDING"|"IN_PROGRESS"|"LAUNCHED"|"FAILED"|"TERMINATED",
        recoveryInstanceID = "string",
        sourceServerID = "string"
      )
    ),
    status = "PENDING"|"STARTED"|"COMPLETED",
    tags = list(
      "string"
    ),
    type = "LAUNCH"|"TERMINATE"|"CREATE_CONVERTED_SNAPSHOT"
  )
)

Request syntax

svc$start_recovery(
  isDrill = TRUE|FALSE,
  sourceServers = list(
    list(
      recoverySnapshotID = "string",
      sourceServerID = "string"
    )
  ),
  tags = list(
    "string"
  )
)