全部产品
云市场

云服务器ECS预付费

更新时间:2019-08-19 11:29:46

说明:提供的样例供参考,请参照DescribePricingModule接口返回数据拼装询价和新购请求。

预付费Subscription

接口参数和取值范围

名称 说明 取值范围
Action GetSubscriptionPrice
ProductCode ecs
SubscriptionType Subscription
OrderType NewOrder, Renewal, Upgrade
Region 请参见region信息
ModuleList.1.ModuleCode 实例规格 InstanceType
ModuleList.1.Config 实例规格取值 InstanceType:ecs.g5.xlarge,IoOptimized:IoOptimized,ImageOs:windows,InstanceTypeFamily:ecs.g5
ModuleList.2.ModuleCode 系统盘 SystemDisk
ModuleList.2.Config 系统盘取值 SystemDisk.Category:cloud_efficiency,SystemDisk.Size:55
ModuleList.3.ModuleCode 数据盘 DataDisk
ModuleList.3.Config 数据盘取值 DataDisk.Category:cloud_ssd,DataDisk.Size:130
ModuleList.4.ModuleCode 公网带宽和类型 InternetMaxBandwidthOut
ModuleList.4.Config 公网带宽取值和类型取值 InternetMaxBandwidthOut:1024,InternetMaxBandwidthOut.IsFlowType:5,NetworkType:1; 5:按固定单宽,1:按使用流量;默认为5,如为1则InternetMaxBandwidthOut参数无效
ServicePeriodQuantity 购买时长 1
ServicePeriodUnit 购买时长单位 Week,Month,Year
Quantity 购买数量 1:整数
  • 备注:BSS目前仅支持该商品询价,其他接口可查询该商品官网文档

接口参数和取值样例

ECS NewOrder:

  1. https://business.aliyuncs.com/?Action=GetSubscriptionPrice
  2. &ProductCode=ecs
  3. &SubscriptionType=Subscription
  4. &OrderType=NewOrder
  5. &Region=cn-qingdao
  6. &ModuleList.1.ModuleCode=InstanceType
  7. &ModuleList.1.Config=InstanceType:ecs.g5.xlarge,IoOptimized:IoOptimized,ImageOs:windows,InstanceTypeFamily:ecs.g5
  8. &ModuleList.2.ModuleCode=SystemDisk
  9. &ModuleList.2.Config=SystemDisk.Category:cloud_efficiency,SystemDisk.Size:55
  10. &ModuleList.3.ModuleCode=DataDisk
  11. &ModuleList.3.Config=DataDisk.Category:cloud_ssd,DataDisk.Size:130
  12. &ModuleList.4.ModuleCode=InternetMaxBandwidthOut
  13. &ModuleList.4.Config=InternetMaxBandwidthOut:1024,InternetMaxBandwidthOut.IsFlowType:5,NetworkType:1
  14. &Quantity=1
  15. &ServicePeriodQuantity=1
  16. &ServicePeriodUnit=Month
  17. &公共参数

ECS Renewal:

  1. https://business.aliyuncs.com/?Action=GetSubscriptionPrice
  2. &ProductCode=ecs
  3. &SubscriptionType=Subscription
  4. &OrderType=Renewal
  5. &Region=cn-qingdao
  6. &InstanceId=i-m5eiwg1x521mtqfvyqbc
  7. &ModuleList.1.ModuleCode=InstanceType
  8. &ModuleList.1.Config=InstanceType:ecs.g5.xlarge,IoOptimized:IoOptimized,ImageOs:windows
  9. &ModuleList.2.ModuleCode=SystemDisk
  10. &ModuleList.2.Config=SystemDisk.Category:cloud_efficiency,SystemDisk.Size:55
  11. &ModuleList.3.ModuleCode=DataDisk
  12. &ModuleList.3.Config=DataDisk.Category:cloud_ssd,DataDisk.Size:130
  13. &ModuleList.4.ModuleCode=InternetMaxBandwidthOut
  14. &ModuleList.4.Config=InternetMaxBandwidthOut:1024
  15. &Quantity=1
  16. &ServicePeriodQuantity=1
  17. &ServicePeriodUnit=Year
  18. &公共参数

ECS Upgrade:

  1. https://business.aliyuncs.com/?Action=GetSubscriptionPrice
  2. &ProductCode=ecs
  3. &SubscriptionType=Subscription
  4. &OrderType=Renewal
  5. &Region=cn-qingdao
  6. &InstanceId=i-m5eiwg1x521mtqfvyqbc
  7. &ModuleList.1.ModuleCode=InstanceType
  8. &ModuleList.1.Config=InstanceType:ecs.g5.xlarge,IoOptimized:IoOptimized,ImageOs:windows
  9. &ModuleList.1.ModuleStatus=2
  10. &ModuleList.2.ModuleCode=InternetMaxBandwidthOut
  11. &ModuleList.2.Config=InternetMaxBandwidthOut:2048
  12. &ModuleList.2.ModuleStatus=2
  13. &Quantity=1
  14. &ServicePeriodQuantity=1
  15. &ServicePeriodUnit=Year
  16. &公共参数