Queries the pricing objects of a product. A pricing object is the smallest unit of a product's capability used for metering and billing.
Operation description
Use this API to query the pricing objects of a product. A pricing object is the smallest unit of a product's capability used for metering and billing.
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 code of the product. To find the product code, call the QueryCommodityList operation. | ecs |
Lang | string | No | The language. The default value is zh (Chinese). | en |
Response elements
Parameter | Type | Description | Example |
object | |||
RequestId | string | The 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 objects. | |
object | A pricing object. | ||
PriceEntityCode | string | The code of the pricing object. | instance_type |
PriceEntityName | string | The name of the pricing object. | Elastic Compute Service (ECS) instance |
| 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. | Region |
| PriceFactorValueList | array | The list of pricing factor values. | |
string | The value of the pricing factor. | cn-shiwei-shenshu |
A product has one or more pricing objects. Each pricing object 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": "Elastic Compute Service (ECS) instance\n",
"PriceFactorList": [
{
"PriceFactorCode": "vm_region_no",
"PriceFactorName": "Region\n",
"PriceFactorValueList": [
"cn-shiwei-shenshu"
]
}
]
}
]
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.