Updating the basic information and specifications of a Message Queue for Apache RocketMQ instance.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:UpdateInstance |
update |
*Instance
|
None | None |
Request syntax
PATCH /instances/{instanceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance to update. |
rmq-cn-7e22ody**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| instanceName |
string |
No |
The updated instance name. |
test_instance |
| remark |
string |
No |
The updated remark for the instance. |
This is the remark for test. |
| networkInfo |
object |
No |
The updated network information for the instance. |
|
| internetInfo |
object |
No |
The internet information. This parameter is valid only if public access is enabled for the instance. |
|
| ipWhitelist |
array |
No |
The IP address whitelist for public access.
|
|
|
string |
No |
An IP address or CIDR block in the public IP address whitelist. |
192.168.x.x/24 |
|
| productInfo |
object |
No |
The extended configuration of the instance. |
|
| sendReceiveRatio |
number |
No |
The message send/receive ratio. Valid values: [0.25, 1]. |
0.5 |
| autoScaling |
boolean |
No |
Specifies whether to enable burstable performance for the instance. If you enable burstable performance, the instance can exceed its baseline transactions per second (TPS) within a specific range. You are charged for the TPS that exceeds the baseline. For more information about billing, see Computing power fees. Note
Burstable performance is supported only by specific instance editions. For more information about the supported instance editions, see Instance editions. Valid values:
|
true |
| messageRetentionTime |
integer |
No |
The message retention period. Unit: hours. For information about the value range, see the "Message retention period" section in the Limits topic. Message storage in Message Queue for Apache RocketMQ is serverless and elastic. You are charged for your actual storage usage. You can change the message retention period to adjust your storage capacity. For more information, see Storage fees. |
72 |
| traceOn |
boolean |
No |
Specifies whether to enable the message trace feature. This parameter is not yet in effect. Message tracing is enabled by default for all instances. Valid values:
|
true |
| aclInfo |
object |
No |
The access control information. |
|
| aclTypes |
array |
No |
The authentication mechanisms for the instance. |
|
|
string |
No |
The authentication mechanism for the instance. Valid values:
|
apache_acl |
|
| defaultVpcAuthFree |
boolean |
No |
Specifies whether to enable password-free access over VPCs when intelligent authentication is used. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The unique ID of the request, used to troubleshoot and trace issues. |
AA87DE09-DA44-52F4-9515-78B1B607**** |
| success |
boolean |
Indicates whether the operation succeeded. |
true |
| data |
boolean |
The result of the operation. |
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. |
400 |
| dynamicCode |
string |
The dynamic error code. |
InstanceId |
| dynamicMessage |
string |
The dynamic error message. |
instanceId |
Examples
Success response
JSON format
{
"requestId": "AA87DE09-DA44-52F4-9515-78B1B607****",
"success": true,
"data": true,
"code": "MissingInstanceId",
"message": "Parameter instanceId is mandatory for this action .",
"httpStatusCode": 400,
"dynamicCode": "InstanceId",
"dynamicMessage": "instanceId"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.