Mendaftar versi semua aplikasi terkontainerisasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListEdgeContainerAppVersions |
none |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi, yang dapat diperoleh dengan memanggil operasi ListEdgeContainerApps. |
app-88068867578379**** |
| PageNumber |
integer |
No |
Nomor halaman. Nilai valid: 1 hingga 65535. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid: 1 hingga 100. |
10 |
| OrderKey |
string |
No |
Bidang pengurutan. Nilai valid:
|
Name |
| OrderType |
string |
No |
Pesanan pengurutan hasil kueri. Nilai valid:
|
Desc |
| SearchType |
string |
No |
Parameter yang digunakan untuk pencarian fuzzy. Nilai valid: VersionId dan Name. |
VersionId |
| SearchKey |
string |
No |
Kata kunci yang digunakan untuk pencarian. |
ver-100568263967926**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F61CDR30-E83C-4FDA-BF73-9A94CDD44229 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries. |
20 |
| Versions |
array<object> |
The versions. |
|
|
array<object> |
The details of the version. |
||
| LastPublishTime |
string |
The time when the version was last released. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC. |
2023-02-10T02:48:36Z |
| PublishTime |
string |
The time when the version was released. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC. |
2023-02-10T02:48:36Z |
| Status |
string |
The status of the current version. Valid values:
|
created |
| CreateTime |
string |
The time when the version was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC. |
2022-11-10T02:53:16Z |
| AppId |
string |
The application ID. |
app-88068867578379**** |
| VersionId |
string |
The version ID. |
ver-87962637161651**** |
| Name |
string |
The version name. |
version01 |
| UpdateTime |
string |
The time when the version was last modified. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC. |
2023-04-16 10:51:00 |
| Remarks |
string |
The remarks. |
test version |
| Containers |
array<object> |
The containers in the version. |
|
|
array<object> |
The container in the version. |
||
| 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 |
Contoh
Respons sukses
JSONformat
{
"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
}
}
]
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.