Consulta as regras de escalonamento.
Experimente agora
Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
edas:ReadApplication |
get |
*Application
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v5/app/scalingRules HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| AppId |
string |
Sim |
O ID da aplicação. |
33e39be9-3e5f-********* |
| GroupId |
string |
Sim |
O ID do grupo de instâncias no qual a aplicação está implantada. |
d8bb9d60-9************** |
| Mode |
string |
Não |
O tipo da regra de escalonamento. Você pode deixar este parâmetro vazio. Valores válidos:
|
SCALE_IN |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O conteúdo retornado. |
||
| Code |
integer |
O código de status HTTP retornado. |
200 |
| Message |
string |
A mensagem retornada. |
success |
| UpdateTime |
integer |
A hora da última atualização da regra de escalonamento. Este valor é um carimbo de data/hora UNIX que representa o número de milissegundos decorridos desde 1 de janeiro de 1970, 00:00:00 UTC. |
1574251601785 |
| RequestId |
string |
O ID da solicitação. |
D16979DC-4D42-*********** |
| Data |
object |
Os dados retornados. |
|
| OversoldFactor |
integer |
A taxa de overcommit suportada por um cluster Docker. Valores válidos:
|
1 |
| VpcId |
string |
O ID da nuvem privada virtual (VPC). |
vpc-wz9b246z****** |
| UpdateTime |
integer |
A hora da última atualização da regra de escalonamento. Este valor é um carimbo de data/hora UNIX que representa o número de milissegundos decorridos desde 1 de janeiro de 1970, 00:00:00 UTC. |
1574251601785 |
| ClusterType |
integer |
O tipo do cluster. Valores válidos:
|
2 |
| RuleList |
object |
||
| Rule |
array<object> |
The array data of the scaling rule. |
|
|
object |
The object data of the scaling rule. |
||
| VpcId |
string |
The ID of the VPC. |
vpc-wz9b246z****** |
| UpdateTime |
integer |
The time when the scaling rule was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601785 |
| CreateTime |
integer |
The time when the scaling rule was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601801 |
| Rt |
integer |
The service latency that triggers the scaling rule. Unit: milliseconds. |
1 |
| SpecId |
string |
The ID of the specification. |
03f493c0-xxxx-xxxx-xxxx-12e85cadeb41 |
| MultiAzPolicy |
string |
The policy of auto scaling across multiple zones. Valid values:
|
PRIORITY |
| ResourceFrom |
string |
The source of the instance that you want to add during a scale-out. Valid values:
|
AVAILABLE |
| Mode |
string |
The type of the scaling rule. Valid values:
|
SCALE_OUT |
| LoadNum |
integer |
The system load that triggers the scaling rule. The system load is evaluated based on the number of processes that are being executed by CPUs and the number of processes that wait to be executed by CPUs. |
1 |
| TemplateVersion |
integer |
The version of the launch template. |
1143542 |
| Step |
integer |
The number of instances that are added during each scale-out or removed during each scale-in. |
1 |
| Cond |
string |
The relationship among the conditions that trigger the scaling rule.
|
OR |
| Cpu |
integer |
The minimum CPU utilization that triggers the scaling rule. |
1 |
| GroupId |
string |
The ID of the instance group to which the application is deployed. |
d8bb9d60-91b5-4cdf-****-************ |
| InstNum |
integer |
The maximum number of instances in the group when a scale-out is performed, or the minimum number of instances in the group when a scale-in is performed. |
2 |
| AppId |
string |
The ID of the application. |
33e39be9-3e5f-********* |
| Duration |
integer |
The duration of the scaling rule. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1574251601 |
| VSwitchIds |
string |
The IDs of the vSwitches. The IDs of multiple vSwitches are separated by commas (,). |
vsw-mxxxxkxxxx4xxxxwbionj |
| MetricType |
string |
The type of the metric. |
HSF |
| TemplateId |
string |
The ID of the launch template. |
lt-bp1xxxxn73pxxxxf83l |
| Enable |
boolean |
Indicates whether scale-ins or scale-outs are allowed. Valid values:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"Code": 200,
"Message": "success",
"UpdateTime": 1574251601785,
"RequestId": "D16979DC-4D42-***********",
"Data": {
"OversoldFactor": 1,
"VpcId": "vpc-wz9b246z******",
"UpdateTime": 1574251601785,
"ClusterType": 2,
"RuleList": {
"Rule": [
{
"VpcId": "vpc-wz9b246z******",
"UpdateTime": 1574251601785,
"CreateTime": 1574251601801,
"Rt": 1,
"SpecId": "03f493c0-xxxx-xxxx-xxxx-12e85cadeb41",
"MultiAzPolicy": "PRIORITY",
"ResourceFrom": "AVAILABLE",
"Mode": "SCALE_OUT",
"LoadNum": 1,
"TemplateVersion": 1143542,
"Step": 1,
"Cond": "OR",
"Cpu": 1,
"GroupId": "d8bb9d60-91b5-4cdf-****-************",
"InstNum": 2,
"AppId": "33e39be9-3e5f-*********",
"Duration": 1574251601,
"VSwitchIds": "vsw-mxxxxkxxxx4xxxxwbionj",
"MetricType": "HSF",
"TemplateId": "lt-bp1xxxxn73pxxxxf83l",
"Enable": true
}
]
}
}
}
Códigos de erro
Consulte Códigos de ErroCódigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de VersãoNotas de Versão para uma lista completa.