QuerySkuPriceList
Queries the SKUs and their list prices for a specific product feature. You can also filter the query by specifying SKU configurations in the request parameters.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
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. Call the QueryCommodityList operation to query the commodity code. | ecs |
PriceEntityCode | string | Yes | The pricing entity code. Call the QueryPriceEntityList operation to query the pricing entity code. | instance_type |
PageSize | integer | Yes | The number of entries to return on each page. The maximum value is 50. | 20 |
NextPageToken | string | No | The paging token. Leave this parameter empty for the first query. The token for the next page is returned in the query result. An empty token indicates that all results have been returned. You can get the next page token from the NextPageToken field in the query result. | 080112060a0422020800180022490a470342000000315333303332363436363336333433393636333136333338333733373333333133373336363336323634363336363337333836333636333636313336363433363332 |
| PriceFactorConditionMap | object | No | A collection of pricing factor conditions. Call the QueryPriceEntityList operation to query pricing factor codes and their values. | |
array | No | A collection of pricing object factor values. | ||
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 | Schema of Response | ||
RequestId | string | Id of the request | F5B803CF-94D8-43AF-ADB3-D819AAD30E27 |
Code | string | The status code. | Success |
Message | string | The returned message. | Successful! |
Success | boolean | Indicates whether the request was successful. | true |
| Data | object | The returned data. | |
| SkuPricePage | object | The SKU information of the pricing object. | |
TotalCount | integer | The total number of SKUs. | 18732 |
NextPageToken | string | The token for the next page. | 080112060a0422020800180022490a470342000000315333303332363436363336333433393636333136333338333733373333333133373336363336323634363336363337333836333636333636313336363433363332 |
| SkuPriceList | array<object> | The list of SKUs. | |
object | The SKU object. | ||
SkuCode | string | The SKU code. | 017c15a31507bc6de22aa93777461adc |
| CskuPriceList | array<object> | The list of SKU prices. | |
object | The SKU price object. | ||
CskuCode | string | The CSK code, which is the unique identifier for a price. | ac74dd7b52ae6389ddef099283fb8275 |
Currency | string | The currency. | CNY |
UsageUnit | string | The usage unit. | Count |
PriceType | string | The price type. | hourPrice |
PriceMode | string | The pricing model. | STEP_ARRIVE |
Price | string | The price. | 100 |
PriceUnit | string | The price unit. | USD (per unit) |
| RangeList | array<object> | This parameter has a value that specifies the range only when `PriceMode` is `STEP_ACCUMULATION` or `STEP_ARRIVE`. If `PriceMode` is `NORMAL_PRICE`, this parameter is null. | |
object | |||
FactorCode | string | The factor code. | 212fbd27866307fc79ecf06934a88b2c |
Min | string | The minimum value. | 1 |
Max | string | The maximum value. | 10 |
Type | string | The interval closure type. | LORC |
| SkuFactorMap | object | A collection of factor values. | |
string | The factor value pair. The pricing objects of different commodities have their own factors. For example, the factors for the | {"vm_region_no","cn-qingdao-nebula"} |
Examples
Success response
JSON format
{
"RequestId": "F5B803CF-94D8-43AF-ADB3-D819AAD30E27",
"Code": "Success",
"Message": "Successful!",
"Success": true,
"Data": {
"SkuPricePage": {
"TotalCount": 18732,
"NextPageToken": "080112060a0422020800180022490a470342000000315333303332363436363336333433393636333136333338333733373333333133373336363336323634363336363337333836333636333636313336363433363332",
"SkuPriceList": [
{
"SkuCode": "017c15a31507bc6de22aa93777461adc",
"CskuPriceList": [
{
"CskuCode": "ac74dd7b52ae6389ddef099283fb8275",
"Currency": "CNY",
"UsageUnit": "Count\n",
"PriceType": "hourPrice",
"PriceMode": "STEP_ARRIVE",
"Price": "100",
"PriceUnit": "USD (per unit)\n",
"RangeList": [
{
"FactorCode": "212fbd27866307fc79ecf06934a88b2c",
"Min": "1",
"Max": "10",
"Type": "LORC"
}
]
}
],
"SkuFactorMap": {
"key": "{\"vm_region_no\",\"cn-qingdao-nebula\"}"
}
}
]
}
}
}Error codes
See for a complete list.
Release notes
See 变更详情 for a complete list.