Consulta o preço de uma configuração.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
sae:DescribeConfigurationPrice |
none |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v1/paas/configurationPrice HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Cpu |
integer |
Sim |
O número de núcleos de CPU necessários para cada instância. Unidade: milicores. Este valor não pode ser 0. Apenas as seguintes especificações definidas são suportadas:
|
2000 |
| Memory |
integer |
Sim |
A quantidade de memória necessária para cada instância. Unidade: MB. Este valor não pode ser 0. O tamanho da memória deve corresponder à especificação da CPU. Apenas as seguintes especificações definidas são suportadas:
|
4096 |
| Workload |
string |
Não |
O cenário de aplicação. Valores válidos:
|
Web |
| ResourceType |
string |
Não |
O tipo de recurso. Valores válidos: NULL (padrão), default e haiguang (servidor Haiguang). Valores válidos:
|
default |
| NewSaeVersion |
string |
Não |
A versão da aplicação. Valores válidos:
Valores válidos:
|
std |
| BestEffortType |
string |
Não |
A política BestEffort. Valores válidos:
Valores válidos:
|
default |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
As informações retornadas. |
||
| RequestId |
string |
O ID da solicitação. |
ADCEC067-86AD-19E2-BD43-E83F3841**** |
| Message |
string |
A mensagem retornada.
|
success |
| TraceId |
string |
O ID de rastreamento. |
1a0dcc771722848598056771****** |
| Data |
object |
As informações de preços. |
|
| BagUsage |
object |
A cota restante do plano de recursos. |
|
| 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 |
As informações de preços. |
|
| 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> |
As regras de promoção. |
|
|
object |
A regra de promoção. |
||
| RuleDescId |
integer |
The rule ID. |
2000010****** |
| Name |
string |
The name of the rule. |
20% discount on pay-as-you-go |
| RequestPrice |
object |
O preço por solicitação. |
|
| 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. |
20% discount on pay-as-you-go |
| TrafficPrice |
object |
O preço do tráfego. |
|
| 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. |
20% discount on pay-as-you-go |
| CpuMemPrice |
object |
O preço da CPU e da memória. |
|
| 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. |
20% discount on pay-as-you-go |
| ErrorCode |
string |
O código de erro.
|
|
| Code |
string |
O código de status HTTP ou código de erro POP. Valores válidos:
|
200 |
| Success |
boolean |
Indica se o preço da configuração foi obtido.
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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": "20% discount on pay-as-you-go"
}
],
"RequestPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "20% discount on pay-as-you-go"
}
]
},
"TrafficPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "20% discount on pay-as-you-go"
}
]
},
"CpuMemPrice": {
"Order": {
"OriginalAmount": 0.0046296,
"DiscountAmount": 0.0009259,
"TradeAmount": 0.0037037,
"RuleIds": [
"2000010******"
]
},
"Rules": [
{
"RuleDescId": 0,
"Name": "20% discount on pay-as-you-go"
}
]
}
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.