Lista as versões de todas as aplicações em contêiner.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:ListEdgeContainerAppVersions |
none |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| AppId |
string |
Sim |
O ID da aplicação, que pode ser obtido chamando a operação ListEdgeContainerApps. |
app-88068867578379**** |
| PageNumber |
integer |
Não |
O número da página. Valores válidos: 1 a 65535. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valores válidos: 1 a 100. |
10 |
| OrderKey |
string |
Não |
O campo de ordenação. Valores válidos:
|
Name |
| OrderType |
string |
Não |
A ordem na qual você deseja classificar os resultados da consulta. Valores válidos:
|
Desc |
| SearchType |
string |
Não |
O parâmetro usado para pesquisa aproximada. Valores válidos: VersionId e Name. |
VersionId |
| SearchKey |
string |
Não |
A palavra-chave usada para a pesquisa. |
ver-100568263967926**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
F61CDR30-E83C-4FDA-BF73-9A94CDD44229 |
| PageNumber |
integer |
O número da página. |
1 |
| PageSize |
integer |
O número de entradas por página. |
10 |
| TotalCount |
integer |
O número total de entradas. |
20 |
| Versions |
array<object> |
As versões. |
|
|
array<object> |
Os detalhes da versão. |
||
| LastPublishTime |
string |
A hora em que a versão foi lançada pela última vez. A hora segue o padrão ISO 8601 no formato AAAA-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2023-02-10T02:48:36Z |
| PublishTime |
string |
A hora em que a versão foi lançada. A hora segue o padrão ISO 8601 no formato AAAA-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2023-02-10T02:48:36Z |
| Status |
string |
O status da versão atual. Valores válidos:
|
created |
| CreateTime |
string |
A hora em que a versão foi criada. A hora segue o padrão ISO 8601 no formato AAAA-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2022-11-10T02:53:16Z |
| AppId |
string |
O ID da aplicação. |
app-88068867578379**** |
| VersionId |
string |
O ID da versão. |
ver-87962637161651**** |
| Name |
string |
O nome da versão. |
version01 |
| UpdateTime |
string |
A hora em que a versão foi modificada pela última vez. A hora segue o padrão ISO 8601 no formato AAAA-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2023-04-16 10:51:00 |
| Remarks |
string |
As observações. |
test version |
| Containers |
array<object> |
Os contêineres na versão. |
|
|
array<object> |
O contêiner na versão. |
||
| EnvVariables |
string |
The environment variables of the container. |
ENV=prod |
| Args |
string |
The arguments that are passed to the container startup command. |
-c a=1 |
| Spec |
string |
The compute specification of the container. |
1C2G |
| Image |
string |
The address of the container image. |
nginx |
| Command |
string |
The command that is used to start the container. |
openresty -g \"daemon off;\" |
| ProbeType |
string |
The probe type of the container. |
httpGet |
| Name |
string |
The container name. |
container1 |
| PreStop |
string |
The command that is run before the container is stopped. |
sh prestop.sh "echo hello world" |
| PostStart |
string |
The command that is run before the container is started. Format: If you want to cancel this configuration, set the parameter value to |
sh poststart.sh "echo hello world" |
| ProbeContent |
object |
The container probe content. |
|
| SuccessThreshold |
integer |
The number of consecutive successful health checks required for a container to be considered as healthy. |
1 |
| Host |
string |
The domain name that is used for health checks. |
test.com |
| HttpHeaders |
string |
The request headers that are included in the container health check request. |
{\"Content-Type\":\"application/json\"} |
| Scheme |
string |
The protocol that the container health check request uses. |
http |
| InitialDelaySeconds |
integer |
The latency for container probe initialization. |
10 |
| Command |
string |
The probe command. |
openresty -g "daemon off; |
| FailureThreshold |
integer |
The number of consecutive failed health checks required for a container to be considered as unhealthy. |
3 |
| TimeoutSeconds |
integer |
The timeout period of the container health check. |
30 |
| Path |
string |
The path of the container health check. |
/health_check |
| Port |
integer |
The port of the container health check. |
80 |
| PeriodSeconds |
integer |
The interval between container health checks. |
5 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "F61CDR30-E83C-4FDA-BF73-9A94CDD44229",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 20,
"Versions": [
{
"LastPublishTime": "2023-02-10T02:48:36Z\n",
"PublishTime": "2023-02-10T02:48:36Z",
"Status": "created",
"CreateTime": "2022-11-10T02:53:16Z",
"AppId": "app-88068867578379****",
"VersionId": "ver-87962637161651****",
"Name": "version01",
"UpdateTime": "2023-04-16 10:51:00",
"Remarks": "test version",
"Containers": [
{
"EnvVariables": "ENV=prod",
"Args": "-c a=1",
"Spec": "1C2G",
"Image": "nginx",
"Command": "openresty -g \\\"daemon off;\\\"",
"ProbeType": "httpGet",
"Name": "container1",
"PreStop": "sh prestop.sh \"echo hello world\" ",
"PostStart": "sh poststart.sh \"echo hello world\" ",
"ProbeContent": {
"SuccessThreshold": 1,
"Host": "test.com",
"HttpHeaders": "{\\\"Content-Type\\\":\\\"application/json\\\"}",
"Scheme": "http",
"InitialDelaySeconds": 10,
"Command": "openresty -g \"daemon off;",
"FailureThreshold": 3,
"TimeoutSeconds": 30,
"Path": "/health_check",
"Port": 80,
"PeriodSeconds": 5
}
}
]
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter.OrderType | The specified OrderType is invalid. Please check the OrderType parameter. You may not have set it to either Asc or Desc. Please make the necessary changes and call the interface again. | The OrderType parameter is invalid. Please check the OrderType parameter. You may not have set it to Asc or Desc. Please modify it and call the interface again. |
| 400 | InvalidParameter.OrderKey | The specified OrderKey is invalid. Please check the OrderKey parameter. | The OrderKey parameter is invalid. Please check the OrderKey parameter, as it cannot be assigned illegal characters such as @, #, % etc. Please make the necessary modifications and call the interface again. |
| 400 | InvalidParameter | Invalid parameter. Check the parameter configuration. | Invalid parameter. Check the parameter configuration. |
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. |
| 400 | InvalidPageSize.ValueNotSupported | The PageSize value is invalid. The default value is set to 20. The acceptable range is between 1 and 500. | The request PageSize value is invalid. The default value is 20 and the value range is 1-500. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | The application does not exist. Check whether the application ID you specified is correct and try again. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.