Creates an access account for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:CreateInstanceAccount |
create |
*Instance
|
None | None |
Request syntax
POST /instances/{instanceId}/accounts HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance. |
rmq-cn-7e22ody**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| 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. |
Response elements
|
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 |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.