edit-icon download-icon

DescribeZones

Last Updated: Apr 13, 2018

Description

Query the list of zones in a region.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DescribeZones

RegionId String Yes

The ID of the region.

You can obtain the region ID by calling the DescribeRegions API.

Response parameters

Name Type Description
RequestId String The ID of the request.
Zones JSON string

An array of zones.

For more information, see ZoneType.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=DescribeZones
  2. &RegionId=cn-hangzhou
  3. &<CommonParameters>

Response example

XML format

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <DescribeZonesResponse>
  3. <Zones>
  4. <Zone>
  5. <AvailableResourceCreation>
  6. <ResourceTypes>Instance</ResourceTypes>
  7. <ResourceTypes>Disk</ResourceTypes>
  8. </AvailableResourceCreation>
  9. <LocalName></LocalName>
  10. <ZoneId>cn-hangzhou-d</ZoneId>
  11. <AvailableDiskCategories>
  12. <DiskCategories>cloud</DiskCategories>
  13. </AvailableDiskCategories>
  14. </Zone>
  15. <Zone>
  16. <AvailableResourceCreation>
  17. <ResourceTypes>Instance</ResourceTypes>
  18. <ResourceTypes>Disk</ResourceTypes>
  19. </AvailableResourceCreation>
  20. <LocalName></LocalName>
  21. <ZoneId>cn-hangzhou-b</ZoneId>
  22. <AvailableDiskCategories>
  23. <DiskCategories>cloud</DiskCategories>
  24. </AvailableDiskCategories>
  25. </Zone>
  26. </Zones>
  27. <RequestId>6DB97BCC-92BA-424D-A7C8-3F6486612BAE</RequestId>
  28. </DescribeZonesResponse>

JSON format

  1. {
  2. "RequestId": "A347EF0E-BBCC-4EFA-BD79-27AA3ACFD1BF",
  3. "Zones": {
  4. "Zone": [
  5. {
  6. "AvailableDiskCategories": {
  7. "DiskCategories": [
  8. "cloud"
  9. ]
  10. },
  11. "AvailableResourceCreation": {
  12. "ResourceTypes": [
  13. "Instance",
  14. "Disk"
  15. ]
  16. },
  17. "LocalName": "",
  18. "ZoneId": "cn-hangzhou-d"
  19. },
  20. {
  21. "AvailableDiskCategories": {
  22. "DiskCategories": [
  23. "cloud"
  24. ]
  25. },
  26. "AvailableResourceCreation": {
  27. "ResourceTypes": [
  28. "Instance",
  29. "Disk"
  30. ]
  31. },
  32. "LocalName": "",
  33. "ZoneId": "cn-hangzhou-b"
  34. }
  35. ]
  36. }
  37. }
Thank you! We've received your feedback.