DescribeZones

Last Updated: Mar 28, 2018

Description

Describes the zones that are available to you in a specified region. For more information, see Regions and zones.

Request parameters

Name Type Required Description
Action String Yes The name of this interface. With a value: DescribeZones.
RegionId String Yes The region ID. For more information, see Regions and zones, or call DescribeRegions to obtain the latest region list.
InstanceChargeType String No Billing method of the instance. Optional values: Default value: PostPaid.
SpotStrategy String No Spot strategy of the instance, this parameter takes effect when you set PostPaid for InstanceChargeType. Optional values:
  • NoSpot: Bids as a normal Pay-As-You-Go instance.
  • SpotWithPriceLimit: Sets a bidding price threshold for the spot instance.
  • SpotAsPriceGo: Sets a highest Pay-As-You-Go price by the bidding system automatically.
Default value: NoSpot.

Response parameters

Name Type Description
Zones ZoneType A collection that contains ZoneType information.

Examples

Request example

  1. https://ecs.aliyuncs.com/?Action=DescribeZones
  2. &RegionId=cn-hangzhou
  3. &<Common Request Parameters>

Response example

XML format

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

Error codes

All are common error codes. For more information, see Common error codes.

Thank you! We've received your feedback.