Upgrades or downgrades the configurations of an ApsaraMQ for RabbitMQ instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
amqp:UpdateInstance | update | *Instance acs:amqp:{#regionId}:{#accountId}:/instances/{#instanceId} |
| 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 the configuration change. Valid values:
| UPGRADE |
InstanceType | string | No | The instance edition. Valid values for subscription instances:
If your instance is a pay-as-you-go instance, you do not need to configure this parameter. | professional |
ServerlessChargeType | string | No | The billing method of the serverless instance. Valid values:
| onDemand |
MaxPrivateTps | long | No | The peak transactions per second (TPS) for accessing the instance in a virtual private cloud (VPC). | 1000 |
SupportEip | boolean | No | Specifies whether elastic IP addresses (EIPs) are supported. | false |
MaxEipTps | long | No | The peak TPS for accessing the instance over the Internet. | 128 |
QueueCapacity | integer | No | The maximum number of queues that can be created on the instance. | 1000 |
MaxConnections | integer | No | The maximum number of connections that can be created on the instance. | 1000 |
StorageSize | integer | No | The size of the storage space that can be used to store messages. | 7 |
SupportTracing | boolean | No | Specifies whether to enable the message trace feature. | false |
TracingStorageTime | integer | No | The retention period of message traces. Valid values:
| 3 |
Response parameters
Examples
Sample success responses
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. |
403 | UnauthorizedOperation | The request has failed due to unauthorized operation. | The request has failed due to unauthorized operation. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-12-02 | The Error code has changed | View Change Details |
2024-11-25 | The request parameters of the API has changed | View Change Details |