Mengubah konfigurasi satu atau beberapa node Mongos atau shard dalam instans kluster sharded Database Apsara for MongoDB.
Deskripsi operasi
Before you call this operation, ensure that you understand the billing methods and pricing of ApsaraDB for MongoDB.
This operation applies only to ApsaraDB for MongoDB sharded cluster instances.
When you upgrade or downgrade multiple sharded cluster instances in a batch, the target instance types are subject to certain constraints. For example, if you expand storage capacity, the target capacity must be greater than or equal to the current capacity. If the instances have different instance types, the system randomly selects the instance type of one instance and applies its constraints to the entire batch. This may cause the upgrade or downgrade to fail. If you cannot upgrade or downgrade instances in a batch, you can use the ModifyNodeSpec operation to change the configuration of a single sharded cluster instance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyNodeSpecBatch |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
ID instans yang konfigurasinya ingin Anda ubah. |
dds-bp1337621e8f**** |
| NodesInfo |
string |
Yes |
Tipe instans node Mongos dan shard yang ingin Anda ubah. Untuk informasi selengkapnya, lihat Tipe instans. |
{"Shards":[{"DBInstanceClass":"dds.shard.mid","DBInstanceName":"d-bp14ae4572fd****","Storage":20},{"DBInstanceClass":"dds.shard.mid","DBInstanceName":"d-bp19f4f92dc5****","Storage":30}]} |
| ClientToken |
string |
No |
Token klien. Digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. |
ETnLKlblzczshOTUbOCz**** |
| AutoPay |
boolean |
No |
Apakah akan mengaktifkan pembayaran otomatis. Nilai valid:
Nilai default: true. |
true |
| EffectiveTime |
string |
No |
Periode efektif perubahan konfigurasi. Nilai valid:
Catatan
Nilai default: Immediately. |
Immediately |
| OrderType |
string |
No |
Tipe perubahan konfigurasi. Nilai valid:
Catatan
Parameter ini hanya tersedia jika metode penagihan instans adalah langganan. |
UPGRADE |
| CouponNo |
string |
No |
Apakah akan menggunakan kupon. Nilai valid:
|
default |
| BusinessInfo |
string |
No |
Informasi bisnis. |
{“ActivityId":"000000000"} |
| TargetVswitchId |
string |
No |
ID vSwitch tujuan untuk perubahan konfigurasi yang melibatkan migrasi zona. Penting
Parameter ini hanya berlaku untuk instans yang menggunakan disk. Catatan
|
vsw-xxxxxxxx |
| TargetHiddenZoneId |
string |
No |
Zona tujuan node tersembunyi untuk perubahan konfigurasi yang melibatkan migrasi zona. Penting
Parameter ini hanya berlaku untuk instans yang menggunakan disk. Penting
Nilai parameter ini tidak boleh sama dengan nilai parameter TargetZoneId atau TargetSecondaryZoneId. Catatan
|
cn-hangzhou-e |
| TargetZoneId |
string |
No |
Zona tujuan node primer untuk perubahan konfigurasi yang melibatkan migrasi zona. Penting
Parameter ini hanya berlaku untuk instans yang menggunakan disk. Penting
Nilai parameter ini tidak boleh sama dengan nilai parameter TargetSecondaryZoneId atau TargetHiddenZoneId. Catatan
|
cn-hangzhou-h |
| TargetSecondaryZoneId |
string |
No |
Zona tujuan node sekunder untuk perubahan konfigurasi yang melibatkan migrasi zona. Penting
Parameter ini hanya berlaku untuk instans yang menggunakan disk. Penting
Nilai parameter ini tidak boleh sama dengan nilai parameter TargetZoneId atau TargetHiddenZoneId. Catatan
|
cn-hangzhou-j |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderId |
string |
The order ID. |
21012719476**** |
| RequestId |
string |
The request ID. |
0637BC25-6895-5500-871F-1127CA34**** |
Contoh
Respons sukses
JSONformat
{
"OrderId": "21012719476****",
"RequestId": "0637BC25-6895-5500-871F-1127CA34****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | GadInstanceNotSupport | GAD Instance doesn't support the operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.