Call the OnsInstanceCreate operation to create an instance.
Operation description
This operation supports only the creation of standard instances. It does not support Platinum instances. The ApsaraMQ for RocketMQ console supports the creation of both standard and Platinum instances. For more information, see Instance management.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:CreateInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Remark |
string |
No |
The description of the instance. |
备注说明 |
| InstanceName |
string |
Yes |
The name of the instance. The name must meet the following requirements:
|
测试实例 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This ID is unique to each request. You can use this ID to troubleshoot issues. |
A07E3902-B92E-44A6-B6C5-6AA111111**** |
| Data |
object |
The data returned. |
|
| InstanceId |
string |
The ID of the created instance. |
MQ_INST_188077086902****_BXSuW61e |
| InstanceType |
integer |
The type of the created instance. Valid value:
|
1 |
Examples
Success response
JSON format
{
"RequestId": "A07E3902-B92E-44A6-B6C5-6AA111111****",
"Data": {
"InstanceId": "MQ_INST_188077086902****_BXSuW61e",
"InstanceType": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.