Call ActivateZones to restore the available zone that has been taken offline. Valid only for multi-zone instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request header

This operation uses only common request parameters. For more information, see the Common request parameters topic.

Request structure

POST /openapi/instances/[InstanceId]/actions/recover-zones HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
InstanceId String Yes es-cn-n6w1o1x0w001c****

The instance ID.

clientToken String No 5A2CFF0E-5718-45B5-9D4D-70B3FF****

A unique token generated by the client to guarantee the idempotency of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

RequestBody

You must enter the ID list of the zone to be restored in RequestBody, as shown in the following example.

["cn-hangzhou-i","cn-hangzhou-h"]

Response parameters

Parameter Type Example Description
RequestId String 5A5D8E74-565C-43DC-B031-29289FA****

The ID of the request.

Result Boolean true

Returned results:

  • true: recovery zone successfully
  • false: recovery zone failed

Examples

Sample requests

POST /openapi/instances/es-cn-n6w1o1x0w001c****/actions/recover-zones HTTP/1.1
common request parameters
["cn-hangzhou-i","cn-hangzhou-h"]

Sample success responses

JSON Format

{
    "Result": true,
    "RequestId": "5A5D8E74-565C-43DC-B031-29289FA****"
}

Errors codes

HttpCode Error code Error message Description
400 InstanceNotFound The instanceId provided does not exist. The error message returned because the instance cannot be found. Check the status of the instance.

For a list of error codes, visit the API Error Center.