Updates the configurations of an instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
mse:UpdateConfig | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RequestPars | string | No | The extended request parameters in the JSON format. | {} |
ClusterId | string | Yes | The ID of the cluster. | mse-09k1q11**** |
ConfigType | string | Yes | The format of the configuration. Supported formats include TEXT, JSON, XML, and HTML. | TEXT |
TickTime | string | Yes | The time unit. This parameter is valid for ZooKeeper instances. Default value: 2000. Unit: milliseconds. | 2000 |
InitLimit | string | Yes | The maximum connection duration of the instance. This parameter is valid for ZooKeeper instances. Unit: seconds. | 100 |
SyncLimit | string | Yes | The connection timeout period of the instance. This parameter is valid for ZooKeeper instances. Unit: seconds. | 10 |
MaxClientCnxns | string | Yes | The number of connections between a client and a server. This parameter is valid for ZooKeeper instances. | 0 |
OpenSuperAcl | string | Yes | Specifies whether to enable super permissions. This parameter is valid for ZooKeeper instances. Valid values:
| true |
UserName | string | No | The name of the user. Note
You must specify this parameter if OpenSuperAcl is set to true.
| name |
PassWord | string | No | The password that corresponds to the username. Note
You must specify this parameter if OpenSuperAcl is set to true.
| password |
JuteMaxbuffer | string | Yes | The maximum amount of data on each node. This parameter is valid for ZooKeeper instances. The default maximum data amount on each node is 1 megabyte. Unit: bytes. | 1048575 |
AutopurgePurgeInterval | string | Yes | A reserved parameter. | none |
AutopurgeSnapRetainCount | string | Yes | A reserved parameter. | none |
ConfigAuthEnabled | boolean | No | Specifies whether to enable Resource Access Management (RAM) authentication for a configuration center. This parameter is valid for Nacos instances. Valid values:
Note
Before you configure this parameter, you must call the QueryConfig operation to obtain the ConfigAuthSupported parameter value to check whether the instance supports the RAM authentication feature.
| true |
NamingAuthEnabled | boolean | No | Specifies whether to enable RAM authentication for a registry. This parameter is valid for Nacos instances. Valid values:
Note
Before you configure this parameter, you must call the QueryConfig operation to obtain the NamingAuthSupporte parameter value to check whether the instance supports the RAM authentication feature.
| true |
MCPEnabled | boolean | No | Specifies whether to enable Mesh Configuration Protocol (MCP). This parameter is valid for Nacos instances. Valid values:
Note
Before you configure this parameter, you must call the QueryConfig operation to obtain the MCPSupported parameter value to check whether the instance supports MCP.
| true |
InstanceId | string | No | The ID of the instance. | mse_prepaid_public_cn-st2212**** |
ConfigSecretEnabled | boolean | No | Specifies whether to enable configuration encryption for a configuration center. This parameter is valid for Nacos instances. Valid values:
Note
Before you configure this parameter, you must call the QueryConfig operation to obtain the ConfigSecretSupported parameter value to check whether the instance supports configuration encryption.
| true |
MinSessionTimeout | string | No | The minimum timeout period. This parameter is valid for ZooKeeper instances. Unit: seconds. | 10 |
MaxSessionTimeout | string | No | The maximum timeout period. This parameter is valid for ZooKeeper instances. Unit: seconds. | 1000 |
SnapshotCount | string | No | The frequency for generating snapshots. This parameter is valid for ZooKeeper instances. | 100000 |
ExtendedTypesEnable | string | No | Specifies whether to enable the time to live (TTL) configuration. This parameter is valid for ZooKeeper instances. | true |
AcceptLanguage | string | No | The language of the response. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"Message": "The request was successfully processed.\n",
"RequestId": "8BD1E58D-0755-42AC-A599-E6B55112****",
"Success": true,
"Code": 200,
"HttpStatusCode": 200
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
404 | NotFound | Not found:%s | The resource does not exist:%s |
500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-06-12 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-10-19 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-05-08 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-03-02 | The request parameters of the API has changed | View Change Details |
2021-06-03 | The request parameters of the API has changed | View Change Details |
2021-06-03 | Add Operation | View Change Details |