Chama `DescribeAutoProvisioningGroupHistory` para consultar o histórico de tarefas de agendamento de um grupo de provisionamento automático.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ecs:DescribeAutoProvisioningGroupHistory |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região onde o grupo de provisionamento automático está localizado. |
cn-hangzhou |
| PageNumber |
integer |
Não |
O número da página. As páginas começam a partir da página 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor máximo: 100. Valor padrão: 10. |
5 |
| AutoProvisioningGroupId |
string |
Sim |
O ID do grupo de provisionamento automático. |
apg-bp67acfmxazb4p**** |
| StartTime |
string |
Não |
O início do intervalo de tempo para consultar o histórico de agendamento. O horário segue o padrão ISO 8601 no formato |
2019-04-01T15:10:20Z |
| EndTime |
string |
Não |
O fim do intervalo de tempo para consultar o histórico de agendamento. O horário segue o padrão ISO 8601 no formato |
2019-06-20T15:10:20Z |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageSize |
integer |
O número de entradas por página. |
10 |
| RequestId |
string |
O ID da solicitação. |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
| PageNumber |
integer |
O número da página. |
1 |
| TotalCount |
integer |
O número total de tarefas agendadas. |
10 |
| AutoProvisioningGroupHistories |
object |
Um array de registros do histórico de tarefas agendadas. |
|
| AutoProvisioningGroupHistory |
array<object> |
Um array de registros do histórico de tarefas agendadas. |
|
|
array<object> |
|||
| Status |
string |
The status of a scheduled task. Valid values:
|
success |
| StartTime |
string |
The time when the scheduled task started. |
2019-04-01T15:10:20Z |
| TaskId |
string |
The ID of the scheduled task. |
apg-task-bp67acfmxazb4p**** |
| LastEventTime |
string |
The execution time of the last instance creation activity. |
2019-04-01T15:10:20Z |
| ActivityDetails |
object |
An array of instance creation activities within the scheduled task. |
|
| ActivityDetail |
array<object> |
An array of instance creation activities within the scheduled task. |
|
|
array<object> |
|||
| Status |
string |
The status of an instance creation activity. Valid values:
|
Successful |
| Detail |
string |
A human-readable summary of the activity. |
New ECS instances "i-bp67acfmxazb4p****, i-bp67acfmxazb5p****" created. |
| CreatedInstanceIds |
object |
The IDs of the created instances. |
|
| CreatedInstanceId |
array |
The ID of a created instance. |
|
|
string |
The ID of a created instance. |
i-123xxxyyy |
|
| DestroyedInstanceIds |
object |
The IDs of the released instances. |
|
| DestroyedInstanceId |
array |
The ID of a released instance. |
|
|
string |
The ID of a released instance. |
i-werq2xxdfs |
|
| ErrorMessages |
object |
The error messages returned if the instance creation activity fails. |
|
| ErrorMessage |
array<object> |
The error messages returned if the instance creation activity fails. |
|
|
array<object> |
|||
| Code |
string |
The error code. |
InvalidSecurityGroupId.NotFound |
| Message |
string |
The error message. |
The specified SecurityGroupId "sg-bp1d8modxxxxx" is not found. |
| FailedInstanceIds |
object |
The IDs of the failed instances. |
|
| FailedInstanceId |
array |
The IDs of the failed instances. |
|
|
string |
The ID of a failed instance. |
i-sdf234sdf23 |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 10,
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****",
"PageNumber": 1,
"TotalCount": 10,
"AutoProvisioningGroupHistories": {
"AutoProvisioningGroupHistory": [
{
"Status": "success",
"StartTime": "2019-04-01T15:10:20Z",
"TaskId": "apg-task-bp67acfmxazb4p****",
"LastEventTime": "2019-04-01T15:10:20Z",
"ActivityDetails": {
"ActivityDetail": [
{
"Status": "Successful",
"Detail": "New ECS instances \"i-bp67acfmxazb4p****, i-bp67acfmxazb5p****\" created.",
"CreatedInstanceIds": {
"CreatedInstanceId": [
"i-123xxxyyy"
]
},
"DestroyedInstanceIds": {
"DestroyedInstanceId": [
"i-werq2xxdfs"
]
},
"ErrorMessages": {
"ErrorMessage": [
{
"Code": "InvalidSecurityGroupId.NotFound",
"Message": "The specified SecurityGroupId \"sg-bp1d8modxxxxx\" is not found.",
"FailedInstanceIds": {
"FailedInstanceId": [
"i-sdf234sdf23"
]
}
}
]
}
}
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | Elastic Supply Group Id(AutoProvisioningGroupId) must be filled in. |
| 400 | MissingParamter.RegionId | The regionId should not be null. | The RegionId parameter is required. |
| 400 | InvalidParameter.periodTime | The format of startTime or endTime is invalid. | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | |
| 404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. | The specified elastic supply group does not exist. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.