Creates an ApsaraMQ for RabbitMQ instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:CreateInstance |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token. |
c2c5d1274axxxxxxxx |
| PaymentType |
string |
Yes |
The billing method. Valid values:
Valid values:
|
Subscription |
| Period |
integer |
No |
The subscription duration. The unit of the duration is specified by the PeriodCycle parameter. Note
This parameter is valid only when PaymentType is set to Subscription. The default value is 1. |
1 |
| PeriodCycle |
string |
No |
The unit of the subscription duration. Valid values:
This parameter is valid only when PaymentType is set to Subscription. The default value is Month. Valid values:
|
Month |
| AutoRenew |
boolean |
No |
The renewal method. Valid values:
|
false |
| AutoRenewPeriod |
integer |
No |
The auto-renewal duration. The unit is specified by the RenewalDurationUnit parameter. The default unit is Month. Note
This parameter is valid only when AutoRenew is set to true. The default value is 1. |
1 |
| RenewStatus |
string |
No |
The renewal status. This parameter is equivalent to AutoRenew. You can specify either of them. Valid value:
Note
Both AutoRenew and RenewStatus specify the renewal method. If you specify both parameters, the value of RenewStatus takes precedence. |
false |
| RenewalDurationUnit |
string |
No |
The unit of the auto-renewal duration. Valid values:
Valid values:
|
Month |
| InstanceType |
string |
No |
The instance type. For subscription instances, valid values are:
For Serverless instances, you do not need to specify this parameter. Valid values:
|
professional |
| ServerlessChargeType |
string |
No |
The billing method for Serverless instances. Valid value:
|
onDemand |
| InstanceName |
string |
No |
The instance name. The name can be up to 64 characters in length. |
amqp-xxxxx |
| MaxPrivateTps |
integer |
No |
The peak TPS for private endpoints. Unit: calls/second. Set the value based on the options provided on the ApsaraMQ for RabbitMQ buy page. |
1000 |
| SupportEip |
boolean |
No |
Specifies whether to enable Internet access. Valid values:
|
true |
| MaxEipTps |
integer |
No |
The peak TPS for Internet access. Unit: TPS. Set the value based on the options provided on the ApsaraMQ for RabbitMQ buy page. |
128 |
| QueueCapacity |
integer |
No |
The number of queues. Set the value based on the options provided on the ApsaraMQ for RabbitMQ buy page. |
1000 |
| MaxConnections |
integer |
No |
The maximum number of connections. Set the value based on the options provided on the ApsaraMQ for RabbitMQ buy page. |
50000 |
| StorageSize |
integer |
No |
The message storage space. Unit: GB. Valid values:
Note
A value of 0 indicates that storage fees are not charged for Professional and Enterprise instances. It does not mean that there is no storage space.
|
7 |
| SupportTracing |
boolean |
No |
Specifies whether to enable the message trace feature. Valid values:
Note
|
true |
| TracingStorageTime |
integer |
No |
The retention period of message traces. Unit: days. Valid values:
This parameter is valid only when SupportTracing is set to true. |
3 |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-acfmvvajg5qkxhi |
| EncryptedInstance |
boolean |
No |
This feature is available only for dedicated instances. Specifies whether to enable data storage encryption for the instance. |
false |
| KmsKeyId |
string |
No |
This feature is available only for dedicated instances. You must specify this parameter 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-xxx |
| ProvisionedCapacity |
integer |
No |
The provisioned TPS capacity for a reserved and flexible instance. |
2000 |
| Edition |
string |
No |
The deployment architecture of the Serverless instance. Valid values:
|
shared |
| Tags |
array<object> |
No |
The resource tags. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The key of the resource tag. |
testKey |
| Value |
string |
No |
The value of the resource tag. |
testValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
JsonResult |
||
| RequestId |
string |
A common parameter. The ID of the request. Each request ID is unique. You can use the request ID to troubleshoot issues. |
CCBB1225-C392-480E-8C7F-D09AB2CD2*** |
| Code |
integer |
The return code. A value of 200 indicates that the request was successful. |
200 |
| Message |
string |
The returned message. |
xxx failed,xxxx |
| Data |
any |
The ID of the created instance. |
amqp-cn-xxxxx |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "CCBB1225-C392-480E-8C7F-D09AB2CD2***",
"Code": 200,
"Message": "xxx failed,xxxx",
"Data": "amqp-cn-xxxxx",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.