Retrieves a list of commodity information based on a product code.
Operation description
Retrieves a list of commodity information based on a product code.
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 |
| ProductCode |
string |
Yes |
The product 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 |
CC706AAC-75A6-55B5-9AB7-7D171C6C7655 |
| Message |
string |
The additional information about the call result. |
Successful! |
| Success |
boolean |
Indicates whether the call was successful. |
True |
| Code |
string |
The status code. |
NotApplicable |
| Data |
object |
The returned data. |
|
| CommodityList |
array<object> |
The commodity list. |
|
|
object |
The commodity list. |
||
| CommodityCode |
string |
The commodity code. This code is the same as the product code in the User Center. |
ecs |
| CommodityName |
string |
The name of the commodity. |
云服务器(按量付费) |
| ChargeType |
string |
The billing method. Valid values: - POSTPAY: pay-as-you-go. - PREPAY: subscription. Valid values:
|
POSTPAY |
Examples
Success response
JSON format
{
"RequestId": "CC706AAC-75A6-55B5-9AB7-7D171C6C7655",
"Message": "Successful!",
"Success": true,
"Code": "NotApplicable",
"Data": {
"CommodityList": [
{
"CommodityCode": "ecs",
"CommodityName": "云服务器(按量付费)",
"ChargeType": "POSTPAY"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.