UpdateAdvancedSetting
Updates the garbage collector configuration of a specified Elasticsearch instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpdateAdvancedSetting |
update |
*Instance
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/actions/update-advanced-setting HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-09k1ruw79000u**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
Ensures the idempotence of the request. The parameter value is generated by the client and must be unique across different requests. The value can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| updateStrategy |
string |
No |
The update type. Valid values:
|
blue_green |
| body |
string |
No |
The updated garbage collector name configuration. |
{"gcName":"CMS"} |
Request body
The request body must also include the following parameters to specify the updated garbage collector configuration.
| Name | Type | Required | Example | Description |
| gcName | String | Yes | CMS | The updated garbage collector name. Valid values: CMS and G1. |
Example:
{
"gcName":"CMS"
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
| Result |
boolean |
The returned result. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D****",
"Result": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.