Membuat daftar kontrol akses (ACL) di instans tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateInstanceAcl |
create |
*Instance
|
None | None |
Sintaks permintaan
POST /instances/{instanceId}/acl/account/{username} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
ID instans. |
rmq-cn-7e22ody**** |
| username |
string |
Yes |
Nama pengguna akun. |
abc |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| resourceType |
string |
Yes |
The type of the resource on which you want to grant permissions. Valid values:
Valid values:
|
Topic |
| resourceName |
string |
Yes |
The name of the resource on which you want to grant permissions. |
test |
| decision |
string |
Yes |
The decision result of the authorization. Valid values:
Valid values:
|
Allow |
| actions |
array |
Yes |
The type of operations that can be performed on the resource. The following types of operations are supported based on the resource type:
Valid values:
Valid values:
|
Pub |
|
string |
No |
The type of operations that can be performed on the resource. The following types of operations are supported based on the resource type:
|
Pub |
|
| ipWhitelists |
array |
No |
The IP addresses in the whitelist. |
|
|
string |
No |
The IP address in the whitelist. IP addresses and CIDR blocks are supported. |
0.0.0.0/0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The result. |
||
| requestId |
string |
The request ID. |
C7E8AE3A-219B-52EE-BE32-4036F5F88833 |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
boolean |
The returned data. |
true |
| code |
string |
The error code. |
MissingInstanceId |
| message |
string |
The error message. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
The HTTP status code. |
200 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
| accessDeniedDetail |
string |
The details about the access denial. This parameter is returned only if the access is denied because the Resource Access Management (RAM) user does not have the required permissions. |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "C7E8AE3A-219B-52EE-BE32-4036F5F88833",
"success": true,
"data": true,
"code": "MissingInstanceId",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 200,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId",
"accessDeniedDetail": "xxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.