All Products
Search
Document Center

Identity as a Service:ListAuthorizationRules

Last Updated:Jun 10, 2026

Mencantumkan aturan otorisasi.

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

eiam:ListAuthorizationRules

list

*AuthorizationRule

acs:eiam:{#regionId}:{#accountId}:instance/{#InstanceId}/authorizationrule/*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

ID instans.

idaas_ue2jvisn35ea5lmthk267xxxxx

NextToken

string

No

Token yang menunjukkan awal halaman hasil berikutnya.

  • Jika Anda tidak menentukan parameter ini, sistem akan mengembalikan halaman hasil pertama.

NTxxxxxexample

MaxResults

integer

No

Jumlah maksimum entri yang dikembalikan pada setiap halaman.

  • Jika Anda tidak menentukan parameter ini, nilai default adalah 20.

  • Nilai maksimum adalah 100.

20

Filter

array<object>

No

Kondisi filter.

object

No

The filter condition.

Name

string

No

The name of the field to filter. Valid values:

  • AuthorizationRuleId: the ID of the authorization rule.

  • AuthorizationRuleNameStartWith: the leftmost characters of the authorization rule name.

AuthorizationRuleId

Value

array

No

The list of values for the field to filter.

string

No

The value of the field to filter.

arrule_01kf143ug06fg7m9f43u7vahxxxx

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

0441BD79-92F3-53AA-8657-F8CE4A2B912A

TotalCount

integer

The total number of entries in the list.

100

NextToken

string

The token returned by this call. Use it in the next call to retrieve the next page of results.

NTxxxexample

MaxResults

integer

The number of entries per page.

20

AuthorizationRules

array<object>

The list of authorization rules.

object

The authorization rule object.

InstanceId

string

The ID of the instance.

idaas_ue2jvisn35ea5lmthk267xxxxx

AuthorizationRuleId

string

The ID of the authorization rule.

arrule_01kf143ug06fg7m9f43u7vahxxxx

AuthorizationRuleName

string

The name of the authorization rule.

test-name

Status

string

The status of the authorization rule. Valid values:

  • enabled

  • disabled

enabled

ProjectId

string

The ID of the project associated with the authorization rule.

iprj_system_default

AuthorizationResourceScope

string

The scope of resources to authorize. Valid values:

  • global: global resources in the project

  • custom: resources in a specific project

global

AuthorizationRuleCreationType

string

The type of authorization rule creation. Valid values:

  • system_init: created by the system

  • user_custom: created by a user

user_custom

AuthorizationRuleSubjectScope

string

The scope of subjects for the authorization rule. Valid values:

  • shared: applies to all subjects, such as accounts and applications

  • exclusive: applies only to a specific subject

shared

AuthorizationRuleSubjectType

string

The type of subject associated with the authorization rule. This parameter takes effect only when AuthorizationRuleSubjectScope is exclusive. Valid values:

  • application

  • user

user

AuthorizationRuleSubjectId

string

The ID of the subject associated with the authorization rule.

user_d6sbsuumeta4h66ec3il7yxxxx

Description

string

The description of the authorization rule.

this is a test

CreateTime

integer

The time when the authorization rule was created, in Unix timestamp format. Unit: milliseconds.

1652085686179

UpdateTime

integer

The time when the authorization rule was last updated, in Unix timestamp format. Unit: milliseconds.

1652085686179

Contoh

Respons sukses

JSONformat

{
  "RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
  "TotalCount": 100,
  "NextToken": "NTxxxexample",
  "MaxResults": 20,
  "AuthorizationRules": [
    {
      "InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
      "AuthorizationRuleId": "arrule_01kf143ug06fg7m9f43u7vahxxxx",
      "AuthorizationRuleName": "test-name",
      "Status": "enabled",
      "ProjectId": "iprj_system_default",
      "AuthorizationResourceScope": "global",
      "AuthorizationRuleCreationType": "user_custom",
      "AuthorizationRuleSubjectScope": "shared",
      "AuthorizationRuleSubjectType": "user",
      "AuthorizationRuleSubjectId": "user_d6sbsuumeta4h66ec3il7yxxxx",
      "Description": "this is a test",
      "CreateTime": 1652085686179,
      "UpdateTime": 1652085686179
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.