获取轻量产品价格信息
接口说明
当您执行命令后,不代表命令一定成功运行,并且一定有预期的命令效果。您需要通过接口返回值查看实际执行结果,以实际输出结果为准。
您可以查询最近 2 周的执行信息,执行信息的保留上限为 10 万条。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
swas-open:DescribePrice |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
指定的轻量应用服务器实例所属的地域 ID。 您可以调用 ListRegions 查看支持的阿里云地域列表。 |
cn-hangzhou |
| CommodityType |
string |
是 |
资源类型,可选值:
|
Server |
| PlanId |
string |
是 |
套餐 ID。您可以调用 ListPlans 查询指定地域下的全部套餐信息。 |
swas.s1.cxxxxxx3t05 |
| DataDiskSize |
integer |
否 |
挂载的数据盘容量大小。单位:GB。取值范围:0~16380,取值必须是 20 的整数倍。 |
20 |
| Period |
integer |
否 |
计费时长。取值范围:
默认值:1。 |
1 |
| PriceUnit |
string |
否 |
取值范围:
默认值:Month。 |
Month |
| Amount |
integer |
否 |
创建轻量应用服务器的数量。取值范围:1~20 默认值:1 |
1 |
| PayType |
string |
否 |
实例的付费类型,取值:
示例值:Prepaid。 |
Prepaid |
| PromotionOptions |
object |
否 |
优惠选项信息。 |
|
| CouponNo |
string |
否 |
优惠券编码。 |
youhuiquan_promotion_option_id_for_blank |
| OrderType |
string |
否 |
订单类型:
默认值:Buy。 |
UPLOAD |
| AcceptLanguage |
string |
否 |
返回值语言,取值:
|
zh-CN |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
30637AD6-D977-4833-A54C-CC89483E**** |
| PriceInfo |
object |
价格详细信息。 |
|
| Rules |
array<object> |
活动规则信息。 |
|
|
object |
活动规则信息。 |
||
| Description |
string |
自定义参数描述。 |
买满一年,立享官网价格xxx折扣优惠。 |
| RuleId |
integer |
规则 ID。 |
142 |
| Price |
object |
价格信息。 |
|
| OriginalPrice |
number |
原价。 |
1580 |
| DiscountPrice |
number |
折减的价格。 |
0.0 |
| StandardPrice |
number |
官网折扣价 or 直销合同折扣价。 |
899 |
| StandardDiscountPrice |
number |
基于官网折扣的优惠价格。 |
85 |
| IsContractPromotion |
boolean |
是否命中优惠。 |
|
| Currency |
string |
价格单位。可能值:
|
CNY |
| TradePrice |
number |
交易价格。 |
267.4 |
| DetailInfos |
array<object> |
配置明细价格信息。 |
|
|
object |
配置明细价格信息。 |
||
| OriginalPrice |
number |
原价。 |
1850 |
| DiscountPrice |
number |
折扣价。 |
0.0 |
| CommodityType |
string |
资源名称。 |
Server |
| TradePrice |
number |
成交价。 |
267.4 |
| Coupons |
array<object> |
是否选中该优惠券。 |
|
|
object |
优惠券编号 |
||
| IsSelected |
boolean |
是否选中该优惠券。 |
|
| CouponNo |
string |
优惠码,默认值为: |
youhuiquan_promotion_option_id_for_blank |
| Description |
string |
自定义参数描述。 |
OK |
| DiscountOff |
number |
折扣、优惠。 |
20.0 |
| OptionCode |
string |
优惠 id。 |
***** |
| Name |
string |
命令名称。 |
ACS-SWAS-GenerateRsaKeypair-windows.ps1 |
| Promotions |
array<object> |
促销活动信息。 |
|
|
object |
促销活动信息。 |
||
| Name |
string |
优惠券名称。 |
ACS-SWAS-ResetPassword-for-linux.sh |
| DiscountOff |
number |
优惠券优惠金额。 |
20.0 |
| RuleIds |
array |
优惠 ID。 |
|
|
integer |
优惠 ID。 |
a7c77d3b3e6d458996410c650ef38326 |
示例
正常返回示例
JSON格式
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
"PriceInfo": {
"Rules": [
{
"Description": "买满一年,立享官网价格xxx折扣优惠。",
"RuleId": 142
}
],
"Price": {
"OriginalPrice": 1580,
"DiscountPrice": 0,
"StandardPrice": 899,
"StandardDiscountPrice": 85,
"IsContractPromotion": true,
"Currency": "CNY",
"TradePrice": 267.4,
"DetailInfos": [
{
"OriginalPrice": 1850,
"DiscountPrice": 0,
"CommodityType": "Server",
"TradePrice": 267.4
}
],
"Coupons": [
{
"IsSelected": true,
"CouponNo": "youhuiquan_promotion_option_id_for_blank",
"Description": "OK",
"DiscountOff": 20,
"OptionCode": "*****",
"Name": "ACS-SWAS-GenerateRsaKeypair-windows.ps1"
}
],
"Promotions": [
{
"Name": "ACS-SWAS-ResetPassword-for-linux.sh",
"DiscountOff": 20,
"RuleIds": [
0
]
}
]
}
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | CSS_SYSTEM_ERROR | The sales system encountered an error. | 售卖系统出现错误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。