查询开启多可用区的价格
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /webapi/priceInquiry/enableMultiAz HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求结构体。 |
|
| instanceId |
string |
否 |
实例 ID。 |
c-8dsy12g***** |
| promotionOptionNo |
string |
否 |
优惠券 |
youhuiquan_12378dfj6 |
| observers |
array<object> |
否 |
observers 列表 |
|
|
object |
否 |
|||
| zoneId |
string |
否 |
可用区 ID。 |
cn-shanghai-h |
| vswId |
string |
否 |
交换机 ID。 |
vsw-9sdur12t27s |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 请求状态码。 |
200 |
| RequestId |
string |
请求 ID。 |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
请求是否成功。 |
True |
| ErrCode |
string |
错误码。 |
InvalidParams |
| ErrMessage |
string |
错误信息。 |
Invalid params: [instance not exists]. |
| Data |
object |
返回数据。 |
|
| OriginalAmount |
number |
原价(原始金额)=目录价*计费用量 |
7641 |
| DiscountAmount |
number |
优惠金额=原始金额-账单应付金额(包括优惠券抵扣金额) |
0 |
| TradeAmount |
number |
金额。 |
7641 |
| ComponentPrices |
array<object> |
组件价格 |
|
|
object |
组件价格 |
||
| ComponentName |
string |
组件名称 |
multi-zone |
| OriginalAmount |
number |
订单原价。 |
7641 |
| DiscountAmount |
number |
订单优惠金额。 |
0 |
| TradeAmount |
number |
最终价,为原价减去折扣。 |
7641 |
| Currency |
string |
币种。取值范围:
|
CNY |
| OptionalPromotions |
array<object> |
优惠券信息。 |
|
|
object |
优惠券编号 |
||
| PromotionOptionNo |
string |
优惠券 ID。 |
youhuiquan_12378dfj6 |
| PromotionName |
string |
优惠券名称。 |
youhuiquan_promotion_option_id_for_blank |
| PromotionDesc |
string |
优惠券描述。 |
youhuiquan_desc |
| StandPrice |
number |
官网折扣价 |
7641 |
| StandDiscountPrice |
number |
基于官网折扣的优惠价格 |
7641 |
| DepreciateInfo |
object |
降价后官网总价。 |
7641 |
| CheapRate |
number |
降价比例。 |
0 |
| CheapStandAmount |
number |
降价后官网总价。 |
7641 |
| OriginalStandAmount |
number |
原始官网价总价 |
7641 |
| IsShow |
boolean |
是否展示降价幅度。 |
true |
| Rules |
array<object> |
返回数据结构。 |
|
|
object |
规则列表。 |
||
| Name |
string |
规则名称 |
rule_28sdhsu2320t |
| RuleDescId |
string |
规则 ID。 |
2ju2sd9dss |
| Amount |
number |
数量 |
2 |
| ModuleInstance |
array<object> |
模块 Id。 |
|
|
object |
属性代码。 |
||
| ModuleName |
string |
模块名称。 |
zone |
| TotalProductFee |
string |
产品原价。 |
7641 |
| ModuleCode |
string |
计价模块标识。 |
multi-zone |
| StandPrice |
string |
折扣价。 |
7641 |
| AccessDeniedDetail |
string |
AccessDeniedDetail |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": true,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Data": {
"OriginalAmount": 7641,
"DiscountAmount": 0,
"TradeAmount": 7641,
"ComponentPrices": [
{
"ComponentName": "multi-zone",
"OriginalAmount": 7641,
"DiscountAmount": 0,
"TradeAmount": 7641
}
],
"Currency": "CNY",
"OptionalPromotions": [
{
"PromotionOptionNo": "youhuiquan_12378dfj6",
"PromotionName": "youhuiquan_promotion_option_id_for_blank",
"PromotionDesc": "youhuiquan_desc"
}
],
"StandPrice": 7641,
"StandDiscountPrice": 7641,
"DepreciateInfo": {
"CheapRate": 0,
"CheapStandAmount": 7641,
"OriginalStandAmount": 7641,
"IsShow": true
},
"Rules": [
{
"Name": "rule_28sdhsu2320t",
"RuleDescId": "2ju2sd9dss",
"Amount": 2
}
],
"ModuleInstance": [
{
"ModuleName": "zone",
"TotalProductFee": "7641",
"ModuleCode": "multi-zone",
"StandPrice": "7641"
}
]
},
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。