All Products
Search
Document Center

Edge Security Acceleration:ListEdgeContainerAppVersions

Last Updated:Jun 11, 2026

Mendaftar versi semua aplikasi terkontainerisasi.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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: nama versi.

  • CreateTime: pengatur waktu pembuatan versi.

  • UpdateTime: pengatur waktu terakhir versi dimodifikasi.

Name

OrderType

string

No

Pesanan pengurutan hasil kueri. Nilai valid:

  • ASC: Pesanan menaik.

  • DESC: Pesanan menurun.

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

  • failed

  • creating

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: {"exec":{"command":\["cat","/etc/group"\]}}.

If you want to cancel this configuration, set the parameter value to "" or {}. If you do not specify this parameter, this configuration is ignored.

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.