Updates the basic information and specification configurations of an ApsaraMQ for 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 be updated. |
rmq-cn-7e22ody**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body structure. |
|
| instanceName |
string |
No |
The updated instance name. |
test_instance |
| remark |
string |
No |
The updated remarks for the instance. |
This is the remark for test. |
| networkInfo |
object |
No |
The updated network information of the instance. |
|
| internetInfo |
object |
No |
The public network information. This parameter is valid only when the public network access feature 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 extension configurations of the instance. |
|
| sendReceiveRatio |
number |
No |
The ratio of message sending to accepting. Valid values: [0.25, 1] |
0.5 |
| autoScaling |
boolean |
No |
Specifies whether to enable burstable elastic capacity beyond the specification. After burstable elastic capacity is enabled, ApsaraMQ for RocketMQ allows the instance to exceed the TPS limit of the base specification within a certain range. The portion that exceeds the base specification incurs additional elastic specification fees. For more information about billing, see Computing fee. Note
Only instances of specific specifications support burstable elastic capacity. For more information about supported instances, see Instance specifications. Valid values:
|
true |
| messageRetentionTime |
integer |
No |
The message retention period. Unit: hours. For the valid value range, see Limits > Resource Quotas > Message Retention Period. The log broker in ApsaraMQ for RocketMQ is fully serverless and elastic, and fees are charged based on actual storage space. You can control the storage capacity of messages by adjusting the message retention period. For more information, see Storage fee. |
72 |
| traceOn |
boolean |
No |
Specifies whether to enable the message trace feature. This parameter does not take effect. Regardless of whether this parameter is enabled, the instance supports the trace feature by default. Valid values:
|
true |
| adaptiveElasticity |
boolean |
No |
||
| aclInfo |
object |
No |
The access control information. |
|
| aclTypes |
array |
No |
The authentication type of the instance. |
|
|
string |
No |
The authentication type of the instance. Valid values:
|
apache_acl |
|
| defaultVpcAuthFree |
boolean |
No |
Indicates whether authentication-free access is enabled for VPC connections under the intelligent identity recognition type. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The request ID. Each request ID is unique and active for troubleshooting and locating issues. |
AA87DE09-DA44-52F4-9515-78B1B607**** |
| success |
boolean |
Indicates whether the execution is successful. |
true |
| data |
boolean |
The returned result. |
true |
| code |
string |
The fault code. |
MissingInstanceId |
| message |
string |
The fault message. |
Parameter instanceId is mandatory for this action . |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic fault code. |
InstanceId |
| dynamicMessage |
string |
The dynamic fault 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.