Call UpdateAdvancedSetting to change the garbage collector configuration for the specified instance.
Debugging
Request header
This operation uses common request parameters only. For more information, see Common parameters.
Request syntax
POST|PUT /openapi/instances/[InstanceId]/actions/update-advanced-setting HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceId | String | Yes | es-cn-09k1ruw79000u**** |
The ID of the instance. |
clientToken | String | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
A unique token generated by the client to guarantee the idempotency of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
RequestBody
The following parameters must be specified in RequestBody to specify the modified garbage collector configuration.
Parameter |
Type |
Required |
Example |
Description |
---|---|---|---|---|
gcName |
String |
Yes |
CMS |
The new name of the garbage collector. Supported types: CMS and G1. |
Example:
{
"gcName":"CMS"
}
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
The ID of the request. |
Result | Boolean | true |
Return results:
|
Examples
Sample requests
POST /openapi/instances/es-cn-09k1ruw79000u****/actions/update-advanced-setting HTTP/1.1
Common request parameters
{
"gcName":"CMS"
}
Sample success responses
JSON
format
{
"Result": true,
"RequestId": "D7BA7E23-F6B7-4D57-BBE4-67EACAAB****"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InstanceNotFound | The instanceId provided does not exist. | The error message returned because the specified instance cannot be found. Check the instance status. |
For a list of error codes, visit the API Error Center.