Mengubah parameter instans Database Apsara for MongoDB.
Deskripsi operasi
When you call this operation, the instance must be in the Running state.
If you call this operation to modify specific instance parameters that require a restart to take effect, the instance is automatically restarted after the operation is called. You can call the DescribeParameterTemplates operation to identify which parameters require an instance restart to take effect after modification.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyParameters |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID Wilayah instans. Untuk mengkueri daftar Wilayah terbaru, panggil operasi DescribeRegions. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
ID instans. Catatan
Jika parameter ini diatur ke ID instans kluster sharded, Anda juga harus menentukan parameter NodeId. |
dds-bp19f409d75**** |
| NodeId |
string |
No |
ID node Mongos (Proxy Layanan) atau shard dalam instans kluster sharded. Catatan
Parameter ini hanya valid jika parameter DBInstanceId diatur ke ID instans kluster sharded. |
d-bp1b7bb3bbe**** |
| Parameters |
string |
Yes |
Parameter dan nilai barunya. Nilai harus berupa string JSON. Contoh: {"ParameterName1":"ParameterValue1","ParameterName2":"ParameterValue2"}. Catatan
Panggil operasi DescribeParameterTemplates untuk mengkueri daftar template parameter default. |
{"operationProfiling.mode":"all","operationProfiling.slowOpThresholdMs":"200"} |
| CharacterType |
string |
No |
Tipe node. Nilai valid:
|
db |
| SwitchMode |
string |
No |
Pengatur waktu saat modifikasi parameter berlaku. Nilai valid:
Valid values:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
36923CC2-DDAB-4B48-A144-DA92C1E19537 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "36923CC2-DDAB-4B48-A144-DA92C1E19537"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | The parameter entered is invalid. |
| 400 | InvalidParameterForInstanceVersion | Parameter %s is not valid for instance's MinorVersion. | Parameter %s is not valid for the instance's minor version,you can try to upgrade the mini version. |
| 400 | InvalidParameter | The specified parameter %s is not valid. | The specified parameter %s is not valid. |
| 400 | OplogSizeLowerThanInstanceStorage | The oplogSizeMB parameter entered is less than 10% of the instance store size. | The oplogSizeMB parameter entered is less than 10% of the instance store size. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.