Queries the price of a container group with the specified CPU and memory specifications.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Cpu | Float | Yes | 2.00 |
The amount of CPU resources allocated to the container group. |
Memory | Float | Yes | 4.00 |
The amount of memory resources allocated to the container group. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the container group. |
Action | String | No | DescribeContainerGroupPrice |
The operation that you want to perform. Set the value to DescribeContainerGroupPrice. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
PriceInfo | N/A | N/A |
The information about the price and discount rules. |
Price | N/A | N/A |
The price. |
Currency | String | CNY |
The currency unit. |
DetailInfos | Array | N/A |
The details about the price. |
DetailInfo | N/A | N/A |
The details about the price. |
DiscountPrice | Float | 0 |
The discount. |
OriginalPrice | Float | 0.000098 |
The original price. |
Resource | String | CPU |
The name of the resource. |
Rules | Array | N/A |
A subset of pricing rules. |
Rule | N/A | N/A |
A pricing rule. |
Description | String | Get a 15% discount on a 1-year subscription |
The description of the rule subset. |
RuleId | Long | 587 |
The ID of the rule. |
TradePrice | Float | 0.000098 |
The transaction price. |
DiscountPrice | Float | 0 |
The discount. |
OriginalPrice | Float | 0.00012252 |
The original price. |
TradePrice | Float | 0.00012252 |
The transaction price, which is equal to the original price minus the discount. |
Rules | Array | N/A |
The promotion rules. |
Rule | N/A | N/A |
The promotion rule. |
Description | String | Get a 15% discount on a 1-year subscription |
The description of the promotion rule. |
RuleId | Long | 587 |
The ID of the rule. |
RequestId | String | 114E5305-95EA-4E87-9F23-19D4EC67119B |
The unique ID of the request. |
Examples
Sample requests
http(s)://eci.aliyuncs.com/? Action=DescribeContainerGroupPrice
&Cpu=2.00
&Memory=4.00
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<PriceInfo>
<Price>
<DiscountPrice>0</DiscountPrice>
<DetailInfos>
<DetailInfo>
<Resource>cpu</Resource>
<DiscountPrice>0</DiscountPrice>
<OriginalPrice>0.000098</OriginalPrice>
<Rules>
</Rules>
<TradePrice>0.000098</TradePrice>
</DetailInfo>
<DetailInfo>
<Resource>mem</Resource>
<DiscountPrice>0</DiscountPrice>
<OriginalPrice>0.00002452</OriginalPrice>
<Rules>
</Rules>
<TradePrice>0.00002452</TradePrice>
</DetailInfo>
</DetailInfos>
<OriginalPrice>0.00012252</OriginalPrice>
<TradePrice>0.00012252</TradePrice>
<Currency>CNY</Currency>
</Price>
<Rules>
</Rules>
</PriceInfo>
<RequestId>114E5305-95EA-4E87-9F23-19D4EC67119B</RequestId>
JSON
format
{
"PriceInfo":{
"Price":{
"DiscountPrice":0,
"OriginalPrice":0.00012252,
"DetailInfos":{
"DetailInfo":[
{
"Resource":"cpu",
"DiscountPrice":0,
"OriginalPrice":0.000098,
"TradePrice":0.000098,
"Rules":{
"Rule":[]
}
},
{
"Resource":"mem",
"DiscountPrice":0,
"OriginalPrice":0.00002452,
"TradePrice":0.00002452,
"Rules":{
"Rule":[]
}
}
]
},
"TradePrice":0.00012252,
"Currency":"CNY"
},
"Rules":{
"Rule":[]
}
},
"RequestId":"114E5305-95EA-4E87-9F23-19D4EC67119B"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParam.CpuOrMemorySpec | The specified specification is invalid. | The error message returned because the specified specification is unavailable. You cannot query the prices. |
400 | TradeBidCommodityNotMatch | The trade ID and the commodity do not match. | The error message returned because the trade ID and the commodity do not match. |