Membuat instance ApsaraDB for SelectDB.
Deskripsi operasi
Anda tidak dapat menghapus instance berlangganan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:CreateDBInstance |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-aekzt2zaluvuvqa_fake |
| ClientToken |
string |
No |
Memastikan idempotensi permintaan dan mencegah pengiriman duplikat. Parameter ini dihasilkan oleh client. Pastikan nilainya unik di berbagai permintaan. Panjang maksimumnya adalah 64 karakter ASCII, dan tidak boleh mengandung karakter non-ASCII. |
AB |
| Engine |
string |
No |
Tipe database. Nilai default-nya adalah selectdb. |
selectdb |
| EngineVersion |
string |
Yes |
Versi database. Nilai default-nya adalah 3.0. |
3.0 |
| ChargeType |
string |
Yes |
Metode penagihan instans. Nilai yang valid:
|
PrePaid |
| UsedTime |
integer |
No |
Durasi langganan untuk instans subscription. Nilai yang valid:
Catatan
Parameter ini hanya valid dan wajib jika ChargeType diatur ke Prepaid. |
1 |
| Period |
string |
No |
Siklus penagihan untuk klaster langganan. Nilai yang valid:
Catatan
Parameter ini hanya valid dan wajib jika ChargeType diatur ke Prepaid. |
Month |
| DBInstanceClass |
string |
Yes |
Tipe instans. Untuk informasi selengkapnya, lihat DescribeAllDBInstanceClass untuk menanyakan tipe instans. |
selectdb.xlarge |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ZoneId |
string |
Yes |
ID zona. |
cn-hangzhou-e |
| CacheSize |
integer |
Yes |
Ukuran cache yang dipesan. |
200GB |
| VpcId |
string |
Yes |
ID VPC. |
vpc-bp175iuvg8nxqraf2**** |
| VSwitchId |
string |
Yes |
ID vSwitch. |
vsw-bp1gzt31twhlo0sa5**** |
| DBInstanceDescription |
string |
No |
Deskripsi instans. |
新建实例测试 |
| ConnectionString |
string |
No |
Titik akhir database. |
selectdb-cn-7213c8y****-public.selectdbfe.pre.rds.aliyuncs.com |
| SecurityIPList |
string |
No |
Daftar putih alamat IP instans. Pisahkan beberapa alamat IP dengan koma (,). |
192.168.1.1 |
| Tag |
array<object> |
No |
Daftar tag instans. |
|
|
object |
No |
Daftar tag instans. |
||
| Key |
string |
No |
Kunci tag. |
testKey |
| Value |
string |
No |
Nilai tag. |
testValue |
| DeployScheme |
string |
No |
Mode penyebaran instans. |
single_az |
| MultiZone |
array<object> |
No |
Konfigurasi multi-zona. Catatan
|
|
|
object |
No |
Daftar multi-zona. |
||
| ZoneId |
string |
No |
ID zona. |
cn-hangzhou-k |
| VSwitchIds |
array |
No |
Daftar ID vSwitch. |
|
|
string |
No |
ID vSwitch. |
vsw-bp10dbralpn4bzmgkkh8f |
|
| AddVPCIPs |
string |
No |
Menentukan apakah Blok CIDR VPC akan ditambahkan ke daftar putih. Nilai yang valid:
|
1 |
| ClusterNodeType |
string |
No |
||
| ClusterNodeCount |
integer |
No |
||
| ScaleMax |
number |
No |
||
| ScaleMin |
number |
No |
||
| ConfigPatternType |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
4773E4EC-025D-509F-AEA9-D53123FDFB0F |
| Data |
object |
Hasil yang dikembalikan. |
|
| DBInstanceId |
string |
ID instans. |
selectdb-cn-7213cjv**** |
| OrderId |
integer |
ID pesanan. |
21137950671**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4773E4EC-025D-509F-AEA9-D53123FDFB0F",
"Data": {
"DBInstanceId": "selectdb-cn-7213cjv****",
"OrderId": 0
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | COMMODITY.INVALID_COMPONENT | Order configuration parameters do not meet the verification conditions, please re-match the product. | |
| 400 | DocumentConvertFailed.ExceedFileSizeLimit | The conversion has been failed, exceed file size limit. | |
| 400 | Forbidden | User not authorized to operate on the specified resource, or this API does not support RAM. | |
| 400 | InvalidDBName | The specified database name is not allowed. | |
| 400 | CreateOrderFailed | Failed to create order. | |
| 400 | InvalidVSwitchId.Malformed | The specified parameter "VSwitchId" is not valid. | |
| 400 | InvalidMultiZone.NotThreeZones | The number of zones must be three. | |
| 400 | InvalidZoneId.Duplicated | The zones cannot be repeated please select different zones. | |
| 400 | EngineVersionDoNotSupportMultiZone | The specified engine version doesn't support multi zone. | |
| 400 | InvalidChargeType.Malformed | The specified parameter "ChargeType" is not valid. | |
| 400 | InvalidBuyConfigCpuOrCacheSize | The specified purchase configuration CPU or cache size is invalid. | |
| 400 | InvalidZoneId.Malformed | The specified parameter "ZoneId" is not valid. | |
| 400 | InvalidVpcId.Malformed | The specified parameter "VpcId" is not valid. | |
| 400 | ORDER.INST_HAS_UNPAID_ORDER | Instance has unpaid order. | |
| 400 | OperationDenied.OrderProcessing | There are orders in process. | |
| 403 | DBClusterNotSupported | The requested operation can not be performed while the cluster is not sale. | |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | |
| 403 | InstanceEngineType.NotSupport | The instance engine and type does not support operations. | |
| 403 | InvalidDBInstanceState.NotSupport | The specified instance state does't support this operation. | |
| 403 | MoneyLessThan100 | The Account Monet less Than 100. | |
| 403 | OperationDenied.DBNameAndAccountPrivilegeCount | The operation is not permitted due to count of database or account privilege. | |
| 403 | InsufficientResourceCapacity | The resource is out of usage. | |
| 403 | INSUFFICIENT_AVAILABLE_QUOTA | Your account available limit is less than 0, please recharge before trying to purchase. | |
| 403 | OperationDenied.SpecificClassCodeNotSupported | The uid is not in specific classcode whitelist. | |
| 404 | DBInstanceLocked | The current instance lock mode does not support this operation. | |
| 404 | IncorrectVswitchId | The specified parameter VSwitchId is not valid. | |
| 404 | InvalidApi.NotFound | Specified api is not found, please check your url and method. | |
| 404 | InvalidDBInstance.NotFound | The specified instance is not found. | |
| 404 | InvalidDBInstanceClass.NotFound | The specified instance classic does not exist. | |
| 404 | InvalidRegionId.NotFound | The provided RegionId does not exist in our records. | |
| 404 | QueryPrice.Failed | The inquiry failed. Contact Alibaba Cloud customer service representatives. | |
| 404 | InvalidVSwitch.NoIP | VSwitch has zero available IP. | |
| 404 | InvalidDBClusterClass.NotFound | The specified cluster class does not exist. | |
| 404 | InvalidVPC.NotFound | VPC or VSwitch is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.