Membuat akun akses untuk instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateInstanceAccount |
create |
*Instance
|
None | None |
Sintaks permintaan
POST /instances/{instanceId}/accounts 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 |
| body |
object |
No |
Badan permintaan. |
|
| password |
string |
Yes |
The password of the account. |
xxx |
| username |
string |
Yes |
The name of the account. |
xxx |
| remark |
string |
No |
The remarks on the account. |
This is the remark for test. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| requestId |
string |
The request ID. |
3AE0999C-8DBA-5CEE-8D9A-BE8D4A90DF8D |
| success |
boolean |
Indicates whether the call is successful. |
true |
| data |
boolean |
The returned data. |
true |
| code |
string |
The error code. |
MissingInstanceId |
| message |
string |
The error message. |
The instance cannot be found. |
| 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 of the access denial. This parameter is returned only when the request is denied due to RAM permissions. |
xxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "3AE0999C-8DBA-5CEE-8D9A-BE8D4A90DF8D",
"success": true,
"data": true,
"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.