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 payment type. Valid values:
Valid values:
|
Subscription |
| Period |
integer |
No |
The subscription period. Unit: periodCycle. Note
This parameter takes effect only when PaymentType is set to Subscription. Default value: 1. |
1 |
| PeriodCycle |
string |
No |
The unit of the subscription period. Valid values:
This parameter takes effect only when PaymentType is set to Subscription. Default value: Month. Valid values:
|
Month |
| AutoRenew |
boolean |
No |
The renewal method. Valid values:
|
false |
| AutoRenewPeriod |
integer |
No |
The auto-renewal epoch. Unit: the value of RenewalDurationUnit. Default unit: month. Note
This parameter takes effect only when AutoRenew is set to true. Default value: 1. |
1 |
| RenewStatus |
string |
No |
The renewal status. This parameter is equivalent to autoRenew. Specify only one of the two parameters. Valid values:
Note
Both autoRenew and renewStatus specify the renewal method. If both are specified, renewStatus takes precedence. |
false |
| RenewalDurationUnit |
string |
No |
The unit of the auto-renewal epoch. Valid values:
Valid values:
|
Month |
| InstanceType |
string |
No |
The instance type. Valid values for subscription instances:
You do not need to specify this parameter for Serverless instances. Valid values:
|
professional |
| ServerlessChargeType |
string |
No |
The billing type of the Serverless instance. Valid values:
|
onDemand |
| InstanceName |
string |
No |
The instance name. We recommend that the name does not exceed 64 characters in length. |
amqp-xxxxx |
| MaxPrivateTps |
integer |
No |
The private network TPS traffic. Unit: transactions per second. Configure the settings based on the values provided on the ApsaraMQ for RabbitMQ buy page. |
1000 |
| SupportEip |
boolean |
No |
Specifies whether to support public network access. Valid values:
|
true |
| MaxEipTps |
integer |
No |
The peak public network TPS traffic. Unit: TPS. Configure the settings based on the values provided on the ApsaraMQ for RabbitMQ buy page. |
128 |
| QueueCapacity |
integer |
No |
The number of queues. Configure the settings based on the values provided on the ApsaraMQ for RabbitMQ buy page. |
1000 |
| MaxConnections |
integer |
No |
The maximum number of connections. Configure the settings based on the values 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 no storage fees are charged for Professional Edition and Enterprise instances, not that no storage space is available.
|
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 takes effect 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 exclusive to dedicated instances. Specifies whether to enable data storage encryption for the instance. |
false |
| KmsKeyId |
string |
No |
This feature is exclusive to dedicated instances. This parameter is required when EncryptedInstance is set to true. The ID of the KMS key used for data encryption at rest. The key must meet the following requirements:
|
key-xxx |
| ProvisionedCapacity |
integer |
No |
The provisioned TPS capacity for provisioned + elastic instances. |
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 tag key. |
testKey |
| Value |
string |
No |
The tag value. |
testValue |
| VpcId |
string |
Yes |
The VPC ID used to create a PrivateLink endpoint. |
vpc-xxx |
| VswitchIds |
array |
Yes |
The vSwitch IDs used to create a PrivateLink endpoint when creating the instance.
|
|
|
string |
Yes |
The vSwitch ID specified when creating the instance. |
vsw-xxx |
|
| SecurityGroupId |
string |
Yes |
The security group used to create a PrivateLink endpoint.
|
sg-xxx |
| ListenerMode |
string |
No |
Specifies whether the instance enables only TLS-encrypted ports. This parameter is supported only for dedicated provisioned + elastic instances and Platinum Edition instances. |
tcp_and_ssl |
| AuthModel |
string |
No |
ram openSource |
|
| ServerlessSwitch |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
JsonResult |
||
| RequestId |
string |
The common parameter. Each request has a unique ID that can be used for troubleshooting. |
CCBB1225-C392-480E-8C7F-D09AB2CD2*** |
| Code |
integer |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The response 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.