Consulta as informações sobre uma versão de um aplicativo em contêiner. Você pode selecionar uma versão do aplicativo para liberar com base nas informações da versão.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:GetEdgeContainerAppVersion |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| AppId |
string |
Sim |
O ID do aplicativo, que pode ser obtido chamando a operação ListEdgeContainerApps. |
app-88068867578379**** |
| VersionId |
string |
Sim |
O ID da versão, que pode ser obtido chamando a operação ListEdgeContainerAppVersions. |
ver-87962637161651**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
| Version |
object |
As informações sobre a versão. |
|
| LastPublishTime |
string |
A hora em que a versão foi liberada pela última vez. A hora segue o padrão ISO 8601 no formato YYYY-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2023-07-25T04:58:05Z |
| PublishTime |
string |
A hora em que a versão foi liberada. A hora segue o padrão ISO 8601 no formato YYYY-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2022-11-14T02:04:03Z |
| 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 yyyy-MM-ddTHH:mm:ssZ. A hora é exibida em UTC. |
2022-07-01T09:32:33Z |
| AppId |
string |
O ID do aplicativo. |
app-88068867578379**** |
| VersionId |
string |
O ID da versão criada. |
ver-87962637161651**** |
| Name |
string |
O nome da versão. |
test |
| UpdateTime |
string |
A hora em que a versão foi modificada pela última vez. A hora segue o padrão ISO 8601 no formato YYYY-MM-DDThh:mm:ss. A hora é exibida em UTC. |
2021-12-03T10:52:52Z |
| Remarks |
string |
As observações. |
aaa |
| Containers |
array<object> |
As imagens de contêiner implantadas para esta versão. |
|
|
array<object> |
Os detalhes da imagem de contêiner implantada para esta versão. |
||
| EnvVariables |
string |
The environment variables. |
ENV=prod |
| Args |
string |
The arguments that are passed to the container startup command. |
-c /path/config.toml |
| Spec |
string |
The compute specification. |
1C2G |
| Storage |
string |
The storage capacity of the container. Valid values: 0.5G, 10G, 20G, and 30G. |
0.5G, 标识存储空间,取值范围(0.5G | 10G | 20G | 30G) |
| IsACRImage |
boolean |
Indicates whether the image is a Container Registry image. |
false |
| ACRImageInfo |
object |
The information about the Container Registry image. |
|
| Domain |
string |
The domain name of the Container Registry image. |
*.mooc.seewo.com |
| InstanceId |
string |
The ID of the Container Registry instance. |
xcdn-9ak2thl14z5s |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| RepoId |
string |
The ID of the image repository. |
crr-zeu0xyk28alyxozh |
| RepoName |
string |
The name of the image repository. |
test_1 |
| RepoNamespace |
string |
The namespace to which the image repository belongs. |
wpy1 |
| Tag |
string |
The tag value. |
test-healthy-100-soa-1710987653 |
| TagUrl |
string |
The URL of the Container Registry image tag. |
registry-vpc.cn-shenzhen.aliyuncs.com/lihetech/easywits_server_exam:3.40.2 |
| IsEnterpriseRegistry |
boolean |
Indicates whether the image is an enterprise-level image. |
false |
| Image |
string |
The image address. |
nginx:1.14.0 |
| Command |
string |
The command that is used to start the container. |
sh abc.sh 1 2 3 |
| ProbeType |
string |
The probe type. |
httpGet |
| Name |
string |
The version name. |
version01 |
| 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: |
sh poststart.sh "echo hello world" |
| ProbeContent |
object |
The 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. |
20 |
| Command |
string |
The probe command. |
sh test.sh |
| 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. |
5 |
| Path |
string |
The path of the container health check. |
/health_check |
| Port |
integer |
The port of the container health check. Valid values: 1 to 65535. |
80 |
| PeriodSeconds |
integer |
The interval between container health checks. |
5 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"Version": {
"LastPublishTime": "2023-07-25T04:58:05Z",
"PublishTime": "2022-11-14T02:04:03Z",
"Status": "created",
"CreateTime": "2022-07-01T09:32:33Z",
"AppId": "app-88068867578379****",
"VersionId": "ver-87962637161651****",
"Name": "test",
"UpdateTime": "2021-12-03T10:52:52Z",
"Remarks": "aaa",
"Containers": [
{
"EnvVariables": "ENV=prod",
"Args": "-c /path/config.toml",
"Spec": "1C2G",
"Storage": "0.5G, 标识存储空间,取值范围(0.5G | 10G | 20G | 30G)",
"IsACRImage": false,
"ACRImageInfo": {
"Domain": "*.mooc.seewo.com",
"InstanceId": "xcdn-9ak2thl14z5s",
"RegionId": "cn-hangzhou",
"RepoId": "crr-zeu0xyk28alyxozh",
"RepoName": "test_1",
"RepoNamespace": "wpy1",
"Tag": "test-healthy-100-soa-1710987653",
"TagUrl": "registry-vpc.cn-shenzhen.aliyuncs.com/lihetech/easywits_server_exam:3.40.2",
"IsEnterpriseRegistry": false
},
"Image": "nginx:1.14.0",
"Command": "sh abc.sh 1 2 3",
"ProbeType": "httpGet",
"Name": "version01",
"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": 20,
"Command": "sh test.sh",
"FailureThreshold": 3,
"TimeoutSeconds": 5,
"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 | The specified parameter is invalid. | The specified parameter is invalid. |
| 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 | InvalidVersion.NotFound | The version does not exist. | This version number does not exist. |
| 400 | InvalidParameter.VersionId | The specified VersionId is invalid. Please check the VersionId parameter. You may not have entered the parameter or the parameter does not start with ver-string. Please modify it and call the interface again. | The VersionId parameter is invalid. Please check the VersionId parameter. You may not have entered the parameter or the parameter does not start with ver-string. Please modify it and call the interface again. |
| 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.