Mengkueri daftar kontrol akses (ACL) dari sebuah instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:ListInstanceAcl |
list |
*Instance
|
None | None |
Sintaks permintaan
GET /instances/{instanceId}/acl HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-7e22ody**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| pageNumber |
integer |
No |
Nomor halaman. Halaman dimulai dari halaman 1. |
1 |
| pageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
| filter |
string |
No |
Kondisi yang Anda tentukan untuk memfilter ACL. Jika Anda tidak menentukan parameter ini, semua ACL akan dikueri. |
CID-TEST |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil. |
||
| requestId |
string |
ID permintaan. |
DA4D2F89-E2C8-5F04-936B-60D55B055FA7 |
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| data |
object |
Data yang dikembalikan. |
|
| pageNumber |
integer |
Nomor halaman. |
1 |
| pageSize |
integer |
Jumlah entri per halaman. |
10 |
| totalCount |
integer |
Jumlah total entri yang dikembalikan. |
24 |
| list |
array<object> |
Informasi paginasi. |
|
|
object |
ACL. |
||
| regionId |
string |
The region ID. |
cn-hangzhou |
| instanceId |
string |
The instance ID. |
rmq-cn-7e22ody**** |
| aclType |
string |
The ACL type. Valid value:
Valid values:
|
APACHE |
| username |
string |
The username. |
test |
| resourceType |
string |
The resource type. Valid values:
Valid values:
|
Topic |
| resourceName |
string |
The resource name. |
test |
| decision |
string |
The decision result. Valid values:
Valid values:
|
Allow |
| actions |
array |
The types of the operations that are allowed by the ACL. |
|
|
string |
The type of the operation that is allowed by the ACL. Valid values:
Valid values:
|
Pub |
|
| ipWhitelists |
array |
The IP address whitelists. |
|
|
string |
The IP address whitelist. |
0.0.0.0/0 |
|
| code |
string |
Kode kesalahan. |
MissingInstanceId |
| message |
string |
Pesan kesalahan. |
The instance cannot be found. |
| httpStatusCode |
integer |
Kode status HTTP. |
200 |
| dynamicCode |
string |
Kode kesalahan dinamis. |
InstanceId |
| dynamicMessage |
string |
Pesan kesalahan dinamis. |
InstanceId |
| accessDeniedDetail |
string |
Rincian tentang penolakan akses. Parameter ini hanya dikembalikan jika akses ditolak karena pengguna Resource Access Management (RAM) tidak memiliki izin yang diperlukan. |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "DA4D2F89-E2C8-5F04-936B-60D55B055FA7",
"success": true,
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalCount": 24,
"list": [
{
"regionId": "cn-hangzhou",
"instanceId": "rmq-cn-7e22ody****",
"aclType": "APACHE",
"username": "test",
"resourceType": "Topic",
"resourceName": "test",
"decision": "Allow",
"actions": [
"Pub"
],
"ipWhitelists": [
"0.0.0.0/0"
]
}
]
},
"code": "MissingInstanceId",
"message": "The instance cannot be found.",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "InstanceId",
"accessDeniedDetail": "xxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.