参考本示例对预付费计费方式的堡垒机进行询价。
询价说明
获取预付费堡垒机的价格,您需要完成以下操作:
- 调用QueryProductList获取产品code,堡垒机的产品code为
bastionhost
。 - 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCode和SubscriptionType参数。预付费产品的SubscriptionType取值为Subscription。
下表列举了获取预付费堡垒机价格需提供的参数。
返回参数 取值范围 OrderType 订单类型,取值: - NewOrder:新购。
- Renewal:续费。
- Upgrade:升级。
Region 地域信息。 ModuleList.n.ModuleCode 取值为DescribePricingModule接口返回值中ModuleList参数的值。例如:NetworkType(网络类型)。 ModuleList.n.Config 取值为DescribePricingModule接口返回值中ModuleList参数的值。例如:NetworkType:vpc:(专有网络VPC)。 - 调用GetSubscriptionPrice接口获取预付费堡垒机的价格。
请求示例
新购:
https://business.aliyuncs.com/?Action=GetSubscriptionPrice
&ModuleList.1.Config=NetworkType:vpc
&ModuleList.1.ModuleCode=NetworkType
&ModuleList.2.Config=LicenseCode:bastionhost_ah_enterprise_license_100_asset
&ModuleList.2.ModuleCode=LicenseCode
&ModuleList.3.Config=PlanCode:enterprise-ah-v2
&ModuleList.3.ModuleCode=PlanCode
&OrderType=NewOrder
&ProductCode=bastionhost
&Quantity=1
&Region=cn-hangzhou
&ServicePeriodQuantity=1
&ServicePeriodUnit=Month
&SubscriptionType=Subscription
&公共参数