Queries the pricing entities under a commodity. A pricing entity is the smallest product capability used for metering and cost calculation.
Operation description
Queries the pricing entities under a commodity. A pricing entity is the smallest product capability used for metering and cost calculation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:DescribeProduct |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CommodityCode |
string |
Yes |
The commodity code. You can call the QueryCommodityList operation to query the commodity code. |
ecs |
| Lang |
string |
No |
The language. Default value: zh. Valid values:
|
en |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
79EE7556-0CFD-44EB-9CD6-B3B526E3A85F |
| Code |
string |
The status code. |
Success |
| Message |
string |
The response message. |
Successful! |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
object |
The returned data. |
|
| PriceEntityInfoList |
array<object> |
The list of pricing entities. |
|
|
array<object> |
The pricing entity. |
||
| PriceEntityCode |
string |
The code of the pricing object. |
instance_type |
| PriceEntityName |
string |
The name of the pricing object. |
云服务器实例 |
| PriceFactorList |
array<object> |
The list of pricing factors. |
|
|
object |
A pricing factor. |
||
| PriceFactorCode |
string |
The code of the pricing factor. |
vm_region_no |
| PriceFactorName |
string |
The name of the pricing factor. |
地域 |
| PriceFactorValueList |
array |
The list of pricing factor values. |
|
|
string |
The value of the pricing factor. |
cn-shiwei-shenshu |
A commodity has one or more pricing entities. Each pricing entity has one or more pricing factors.
Examples
Success response
JSON format
{
"RequestId": "79EE7556-0CFD-44EB-9CD6-B3B526E3A85F",
"Code": "Success",
"Message": "Successful!",
"Success": true,
"Data": {
"PriceEntityInfoList": [
{
"PriceEntityCode": "instance_type",
"PriceEntityName": "云服务器实例",
"PriceFactorList": [
{
"PriceFactorCode": "vm_region_no",
"PriceFactorName": "地域",
"PriceFactorValueList": [
"cn-shiwei-shenshu"
]
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.