Queries a list of commodity information by product code.
Operation description
This API operation queries 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. If you do not specify this parameter, the default value `zh` (Chinese) is used. | en |
Response elements
Parameter | Type | Description | Example |
object | |||
RequestId | string | The ID of the request. | CC706AAC-75A6-55B5-9AB7-7D171C6C7655 |
Message | string | 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 list of commodities. | |
object | The list of commodities. | ||
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. | ECS (Pay-As-You-Go) |
ChargeType | string | The billing method. Valid values: - POSTPAY: pay-as-you-go. - PREPAY: subscription. | POSTPAY |
Examples
Success response
JSON format
{
"RequestId": "CC706AAC-75A6-55B5-9AB7-7D171C6C7655",
"Message": "Successful!",
"Success": true,
"Code": "NotApplicable",
"Data": {
"CommodityList": [
{
"CommodityCode": "ecs",
"CommodityName": "ECS (Pay-As-You-Go)\n",
"ChargeType": "POSTPAY"
}
]
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.