All Products
Search
Document Center

Edge Security Acceleration:GetEdgeContainerAppVersion

Last Updated:Mar 21, 2026

Mengambil informasi versi aplikasi terkontainerisasi. Anda dapat memilih versi aplikasi yang akan dirilis berdasarkan informasi tersebut.

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:GetEdgeContainerAppVersion

get

*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****

VersionId

string

Yes

ID versi, yang dapat diperoleh dengan memanggil operasi ListEdgeContainerAppVersions.

ver-87962637161651****

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

04F0F334-1335-436C-A1D7-6C044FE73368

Version

object

Informasi tentang versi.

LastPublishTime

string

Waktu saat versi terakhir dirilis. Waktu mengikuti standar ISO 8601 dalam format YYYY-MM-DDThh:mm:ss. Waktu ditampilkan dalam UTC.

2023-07-25T04:58:05Z

PublishTime

string

Waktu saat versi dirilis. Waktu mengikuti standar ISO 8601 dalam format YYYY-MM-DDThh:mm:ss. Waktu ditampilkan dalam UTC.

2022-11-14T02:04:03Z

Status

string

Status versi saat ini. Nilai yang valid:

  • created: Versi telah dibuat.

  • failed: Pembuatan versi gagal.

  • creating: Versi sedang dibuat.

created

CreateTime

string

Waktu saat versi dibuat. Waktu mengikuti standar ISO 8601 dalam format yyyy-MM-ddTHH:mm:ssZ. Waktu ditampilkan dalam UTC.

2022-07-01T09:32:33Z

AppId

string

ID aplikasi.

app-88068867578379****

VersionId

string

ID versi yang dibuat.

ver-87962637161651****

Name

string

Nama versi.

test

UpdateTime

string

Waktu saat versi terakhir dimodifikasi. Waktu mengikuti standar ISO 8601 dalam format YYYY-MM-DDThh:mm:ss. Waktu ditampilkan dalam UTC.

2021-12-03T10:52:52Z

Remarks

string

Keterangan.

aaa

Containers

array<object>

Gambar kontainer yang diterapkan untuk versi ini.

array<object>

Detail gambar kontainer yang diterapkan untuk versi ini.

EnvVariables

string

Variabel lingkungan.

ENV=prod

Args

string

Argumen yang diteruskan ke perintah startup kontainer.

-c /path/config.toml

Spec

string

Spesifikasi komputasi.

1C2G

Storage

string

Kapasitas penyimpanan kontainer. Nilai yang valid: 0.5G, 10G, 20G, dan 30G.

0.5G, 标识存储空间,取值范围(0.5G | 10G | 20G | 30G)

IsACRImage

boolean

Menunjukkan apakah gambar tersebut merupakan gambar Container Registry.

false

ACRImageInfo

object

Informasi tentang gambar Container Registry.

Domain

string

Nama domain gambar Container Registry.

*.mooc.seewo.com

InstanceId

string

ID instans Container Registry.

xcdn-9ak2thl14z5s

RegionId

string

ID wilayah.

cn-hangzhou

RepoId

string

ID repository image.

crr-zeu0xyk28alyxozh

RepoName

string

Nama repository image.

test_1

RepoNamespace

string

Namespace tempat repository image berada.

wpy1

Tag

string

Nilai tag.

test-healthy-100-soa-1710987653

TagUrl

string

URL tag gambar Container Registry.

registry-vpc.cn-shenzhen.aliyuncs.com/lihetech/easywits_server_exam:3.40.2

IsEnterpriseRegistry

boolean

Menunjukkan apakah gambar tersebut merupakan gambar tingkat enterprise.

false

Image

string

Alamat gambar.

nginx:1.14.0

Command

string

Perintah yang digunakan untuk menjalankan kontainer.

sh abc.sh 1 2 3

ProbeType

string

Jenis probe.

httpGet

Name

string

Nama versi.

version01

PreStop

string

Perintah yang dijalankan sebelum kontainer dihentikan.

sh prestop.sh "echo hello world"

PostStart

string

Perintah yang dijalankan sebelum kontainer dimulai. Format: {"exec":{"command":\["cat","/etc/group"\]}}. Jika ingin membatalkan konfigurasi ini, atur nilai parameter menjadi "" atau {}. Jika parameter ini tidak ditentukan, konfigurasi ini akan diabaikan.

sh poststart.sh "echo hello world"

ProbeContent

object

Konten probe.

SuccessThreshold

integer

Jumlah pemeriksaan kesehatan berturut-turut yang berhasil yang diperlukan agar kontainer dianggap sehat.

1

Host

string

Nama domain yang digunakan untuk pemeriksaan kesehatan.

test.com

HttpHeaders

string

Header permintaan yang disertakan dalam permintaan pemeriksaan kesehatan kontainer.

[{\"Content-Type\":\"application/json

Scheme

string

Protokol yang digunakan oleh permintaan pemeriksaan kesehatan kontainer.

http

InitialDelaySeconds

integer

Latensi untuk inisialisasi probe kontainer.

20

Command

string

Perintah probe.

sh test.sh

FailureThreshold

integer

Jumlah pemeriksaan kesehatan berturut-turut yang gagal yang diperlukan agar kontainer dianggap tidak sehat.

3

TimeoutSeconds

integer

Periode timeout dari pemeriksaan kesehatan kontainer.

5

Path

string

Jalur pemeriksaan kesehatan kontainer.

/health_check

Port

integer

Port pemeriksaan kesehatan kontainer. Nilai yang valid: 1 hingga 65535.

80

PeriodSeconds

integer

Interval antara pemeriksaan kesehatan kontainer.

5

Contoh

Respons sukses

JSONformat

{
  "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
        }
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.