Lista ordens de implantação em um namespace.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
sae:ListNamespaceChangeOrders |
get |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v1/sam/changeorder/listNamespaceChangeOrders HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| NamespaceId |
string |
Sim |
O ID do namespace. |
cn-shanghai:test |
| CoStatus |
string |
Não |
O status da ordem de alteração. Valores válidos:
|
2 |
| CoType |
string |
Não |
O tipo da ordem de alteração. Valores válidos:
|
CoBatchStartApplication |
| Key |
string |
Não |
Uma palavra-chave para busca aproximada nas descrições das ordens de alteração. São retornadas as ordens de alteração cujas descrições contêm esta key. |
test |
| CurrentPage |
integer |
Não |
A página atual. |
1 |
| PageSize |
integer |
Não |
O tamanho da página. |
20 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
0bc3915638507554994370d**** |
| ErrorCode |
string |
O código de erro.
|
|
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| Code |
string |
O código de status HTTP ou código de erro POP.
|
200 |
| Message |
string |
A mensagem de resposta. |
success |
| TraceId |
string |
O ID de rastreamento, usado para consultar os detalhes da solicitação. |
0bc3915638507554994370d**** |
| Data |
object |
Os resultados retornados. |
|
| CurrentPage |
integer |
O número da página atual. |
1 |
| PageSize |
integer |
O número de entradas por página. |
20 |
| TotalSize |
integer |
O número total de ordens de alteração. |
32 |
| ChangeOrderList |
array<object> |
A lista de ordens de alteração. |
|
|
object |
Uma ordem de alteração. |
||
| Status |
integer |
The status of the change order. Valid values:
|
2 |
| FinishTime |
string |
The completion time of the change order. |
2019-07-11 20:12:58 |
| NamespaceId |
string |
The namespace ID. |
cn-shanghai:test |
| CreateTime |
string |
The creation time of the change order. |
2019-07-11 15:54:49 |
| UserId |
string |
The user ID. |
test_sae |
| Source |
string |
The initiation source for the change order. |
console |
| CreateUserId |
string |
The ID of the user who created the change order. |
test@aliyun.com |
| BatchCount |
integer |
The batch count. |
1 |
| CoTypeCode |
string |
The type code of the change order. Valid values:
|
CoBatchStartApplication |
| ChangeOrderId |
string |
The change order ID. |
7fa5c0-9ebb-4bb4-b383-1f885447**** |
| BatchType |
string |
The batch type. |
Automatic |
| Description |
string |
The description of the change order. |
Batch Start Applications |
| GroupId |
string |
The group ID. |
c9ecd2-cf6c-46c3-9f20-525de202**** |
| CoType |
string |
The type of the change order, which corresponds to the |
msg.docker.app.actions.CoBatchStartApplication |
| Pipelines |
string |
The pipeline. |
xxxx |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "0bc3915638507554994370d****",
"ErrorCode": "",
"Success": true,
"Code": "200",
"Message": "success",
"TraceId": "0bc3915638507554994370d****",
"Data": {
"CurrentPage": 1,
"PageSize": 20,
"TotalSize": 32,
"ChangeOrderList": [
{
"Status": 2,
"FinishTime": "2019-07-11 20:12:58",
"NamespaceId": "cn-shanghai:test",
"CreateTime": "2019-07-11 15:54:49",
"UserId": "test_sae",
"Source": "console",
"CreateUserId": "test@aliyun.com",
"BatchCount": 1,
"CoTypeCode": "CoBatchStartApplication",
"ChangeOrderId": "7fa5c0-9ebb-4bb4-b383-1f885447****",
"BatchType": "Automatic",
"Description": "Batch Start Applications",
"GroupId": "c9ecd2-cf6c-46c3-9f20-525de202****",
"CoType": "msg.docker.app.actions.CoBatchStartApplication",
"Pipelines": "xxxx"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Resouce.no.permission | You are not authorized to operate on the specified resources. | You are not authorized to operate on the specified resources. |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.