Creates an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:CreateDrdsInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Description |
string |
Yes |
The description of the instance. The description must meet the following requirements:
|
test |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| ZoneId |
string |
Yes |
The zone ID. |
cn-hangzhou-e |
| Type |
string |
Yes |
The instance type. Only PRIVATE is supported, which indicates a dedicated instance. Note
You can also set this parameter to 1 to indicate a dedicated instance. |
PRIVATE |
| Quantity |
integer |
Yes |
The number of instances to create. Only the value 1 is supported, which indicates that only one instance can be created at a time. |
1 |
| InstanceSeries |
string |
Yes |
The instance edition parameter. Valid values:
|
drds.sn2.4c16g |
| Specification |
string |
Yes |
The instance specification code. The value consists of the instance edition and the specific instance specification. Example: drds.sn2.4c16g.8c32g. |
drds.sn2.4c16g.8C32g |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the request and prevent repeated submissions. The value is generated by the client and must be unique among different requests. The value can be up to 64 ASCII characters in length and cannot contain non-ASCII characters. |
c1dd299c-10c6-11ea-bbbb-************ |
| PayType |
string |
Yes |
The billing method. Valid values:
|
drdsPost |
| VpcId |
string |
No |
The VPC ID. |
vpc-********** |
| VswitchId |
string |
No |
The vSwitch ID. |
vsw-********** |
| isHa |
boolean |
No |
Specifies whether the instance is a high-availability instance. |
true |
| PricingCycle |
string |
No |
Specifies the billing cycle of the subscription instance. Valid values:
Note
This parameter is required if PayType is set to drdsPre. |
month |
| Duration |
integer |
No |
The subscription duration of the instance.
Note
This parameter takes effect only when PayType is set to drdsPre. |
1 |
| IsAutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
Note
This parameter takes effect only when PayType is set to drdsPre. |
true |
| MasterInstId |
string |
No |
The instance ID of the primary instance. Specify this parameter only when you create a read-only instance. |
drds*********** |
| MySQLVersion |
integer |
No |
The MySQL version supported by the instance. Valid values:
Note
This parameter takes effect only when you create a primary instance. The MySQL version of a read-only instance is the same as that of the primary instance by default. |
5 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| RequestId |
string |
The request ID. |
D99D4644-A70D-49A3-B8B4-767ACC50SE2R |
| Data |
object |
The result details. |
|
| OrderId |
integer |
The order ID. |
111111111111111 |
| DrdsInstanceIdList |
object |
||
| drdsInstanceIdList |
array |
Indicates the ID of the instance. |
|
|
string |
Instance ID. |
drds************ |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "D99D4644-A70D-49A3-B8B4-767ACC50SE2R",
"Data": {
"OrderId": 111111111111111,
"DrdsInstanceIdList": {
"drdsInstanceIdList": [
"drds************"
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterError | Parameter error | |
| 400 | ActionUnauthorized | The specified action is not available for you | |
| 400 | ServiceUnable | The service is not available now, please try again later | |
| 400 | OperationDenied | drds service is not enable for you | |
| 400 | QuotaExceeded.DRDSInstance | The quota of create instance exceeds. | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 400 | InvalidDescription.MalFormed | The specified parameter description is not valid. | |
| 400 | CommunicateWithManager.Error | Internal Error. Communicate with drds manager error | |
| 400 | InvalidVSwitchId | Invalid vswitchId | |
| 400 | InvalidVpcId | Invalid vpcId, or the region of vpc does not match | |
| 400 | InvalidZoneId.Mismatch | zone is illegal in this order | |
| 400 | LowInventory.ServerError | low inventory error | |
| 400 | publicInstanceAlreadExist.Error | a public Drds instance is exist | |
| 400 | CreateDRDSInstanceId.Error | create Drds instance id error | |
| 400 | ResourceInsufficient | resource is Insufficient | |
| 400 | AnotherOrderExist.Error | there is another order | |
| 400 | InstanceExceedLimit.Error | instance number has exceeded | |
| 400 | InvalidParameter.Quantity | Invalid parameter of quantity | |
| 400 | InvalidParameter.RegionId | Invalid parameter of region id | |
| 400 | InvalidParameter.ZoneId | Invalid parameter of zone id | |
| 400 | InvalidParameter.PayType | Invalid parameter of pay type | |
| 400 | InvalidParameter.Spection | Invalid parameter of specification | |
| 400 | InvalidParameter.Series | Invalid parameter of series | |
| 400 | InvalidParameter.duration_pricingCycle | when payType=drdsPre, duration and pricingCycle is required | |
| 400 | InvalidParameter.year.duration | when pricingCycle=year, duration must between 1 to 3 | |
| 400 | InvalidParameter.month.duration | when pricingCycle=month, duration must between 1 to 9 | |
| 400 | InvalidDRDSInstanceType.Error | Invalid parameter of Type, public is not supported | |
| 400 | QueryVSwitchFailed.InvalidVpcIdOrServerError | Query VSwitch failed, please check vpcId | |
| 400 | RegionNotSupportVPC.Error | This region does not support vpc instance | |
| 400 | UserAccountVerify.Failed | User account verify failed. Please verify first | |
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.