Failback

Updated at:

Failback.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

hdr:Failback

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ServerId

string

No

Protected server ID

sr-000bzkmmlwghj95tnx15

RecoveryInfrastructureId

string

No

Recovery site infrastructure ID

is-0007rvzart0rz2byr2x0

RecoveryInstanceName

string

No

Instance name for disaster recovery

HDR_Recovery-sr-0007rvzart0rz2bv9fzm

RecoveryCpu

integer

No

Number of CPU cores for the disaster recovery instance

4

RecoveryMemory

integer

No

Memory size for the disaster recovery instance, in MB

4294967296

RecoveryInstanceType

string

No

Instance type for disaster recovery. If not specified, the system automatically selects an available instance type based on the number of CPU cores and memory size.

ecs.c5.2xlarge

RecoveryNetwork

string

No

VSwitch ID of the failback instance

vsw-bp1xmea0mkjtxqoubk7q8

RecoveryReserveIp

boolean

No

Retain the original IP address for the failback instance

true

RecoveryUseDhcp

boolean

No

Use DHCP to assign an IP address to the failback instance

false

RecoveryIpAddress

string

No

Manually set the IP address for the failback instance

192.168.2.2

RecoveryPostScriptType

string

No

Script type to run after the failback instance starts

SHELL

RecoveryPostScriptContent

string

No

Script content to run after the failback instance starts

"echo \"127.0.0.1 kubernetes.docker.internal\" >> /etc/hosts"

RecoveryPointId

string

No

Recovery point ID

rp-0001625ljmig7ahibe0y

Response elements

Element

Type

Description

Example

object

Code

string

Error code

200

Message

string

Error message

successful

RequestId

string

Request ID.

56CF7F68-C07B-5BE2-BE82-09D8E9719076

TaskId

string

Task ID.

t-0004ka624vrza82g46ne

Success

boolean

Indicates whether the request succeeded.

True

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "successful",
  "RequestId": "56CF7F68-C07B-5BE2-BE82-09D8E9719076",
  "TaskId": "t-0004ka624vrza82g46ne",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.