You can call the OnsInstanceUpdate operation to update the name and description of an instance.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:UpdateInstance |
*Instance
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Remark |
string |
No |
The updated description of the instance. If you leave this parameter empty, the description is not updated. |
备注更新 |
| InstanceName |
string |
No |
The updated name of the instance. The name must meet the following requirements:
|
名字更新 |
| InstanceId |
string |
Yes |
The ID of the instance whose name or description you want to update. |
MQ_INST_188077086902****_BXSuW61e |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This ID is unique to each request. Use this ID to locate and troubleshoot issues. |
A07E3902-B92E-44A6-B6C5-6AA111111**** |
Examples
Success response
JSON format
{
"RequestId": "A07E3902-B92E-44A6-B6C5-6AA111111****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.