- What's New
- Function Overview
- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
- Process of Using RocketMQ
- Creating a User and Granting DMS for RocketMQ Permissions
- Buying a RocketMQ Instance
- Configuring a Topic
- Accessing an Instance
- Managing Messages
- Managing Consumer Groups
-
Managing Instances
- Viewing and Modifying Basic Information of a RocketMQ Instance
- Viewing Background Tasks of a RocketMQ Instance
- Configuring Tags for a RocketMQ Instance
- Exporting RocketMQ Instances
- Diagnosing a RocketMQ Instance
- Restarting Brokers of a RocketMQ Instance
- Deleting a RocketMQ Instance
- Configuring SSL of a RocketMQ Instance
- Modifying RocketMQ Specifications
- Migrating Metadata
- Viewing Monitoring Metrics and Configuring Alarms
- Viewing RocketMQ Audit Logs
- Best Practices
- Developer Guide
- API Reference
- SDK Reference
- FAQs
- Videos
Querying AZ Information
Function
This API is used to query the AZ ID for creating an instance.
URI
GET /v2/available-zones
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
region_id |
String |
Region ID. |
available_zones |
Array of available_zones objects |
Array of AZs. |
Parameter |
Type |
Description |
---|---|---|
soldOut |
Boolean |
Whether resources are sold out. |
id |
String |
AZ ID. |
code |
String |
AZ code. |
name |
String |
AZ name. |
port |
String |
AZ port. |
resource_availability |
String |
Whether the AZ has available resources. |
default_az |
Boolean |
Whether the AZ is the default AZ. |
remain_time |
Long |
Remaining time. |
ipv6_enable |
Boolean |
Whether IPv6 is supported. |
Example Requests
GET https://{endpoint}/v2/available-zones?engine=reliability
Example Responses
Status code: 200
AZ information queried successfully.
{ "regionId" : "xxx", "available_zones" : [ { "soldOut" : false, "id" : "8c90c2a4e2594c0782faa6b205afeca7", "code" : "xxx", "name" : "AZ 1", "port" : "8002", "resource_availability" : "true", "default_az" : false, "remain_time" : 9223372036854776000, "ipv6_enable" : false }, { "soldOut" : false, "id" : "d539378ec1314c85b76fefa3f7071458", "code" : "xxx", "name" : "AZ 2", "port" : "8003", "resource_availability" : "true", "default_az" : false, "remain_time" : 9223372036854776000, "ipv6_enable" : false }, { "soldOut" : false, "id" : "9f1c5806706d4c1fb0eb72f0a9b18c77", "code" : "xxx", "name" : "AZ 3", "port" : "443", "resource_availability" : "true", "default_az" : true, "remain_time" : 9223372036854776000, "ipv6_enable" : false } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
AZ information queried successfully. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.