Upgrades or downgrades an ApsaraMQ for RabbitMQ instance.
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 modification type. Valid values:
|
UPGRADE |
| InstanceType |
string |
No |
The instance type. This parameter is available only for subscription instances. Valid values:
This parameter is not required for pay-as-you-go instances. |
professional |
| ServerlessChargeType |
string |
No |
The billing method of the pay-as-you-go (Serverless) instance. Valid values:
|
onDemand |
| MaxPrivateTps |
integer |
No |
The peak transactions per second (TPS) for private endpoints. Unit: TPS. |
1000 |
| SupportEip |
boolean |
No |
Specifies whether to enable Internet access. |
false |
| MaxEipTps |
integer |
No |
The peak TPS for public endpoints. Unit: TPS. |
128 |
| QueueCapacity |
integer |
No |
The maximum number of queues. |
1000 |
| MaxConnections |
integer |
No |
The maximum number of connections. |
1000 |
| StorageSize |
integer |
No |
The message storage space. |
7 |
| SupportTracing |
boolean |
No |
Specifies whether to enable the message trace feature. |
false |
| TracingStorageTime |
integer |
No |
The retention period of message traces. |
3 |
| EncryptedInstance |
boolean |
No |
This feature is available only for dedicated instances. Specifies whether to enable data storage encryption.
|
false |
| KmsKeyId |
string |
No |
This feature is available only for dedicated instances. This parameter is required if EncryptedInstance is set to true. The ID of the KMS key used for data storage encryption. The key must meet the following requirements:
|
key-bjj66c2a893vmhawtq5fd |
| ProvisionedCapacity |
integer |
No |
||
| Edition |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID. You can use this ID to troubleshoot issues. |
628705FD-03EE-4ABE-BB21-E1672960*** |
| Code |
integer |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
InstanceNotExist |
| Data |
any |
The returned data, which includes the orderId and instanceId. For example: |
{“instanceId”: “amqp-cn-jtexxxxx”, “orderId”: 2222222} |
| 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”: “amqp-cn-jtexxxxx”, “orderId”: 2222222}",
"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 | InstanceUpgradeOrDownGradeTopicMigrating | Data migration is in progress for an instance upgrade/downgrade. Please wait for completion. | |
| 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.