ECS realize his purchase page need to use the API

1. Query area that can be purchased

DescribeRegions

To the Senate:

  • Pay Type: instanceChargeType (optional), Value: PrePaid | PostPaid, representing the package monthly subscription | pay by volume

2. Inquiries can be made available to purchase area

DescribeAvailableResource

To the Senate:

  • Pay Type: instanceChargeType (required), PrePaid | PostPaid
  • Regional: regionId (required)
  • Target resource to be queried: destinationResource = Zone

3. query instance specification can be purchased

DescribeAvailableResource

To the Senate:

  • Regional: regionId (required)
  • Available area: zoneId (optional)
  • I / O 优化: ioOptimized = optimized
  • Target resource to be queried: destinationResource = InstanceType

4. Query real

Guess you like

Origin yq.aliyun.com/articles/717280