An ApsaraMQ for RabbitMQ instance is named after its instance ID by default. You can change the name for easier identification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:UpdateInstance |
update |
*Instance
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-zvp2ajsj**** |
| InstanceName |
string |
Yes |
The new name of the instance. The name can be any string of up to 64 characters. |
amqp_test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The status code. |
200 |
| Message |
string |
The error message returned if the request fails. |
InstanceNotExist |
| Data |
string |
The response data. |
true |
| RequestId |
string |
The request ID. |
6DC68EC9-0E76-5435-B8C0-FF9492B4**** |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "InstanceNotExist",
"Data": "true",
"RequestId": "6DC68EC9-0E76-5435-B8C0-FF9492B4****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | The request processing has failed due to some unknown error. |
| 404 | InstanceNotExist | The instance resource does not exist. | The instance resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.