Creates an ApsaraMQ for RabbitMQ instance.
Operation description
**Before you call this operation, make sure that you fully understand the billing methods and pricing of ApsaraMQ for RabbitMQ.
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:CreateInstance | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClientToken | string | No | The client token. | c2c5d1274axxxxxxxx |
PaymentType | string | Yes | The billing method of the instance. Valid values:
| Subscription |
Period | integer | No | The subscription period. The unit of the subscription period is specified by periodCycle. Note
This parameter takes effect only if you set PaymentType to Subscription. Default value: 1.
| 1 |
PeriodCycle | string | No | The unit of the subscription period. Valid values:
This parameter is valid only if you set PaymentType to Subscription. Default value: Month. | Month |
AutoRenew | boolean | No | Specifies whether to enable auto-renewal. Valid values:
| AutoRenewal |
AutoRenewPeriod | integer | No | The auto-renewal period. The unit of the auto-renewal period is specified by RenewalDurationUnit. Default value: Month. Note
This parameter takes effect only if you set AutoRenew to true. Default value: 1.
| 1 |
RenewStatus | string | No | The renewal status. This parameter is the same as AutoRenew. You can configure one of these parameters. Valid value:
Note
If you configure both this parameter and AutoRenew, the value of this parameter is used.
| false |
RenewalDurationUnit | string | No | The unit of the auto-renewal period. Valid values:
| Month |
InstanceType | string | No | The instance edition. Valid values if you create a subscription instance:
If you create a serverless instance, you do not need to specify this parameter. | professional |
ServerlessChargeType | string | No | The billing method of the serverless instance. Valid value:
| onDemand |
InstanceName | string | No | The name of the instance. We recommend that you specify a name that does not exceed 64 characters in length. | amqp-xxxxx |
MaxPrivateTps | long | No | The maximum number of virtual private cloud (VPC)-based transactions per second (TPS) on the instance. Configure this parameter based on the values provided on the ApsaraMQ for RocketMQ buy page. | 1000 |
SupportEip | boolean | No | Specifies whether elastic IP addresses (EIPs) are supported. Valid values:
| true |
MaxEipTps | long | No | The maximum number of Internet-based TPS on the instance. Configure this parameter based on the values provided on the ApsaraMQ for RocketMQ buy page. | 128 |
QueueCapacity | integer | No | The number of queues on the instance. Configure this parameter based on the values provided on the ApsaraMQ for RocketMQ buy page. | 1000 |
MaxConnections | integer | No | The maximum number of connections that can be established to the instance. Configure this parameter based on the values provided on the ApsaraMQ for RocketMQ buy page. | 50000 |
StorageSize | integer | No | The storage capacity. Unit: GB. Valid values:
Note
The value 0 specifies that storage space is available for Professional Edition and Enterprise Edition instances, but no storage fees are generated.
| 7 |
SupportTracing | boolean | No | Specifies whether to enable the message trace feature. Valid values:
Note
| true |
TracingStorageTime | integer | No | The retention period of messages. Unit: days. Valid values:
This parameter is valid only if you set SupportTracing to true. | 3 |
ResourceGroupId | string | No | The ID of the resource group to which the instance belongs. | rg-acfmvvajg5qkxhi |
EncryptedInstance | boolean | No | Specifies whether to enable storage encryption for the instance. This parameter is available only for exclusive instances. | false |
KmsKeyId | string | No | The ID of the Key Management Service (KMS)-managed key used for storage encryption. This parameter is available only for exclusive instances and required only if you set EncryptedInstance to true. The key must meet the following conditions:
| key-xxx |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CCBB1225-C392-480E-8C7F-D09AB2CD2***",
"Code": 200,
"Message": "xxx failed,xxxx",
"Data": "amqp-cn-xxxxx",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-12-05 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-11-25 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-07-30 | The Error code has changed | View Change Details |
2024-03-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-03-05 | The request parameters of the API has changed | View Change Details |
2024-02-27 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-02-22 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-01-24 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-01-24 | The request parameters of the API has changed | View Change Details |