All Products
Search
Document Center

ApsaraMQ for RocketMQ:ListAvailableZones

Last Updated:Nov 26, 2024

Queries the supported zones.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /zones HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object

Result<List>

requestIdstring

The ID of the request. Each request has a unique ID. You can use this ID to troubleshoot issues.

AF9A8B10-C426-530F-A0DD-96320B39****
successboolean

Indicates whether the call was successful.

true
dataarray<object>

The result data that is returned.

dataobject
zoneIdstring

The ID of the current zone.

cn-qingdao-b
zoneNamestring

The name of the current zone.

ha-cn-t9b30w902vm_qrs
createTimestring

The time when the zone was created.

2022-08-01 20:05:50
updateTimestring

The time when the zone was last updated.

2022-08-01 20:05:50
codestring

The error code returned if the call failed.

Topic.NotFound
messagestring

The error message.

Parameter instanceId is mandatory for this action .
httpStatusCodeinteger

The HTTP status code.

200
dynamicCodestring

The dynamic error code.

InstanceId
dynamicMessagestring

The dynamic error message.

InstanceId

Examples

Sample success responses

JSONformat

{
  "requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
  "success": true,
  "data": [
    {
      "zoneId": "cn-qingdao-b",
      "zoneName": "ha-cn-t9b30w902vm_qrs",
      "createTime": "2022-08-01 20:05:50",
      "updateTime": "2022-08-01 20:05:50"
    }
  ],
  "code": "Topic.NotFound",
  "message": "Parameter instanceId is mandatory for this action .",
  "httpStatusCode": 200,
  "dynamicCode": "InstanceId",
  "dynamicMessage": "InstanceId"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-09-23The internal configuration of the API is changed, but the call is not affectedView Change Details