Updates an ApsaraMQ for RabbitMQ instance to upgrade or downgrade its specifications.
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 |
| ClientToken |
string |
No |
The client token. |
c2c5d1274axxxxxxxx |
| InstanceId |
string |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-jtexxxxx |
| ModifyType |
string |
Yes |
The type of specification change. Valid values:
|
UPGRADE |
| InstanceType |
string |
No |
The instance type. Valid values for subscription instances:
You do not need to specify this parameter for pay-as-you-go instances. |
professional |
| ServerlessChargeType |
string |
No |
The billing type of pay-as-you-go (Serverless) instances. Valid values:
|
onDemand |
| MaxPrivateTps |
integer |
No |
The peak TPS for private network traffic. Unit: transactions per second. |
1000 |
| SupportEip |
boolean |
No |
Specifies whether public network access is supported. |
false |
| MaxEipTps |
integer |
No |
The peak TPS for public network traffic. Unit: transactions per second. |
128 |
| QueueCapacity |
integer |
No |
The maximum number of queues. |
1000 |
| MaxConnections |
integer |
No |
The maximum number of connections. |
1000 |
| StorageSize |
integer |
No |
The log broker space. |
7 |
| SupportTracing |
boolean |
No |
Specifies whether the message tracing feature is enabled. |
false |
| TracingStorageTime |
integer |
No |
The retention period of message traces. |
3 |
| ProvisionedCapacity |
integer |
No |
The reserved TPS capacity for reserved + elastic instances. |
2000 |
| Edition |
string |
No |
The deployment architecture of the Serverless instance. Valid values:
|
shared |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The common parameter. The ID of each request is unique and can be active for troubleshooting. |
628705FD-03EE-4ABE-BB21-E1672960*** |
| Code |
integer |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The response message. |
InstanceNotExist |
| Data |
any |
The response data, which includes orderId and instanceId. Example: |
{'instanceId': 'rabbitmq-serverless-cn-lf63qsjlf06', 'orderId': 234170302080010} |
| Success |
string |
Indicates whether the request was successful. |
true |
| StatusCode |
string |
The status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "628705FD-03EE-4ABE-BB21-E1672960***",
"Code": 200,
"Message": "InstanceNotExist",
"Data": "{'instanceId': 'rabbitmq-serverless-cn-lf63qsjlf06', 'orderId': 234170302080010}",
"Success": "true",
"StatusCode": "200"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | INSUFFICIENT_AVAILABLE_QUOTA | Your account available limit is less than 0, please recharge before trying to purchase. | Your account available limit is less than 0, please recharge before trying to purchase. |
| 400 | UpDowngradeConfigNoChange | The upgrade or downgrade configuration is not changed. | The upgrade or downgrade configuration is not changed, please re-select |
| 403 | UnauthorizedOperation | The request has failed due to unauthorized operation. | The request has failed due to unauthorized operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.