Queries the price of a configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeConfigurationPrice |
none |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/paas/configurationPrice HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Cpu |
integer |
Yes |
The number of CPU cores required for each instance. Unit: millicores. This value cannot be 0. Only the following defined specifications are supported:
|
2000 |
| Memory |
integer |
Yes |
The amount of memory required for each instance. Unit: MB. This value cannot be 0. The memory size must correspond to the CPU specification. Only the following defined specifications are supported:
|
4096 |
| Workload |
string |
No |
The application scenario. Valid values:
|
Web |
| ResourceType |
string |
No |
The resource type. Valid values: NULL (default), default, and haiguang (Haiguang server). Valid values:
|
default |
| NewSaeVersion |
string |
No |
The application version. Valid values:
Valid values:
|
std |
| BestEffortType |
string |
No |
The BestEffort policy. Valid values:
Valid values:
|
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned information. |
||
| RequestId |
string |
The request ID. |
ADCEC067-86AD-19E2-BD43-E83F3841**** |
| Message |
string |
The returned message.
|
success |
| TraceId |
string |
The trace ID. |
1a0dcc771722848598056771****** |
| Data |
object |
The pricing information. |
|
| BagUsage |
object |
The remaining quota of the resource plan. |
|
| Cpu |
number |
The remaining CPU quota. Unit: core-hours. |
497570.450009 |
| Mem |
number |
The remaining memory quota. Unit: GiB-hours. |
989802.563546 |
| Cu |
number |
The remaining computing units (CUs) of the resource plan. |
10000 |
| Order |
object |
The pricing information. |
|
| OriginalAmount |
number |
The original price of the order. |
0.0092592 |
| DiscountAmount |
number |
The discount amount of the order. |
0.0018518 |
| RuleIds |
array |
The promotion ID. |
|
|
string |
The promotion ID. |
2000010****** |
|
| TradeAmount |
number |
The final price of the order. |
0.0074074 |
| Rules |
array<object> |
The promotion rules. |
|
|
object |
The promotion rule. |
||
| RuleDescId |
integer |
The rule ID. |
2000010****** |
| Name |
string |
The name of the rule. |
后付费8折优惠 |
| RequestPrice |
object |
The price per request. |
|
| Order |
object |
The pricing information. |
|
| OriginalAmount |
number |
The original price of the order. |
0.0046296 |
| DiscountAmount |
number |
The discount amount of the order. |
0.0009259 |
| TradeAmount |
number |
The actual transaction price of the order. |
0.0037037 |
| RuleIds |
array |
The rule ID. |
|
|
string |
The discount rule ID. |
2000010****** |
|
| Rules |
array<object> |
The promotion rules. |
|
|
object |
The promotion rule. |
||
| RuleDescId |
integer |
The policy ID. |
2000010****** |
| Name |
string |
The name of the rule. |
后付费8折优惠 |
| TrafficPrice |
object |
The price of traffic. |
|
| Order |
object |
The pricing information. |
|
| OriginalAmount |
number |
The original price of the order. |
0.0046296 |
| DiscountAmount |
number |
The discount amount of the order. |
0.0009259 |
| TradeAmount |
number |
The actual transaction price of the order. |
0.0037037 |
| RuleIds |
array |
The promotion ID. |
|
|
string |
The promotion ID. |
2000010****** |
|
| Rules |
array<object> |
The promotion rules. |
|
|
object |
The promotion rule. |
||
| RuleDescId |
number |
The rule ID. |
2000010****** |
| Name |
string |
The name of the rule. |
后付费8折优惠 |
| CpuMemPrice |
object |
The price of CPU and memory. |
|
| Order |
object |
The pricing information. |
|
| OriginalAmount |
number |
The original price. |
0.0046296 |
| DiscountAmount |
number |
The discount amount of the order. |
0.0009259 |
| TradeAmount |
number |
The actual transaction price of the order. |
0.0037037 |
| RuleIds |
array |
The rule ID. |
|
|
string |
The rule ID. |
2000010****** |
|
| Rules |
array<object> |
The promotion rules. |
|
|
object |
The promotion rule. |
||
| RuleDescId |
number |
The rule ID. |
2000010****** |
| Name |
string |
The name of the rule. |
后付费8折优惠 |
| ErrorCode |
string |
The error code.
|
空 |
| Code |
string |
The HTTP status code or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the price of the configuration was obtained.
|
true |
Examples
Success response
JSON format
{
"RequestId": "ADCEC067-86AD-19E2-BD43-E83F3841****",
"Message": "success",
"TraceId": "1a0dcc771722848598056771******",
"Data": {
"BagUsage": {
"Cpu": 497570.450009,
"Mem": 989802.563546,
"Cu": 10000
},
"Order": {
"OriginalAmount": 0.0092592,
"DiscountAmount": 0.0018518,
"RuleIds": [
"2000010******"
],
"TradeAmount": 0.0074074
},
"Rules": [
{
"RuleDescId": 0,
"Name": "后付费8折优惠"
}
],
"RequestPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "后付费8折优惠"
}
]
},
"TrafficPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "后付费8折优惠"
}
]
},
"CpuMemPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "后付费8折优惠"
}
]
}
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.