All Products
Search
Document Center

Global Accelerator:GetAcl

Last Updated:Jun 10, 2026

Mengkueri daftar kontrol akses (ACL).

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

ga:GetAcl

get

*Acl

acs:ga:{#regionId}:{#accountId}:acl/{#aclId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Operasi yang ingin Anda lakukan. Atur nilainya ke GetAcl.

cn-hangzhou

AclId

string

Yes

ID wilayah tempat instans Akselerator Global (GA) di-deploy. Atur nilainya ke ap-southeast-1.

nacl-hp34s2h0xx1ht4nwo****

Elemen respons

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The ID of the network ACL.

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

AclId

string

The ID of the request.

nacl-hp34s2h0xx1ht4nwo****

AddressIPVersion

string

The ID of the network ACL.

IPv4

AclStatus

string

The IP version of the network ACL. Valid values:

  • IPv4

  • IPv6

active

AclEntries

array<object>

The entries of the ACL.

object

The list of network ACL entries that are returned. A maximum of 20 network ACL entries can be returned.

Entry

string

An IP address entry (192.168.XX.XX) or a CIDR block entry (10.0.XX.XX/24).

10.0.XX.XX/24

EntryDescription

string

The description of the ACL entry.

test-entry

RelatedListeners

array<object>

The listeners that are associated with the ACL.

object

The listeners that are associated with the network ACL.

ListenerId

string

The ID of the listener.

lsr-bp1bpn0kn908w4nbw****

AclType

string

The type of the ACL. Valid values:

  • white: Only requests from the IP addresses or CIDR blocks in the ACL are forwarded. Whitelists are suitable for scenarios in which you want to allow access from specific IP addresses to an application. If a whitelist is improperly configured, risks may arise. After a whitelist is configured for a listener, only requests from the IP addresses that are added to the whitelist are distributed by the listener. If a whitelist is enabled but no IP address is added to the whitelist, the listener forwards all requests.

  • black: All requests from the IP addresses or CIDR blocks in the ACL are rejected. Blacklists are suitable for scenarios in which you want to deny access from specific IP addresses to an application. If a blacklist is enabled but no IP address is added to the blacklist, the listener forwards all requests.

White

AcceleratorId

string

The ID of the GA instance.

ga-bp1odcab8tmno0hdq****

AclName

string

The ID of the GA instance.

test-acl

ResourceGroupId

string

The name of the network ACL.

rg-acfmx7itmygzsza

Tags

array<object>

The tag of the ACL.

object

The tag value.

Key

string

The key of tag N that is add to the ACL.

tag-key

Value

string

The value of tag N that is add to the ACL.

tag-value

Contoh

Respons sukses

JSONformat

{
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
  "AclId": "nacl-hp34s2h0xx1ht4nwo****",
  "AddressIPVersion": "IPv4",
  "AclStatus": "active",
  "AclEntries": [
    {
      "Entry": "10.0.XX.XX/24",
      "EntryDescription": "test-entry"
    }
  ],
  "RelatedListeners": [
    {
      "ListenerId": "lsr-bp1bpn0kn908w4nbw****",
      "AclType": "white",
      "AcceleratorId": "ga-bp1odcab8tmno0hdq****"
    }
  ],
  "AclName": "test-acl",
  "ResourceGroupId": "rg-acfmx7itmygzsza",
  "Tags": [
    {
      "Key": "tag-key",
      "Value": "tag-value"
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.