Membuat atau mengkloning instans kluster sharded MongoDB.
Deskripsi operasi
-
Before you call this operation, make sure that you understand the billing methods and pricing of ApsaraDB for MongoDB.
-
For more information about the instance types of ApsaraDB for MongoDB, see Instance types.
-
To create a standalone or replica set instance, you can call the CreateDBInstance operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateShardingDBInstance |
create |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| ZoneId |
string |
No |
ID zona. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID zona. |
cn-hangzhou-g |
| Engine |
string |
Yes |
Mesin database. Atur nilainya menjadi MongoDB. |
MongoDB |
| EngineVersion |
string |
Yes |
Versi database. Nilai valid:
Catatan
|
4.4 |
| DBInstanceDescription |
string |
No |
Nama instans. Nama harus memenuhi persyaratan berikut:
|
test |
| SecurityIPList |
string |
No |
Daftar putih alamat IP Instans. Pisahkan beberapa alamat IP dengan koma (,). Setiap alamat IP dalam daftar putih harus unik. Format berikut didukung:
Catatan
|
192.168.xx.xx,192.168.xx.xx |
| AccountPassword |
string |
No |
Kata sandi akun root. Kata sandi harus memenuhi persyaratan berikut:
Catatan
Untuk informasi tentang cara mengatasi kegagalan koneksi yang disebabkan oleh karakter khusus dalam kata sandi, lihat How do I fix connection failures caused by special characters in a password?. |
123456Aa |
| ChargeType |
string |
No |
Metode penagihan Instans. Nilai valid:
Catatan
Jika Anda mengatur parameter ini menjadi PrePaid, Anda juga harus menentukan parameter Period. |
PrePaid |
| Period |
integer |
No |
Durasi langganan Instans. Unit: bulan. Nilai valid: 1 hingga 9 (integer), 12, 24, 36, dan 60. Catatan
Parameter ini wajib dan berlaku hanya jika Anda mengatur parameter ChargeType menjadi PrePaid. |
1 |
| NetworkType |
string |
No |
Jenis jaringan Instans. Nilai valid: VPC: virtual private cloud. |
VPC |
| VpcId |
string |
No |
ID virtual private cloud (VPC). |
vpc-bp1n3i15v90el48nx**** |
| VSwitchId |
string |
No |
ID vSwitch. |
vsw-bp1vj604nj5a9zz74**** |
| SrcDBInstanceId |
string |
No |
ID Instans sumber. Catatan
Parameter ini wajib hanya jika Anda mengkloning Instans dengan memanggil operasi ini. Anda juga harus menentukan parameter RestoreTime. |
dds-bp11483712c1**** |
| RestoreTime |
string |
No |
Pengatur waktu yang ingin Anda gunakan untuk memulihkan data. Anda dapat menentukan pengatur waktu apa pun dalam tujuh hari terakhir. Tentukan waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam Coordinated Universal Time (UTC). Catatan
Parameter ini wajib hanya jika Anda mengkloning Instans dengan memanggil operasi ini. Anda juga harus menentukan parameter SrcDBInstanceId. |
2022-03-08T02:30:25Z |
| ClientToken |
string |
No |
token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token unik di antara permintaan yang berbeda. token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. |
ETnLKlblzczshOTUbOCz**** |
| StorageEngine |
string |
No |
Mesin penyimpanan instans. Atur nilainya menjadi WiredTiger. Catatan
|
WiredTiger |
| AutoRenew |
string |
No |
Apakah akan mengaktifkan perpanjangan otomatis untuk Instans. Nilai valid:
Catatan
Parameter ini opsional dan berlaku hanya jika Anda mengatur parameter ChargeType menjadi PrePaid. |
true |
| ProtocolType |
string |
No |
Jenis Protokol Instans. Nilai valid:
|
mongodb |
| Mongos |
array<object> |
Yes |
Informasi node Mongos (Proxy Layanan). |
|
|
object |
Yes |
The information of Mongos nodes. |
||
| Class |
string |
Yes |
The instance type of the Mongos node. For more information, see Sharded cluster instance types. Catatan
|
mdb.shard.2x.xlarge.d |
| ReplicaSet |
array<object> |
Yes |
Informasi node shard. |
|
|
object |
No |
The information of shard nodes. |
||
| Class |
string |
Yes |
The instance type of the shard node. For more information, see Sharded cluster instance types. Catatan
|
dds.shard.standard |
| Storage |
integer |
Yes |
The storage space of the shard node. Unit: GB. Catatan
|
10 |
| ReadonlyReplicas |
integer |
No |
The number of read-only nodes in the shard node. Valid values: 0 to 5. The default value is 0. Catatan
N in the parameter name specifies the serial number of the shard node. For example, ReplicaSet.2.ReadonlyReplicas specifies the number of read-only nodes in the second shard node. |
0 |
| ConfigServer |
array<object> |
Yes |
Informasi node Configserver. |
|
|
object |
No |
The information of Configserver nodes. |
||
| Class |
string |
Yes |
The instance type of the Configserver node. Valid values:
|
mdb.shard.2x.xlarge.d |
| Storage |
integer |
Yes |
The storage space of the Configserver node. Unit: GB. Catatan
The value of this parameter is constrained by the instance type. For more information, see Sharded cluster instance types. |
20 |
| SecondaryZoneId |
string |
No |
Zona sekunder 1 untuk penerapan multi-zona. Nilai valid:
Catatan
|
cn-hangzhou-h |
| HiddenZoneId |
string |
No |
Zona sekunder 2 untuk penerapan multi-zona. Nilai valid:
Catatan
|
cn-hangzhou-i |
| StorageType |
string |
No |
Jenis penyimpanan. Nilai valid:
Catatan
|
cloud_essd1 |
| GlobalSecurityGroupIds |
string |
No |
Templat daftar putih alamat IP global Instans. Pisahkan beberapa Templat dengan koma (,). Setiap Templat harus unik. |
g-qxieqf40xjst1ngpr3jz |
| Tag |
array |
No |
tag kustom. |
|
| Encrypted |
boolean |
No |
Apakah akan mengaktifkan Enkripsi disk. |
|
| EncryptionKey |
string |
No |
ID kunci kustom. |
2axxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| ProvisionedIops |
integer |
No |
IOPS yang disediakan. |
1960 |
| SrcRegion |
string |
No |
Wilayah Instans sumber. Catatan
|
cn-beijing |
| BackupId |
string |
No |
ID cadangan Kluster. Catatan
|
cb-xxx |
| RestoreType |
string |
No |
Metode pemulihan instans berbasis cadangan. Nilai valid:
|
1 |
| DestRegion |
string |
No |
Wilayah tempat cadangan geo-redundan disimpan. |
cn-hangzhou |
| DestRegion |
string |
No |
异地备份所在地域。 |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned information. |
||
| RequestId |
string |
The request ID. |
D8F1D721-6439-4257-A89C-F1E8E9C9**** |
| DBInstanceId |
string |
The instance ID. |
dds-bp114f14849d**** |
| OrderId |
string |
The order ID. |
21010996721**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D8F1D721-6439-4257-A89C-F1E8E9C9****",
"DBInstanceId": "dds-bp114f14849d****",
"OrderId": "21010996721****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SecurityRisk.AuthVerification | we have detected a risk with your default payment method. An email and notification has been sent to you. Please re-submit your order before after verificaiton. | |
| 400 | InvaliadParameter.ShardsCount.LessThanSrc | The specified number of shards is less than that of source instance. | |
| 400 | ORDER.ACCOUNT_INFORMATION_INCOMPLETE | Your information is incomplete. Complete your information before ordering. | |
| 400 | InvalidRegion.Format | Specified Region is not valid. | |
| 400 | Zone.Closed | The specified zone is closed. | |
| 400 | TokenServiceError | The request token is duplicated. | |
| 400 | InvalidParam | Param not valid. | |
| 400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | |
| 400 | InvalidParameters.Format | Specified parameters is not valid. | |
| 400 | RestoreTypeNotSupported | The specified restoreType is not supported for the instance, check the input parameters 'RestoreType/BackupID/RestoreTime'. | |
| 500 | VpcServiceError | Invoke vpc service error. | |
| 403 | InvalidBackupLogStatus | Current backup log enable status does not support this operation. | |
| 403 | ReduceDiskNotSupport | Reduce disk size is not supported in clone/restore. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.