Membuat instans Database Apsara for SelectDB.
Deskripsi operasi
Instans langganan tidak dapat dihapus.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
selectdb:CreateDBInstance |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-aekzt2zaluvuvqa_fake |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan dan mencegah pengiriman permintaan berulang. Token dihasilkan oleh klien dan harus unik di seluruh permintaan yang berbeda. Panjang token dapat mencapai 64 karakter ASCII dan tidak boleh berisi karakter non-ASCII. |
AB |
| Engine |
string |
No |
Jenis database. Nilai default: selectdb. |
selectdb |
| EngineVersion |
string |
Yes |
Versi mesin database. Nilai default: 4.1. Deskripsi nilai valid: |
4.1 |
| ChargeType |
string |
Yes |
Metode penagihan instans. Nilai valid: |
PrePaid |
| UsedTime |
integer |
No |
Durasi langganan instans. Deskripsi nilai valid: |
1 |
| Period |
string |
No |
Apakah kluster di muka ditagih secara tahunan atau bulanan. Deskripsi nilai valid: |
Month |
| DBInstanceClass |
string |
Yes |
Spesifikasi instans. Anda dapat memanggil operasi DescribeAllDBInstanceClass untuk mengkueri spesifikasi instans. |
selectdb.xlarge |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ZoneId |
string |
Yes |
ID zona. |
cn-hangzhou-e |
| CacheSize |
integer |
Yes |
Ukuran cache yang dicadangkan. |
200GB |
| VpcId |
string |
Yes |
ID VPC. |
vpc-bp175iuvg8nxqraf2**** |
| VSwitchId |
string |
Yes |
ID vSwitch. |
vsw-bp1gzt31twhlo0sa5**** |
| DBInstanceDescription |
string |
No |
Deskripsi instans. |
Pengujian instans baru |
| ConnectionString |
string |
No |
Titik akhir database. |
selectdb-cn-7213c8y****-public.selectdbfe.pre.rds.aliyuncs.com |
| SecurityIPList |
string |
No |
Daftar putih 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. |
|
|
object |
No |
Daftar beberapa zona. |
||
| ZoneId |
string |
No |
ID zona. |
cn-hangzhou-k |
| VSwitchIds |
array |
No |
Daftar ID vSwitch. |
|
|
string |
No |
ID vSwitch. |
vsw-bp10dbralpn4bzmgkkh8f |
|
| AddVPCIPs |
string |
No |
Apakah akan menambahkan Blok CIDR VPC ke daftar putih. Deskripsi nilai valid: |
1 |
| ClusterNodeType |
string |
No |
||
| ClusterNodeCount |
integer |
No |
||
| ScaleMax |
number |
No |
||
| ScaleMin |
number |
No |
||
| ConfigPatternType |
string |
No |
Templat konfigurasi yang diterapkan pada instans. |
|
|
No |
Spesifikasi node dari satu node kluster FE. Parameter ini hanya berlaku saat Anda membuat instans pay-as-you-go atau Instansi langganan. Nilai default: selectdb_fe.xlarge16. |
|||
|
No |
Jumlah node kluster FE. Parameter ini hanya berlaku saat Anda membuat instans pay-as-you-go atau Instansi langganan. Nilai default: 3. Nilai valid: 1 hingga 11 (hanya angka ganjil). |
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. | |
| 400 | InvalidInstanceClass.MultiAZ | The instance with 4-core BE cluster does not support multi-zone redundancy. | |
| 400 | InvalidFEClassCode.Blank | The specified parameter "FEClassCode" is blank. | |
| 400 | InvalidFENodeCount | The specified parameter "FENodeCount" is not valid. | |
| 400 | InvalidFENodeCount.Blank | The specified parameter "FENodeCount" is blank. | |
| 400 | InvalidInstanceClass.ForMultiAZ | The instance with 4-core BE cluster does not support upgrading to multi-zone redundancy. | |
| 400 | InvalidFENodeCount.ForMultiAZ | The instance with FENodeCount that less than 3 does not support upgrading to multi-zone redundancy. | |
| 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. | |
| 404 | InvalidFEClass.NotFound | The specified fe class doesn't exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.