You can call this operation to query the regions supported by DBS.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeRegions

The operation that you want to perform. Set the value to DescribeRegions.

RegionId String No cn-hangzhou

The region ID of the instance. You can call DescribeRegions query.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

The client token that is used to ensure 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.

Response parameters

Parameter Type Example Description
ErrCode String InvalidParameter

The error code string.

ErrMessage String This backupPlan can't support this action

The error message.

HttpStatusCode Integer 400

The error code value.

Regions List cn-hangzhou

The list of supported regions.

RequestId String EB4DFD5E-3618-498D-BE35-4DBEA0072122

The ID of the request.

Success Boolean true

Indicates the status of the request.

Examples

Sample requests

http(s)://dbs-api.cn-hangzhou.aliyuncs.com/? Action=DescribeRegions
&<Common request parameters>

Sample success responses

XML format

<DescribeRegionsResponse>
      <RequestId>EB4DFD5E-3618-498D-BE35-4DBEA0072122</RequestId>
      <HttpStatusCode>400</HttpStatusCode>
      <Regions>
            <RegionCode></RegionCode>
      </Regions>
      <ErrMessage>This backupPlan can't support this action</ErrMessage>
      <Success>true</Success>
      <ErrCode>InvalidParameter</ErrCode>
</DescribeRegionsResponse>

JSON format

{
    "DescribeRegionsResponse": {
        "RequestId": "EB4DFD5E-3618-498D-BE35-4DBEA0072122",
        "HttpStatusCode": 400,
        "Regions": {
            "RegionCode": ""
        },
        "ErrMessage": "This backupPlan can't support this action",
        "Success": true,
        "ErrCode": "InvalidParameter"
    }
}

Error codes

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