All Products
Search
Document Center

Platform For AI:ListAclPolicy

Last Updated:Jun 11, 2026

Mengkueri daftar kontrol akses (ACL) yang dibuat untuk gerbang privat.

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

eas:ListAclPolicy

list

*Gateway

acs:eas:{#regionId}:{#accountId}:gateway/{#GatewayId}

None None

Sintaks permintaan

GET /api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

Wilayah tempat gerbang privat berada.

cn-wulanchabu

GatewayId

string

Yes

ID gerbang privat. Untuk mendapatkan ID gerbang privat, lihat parameter private_gateway_id pada parameter tanggapan operasi ListResources.

gw-1uhcqmsc7x22******

Parameter permintaan

Parameter

Type

Required

Description

Example

VpcId

string

No

ID virtual private cloud (VPC). Untuk informasi lebih lanjut tentang cara mendapatkan ID VPC, lihat DescribeVpcs.

vpc-uf66uio7md****

Elemen respons

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

40325405-579C-4D82****

GatewayId

string

The private gateway ID.

gw-1uhcqmsc7x22******

InternetAclPolicyList

array<object>

The access control policies of the private gateway over the Internet.

array<object>

The access control policy of the private gateway over the Internet.

AclPolicyList

array<object>

The whitelisted IP CIDR blocks in the VPC that can access the private gateway over the Internet.

object

The information about the IP CIDR block in the VPC that can access the private gateway over the Internet.

Entry

string

The IP CIDR block in the VPC that can access the private gateway over the Internet.

0.0.0.0/0

Comment

string

The comment on the IP CIDR block in the VPC that can access the private gateway over the Internet.

default

IntranetVpcAclPolicyList

array<object>

The access control policies of the private gateway over the internal network.

array<object>

The access control policy of the private gateway over the internal network.

VpcId

string

The VPC ID. For more information about how to obtain the VPC ID, see DescribeVpcs.

vpc-uf66uio7md****

AclPolicyList

array<object>

The whitelisted IP CIDR blocks in the VPC that can access the private gateway over the internal network.

object

The information about the IP CIDR block in the VPC that can access the private gateway over the internal network.

Entry

string

The IP CIDR block in the VPC that can access the private gateway over the internal network.

0.0.0.0/0

Comment

string

The comment on the IP CIDR block in the VPC that can access the private gateway over the internal network.

default

Contoh

Respons sukses

JSONformat

{
  "RequestId": "40325405-579C-4D82****",
  "GatewayId": "gw-1uhcqmsc7x22******",
  "InternetAclPolicyList": [
    {
      "AclPolicyList": [
        {
          "Entry": "0.0.0.0/0",
          "Comment": "default"
        }
      ]
    }
  ],
  "IntranetVpcAclPolicyList": [
    {
      "VpcId": "vpc-uf66uio7md****",
      "AclPolicyList": [
        {
          "Entry": "0.0.0.0/0\n",
          "Comment": "default"
        }
      ]
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.