Updates the configurations of an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RequestPars |
string |
No |
The extended request parameter in the JSON format. |
{} |
| ClusterId |
string |
No |
The cluster ID. |
mse-09k1q11**** |
| ConfigType |
string |
No |
The format of the configurations. Supported formats include TEXT, JSON, XML, and HTML. |
TEXT |
| TickTime |
string |
No |
The time unit. This parameter is valid for ZooKeeper instances. Default value: 2000. Unit: milliseconds. |
2000 |
| InitLimit |
string |
No |
The maximum connection duration of the instance. This parameter is valid for ZooKeeper instances. Unit: seconds. |
100 |
| SyncLimit |
string |
No |
The connection timeout period of the instance. This parameter is valid for ZooKeeper instances. Unit: seconds. |
10 |
| MaxClientCnxns |
string |
No |
The number of connections between a single client and a single server in ZooKeeper configuration. |
0 |
| OpenSuperAcl |
string |
No |
Specifies whether super permissions are enabled. This parameter is valid for ZooKeeper instances. Valid values:
|
true |
| UserName |
string |
No |
The username of the account. Note
This parameter is required when OpenSuperAcl is set to true. |
name |
| PassWord |
string |
No |
The password of the account. Note
This parameter is required when OpenSuperAcl is set to true. |
password |
| JuteMaxbuffer |
string |
No |
The maximum amount of data on each node. This parameter is valid for ZooKeeper instances. Unit: bytes. |
1048575 |
| AutopurgePurgeInterval |
string |
No |
The reserved field. |
none |
| AutopurgeSnapRetainCount |
string |
No |
The reserved field. |
none |
| ConfigAuthEnabled |
boolean |
No |
Specifies whether to enable RAM authentication for the configuration center in Nacos:
Note
Before you set this parameter, call the QueryConfig operation to obtain the ConfigAuthSupported parameter to check whether the current cluster supports this feature. |
true |
| NamingAuthEnabled |
boolean |
No |
Specifies whether to enable RAM authentication for the Accreditation Centre in Nacos:
Note
Before you set this parameter, call the QueryConfig operation to obtain the NamingAuthSupporte parameter to check whether the current cluster supports this feature. |
true |
| MCPEnabled |
boolean |
No |
Specifies whether MCP is enabled in Nacos configuration. Valid values:
Note
Before you set this parameter, call the QueryConfig operation to obtain the MCPSupported parameter to check whether the current cluster supports this feature. |
true |
| InstanceId |
string |
No |
The instance ID. |
mse_prepaid_public_cn-st2212**** |
| ConfigSecretEnabled |
boolean |
No |
Specifies whether to enable the configuration encryption feature for the configuration center in Nacos. Valid values:
Note
Before you set this parameter, call the QueryConfig operation to obtain the ConfigSecretSupported parameter to check whether the current cluster supports this feature. |
true |
| MinSessionTimeout |
string |
No |
The minimum timeout period in ZooKeeper configuration. Unit: seconds. |
10 |
| MaxSessionTimeout |
string |
No |
The maximum timeout period in ZooKeeper configuration. Unit: seconds. |
1000 |
| SnapshotCount |
string |
No |
The frequency at which snapshots are generated in ZooKeeper configuration |
100000 |
| ExtendedTypesEnable |
string |
No |
Specifies whether to enable TTL configuration in ZooKeeper parameters. |
true |
| EurekaSupported |
boolean |
No |
Specifies whether to enable Eureka protocol support in Nacos |
true |
| TLSEnabled |
boolean |
No |
Specifies whether to enable TLS transmission link encryption in Nacos |
true |
| ConsoleUIEnabled |
boolean |
No |
Specifies whether to enable the Nacos open-source console |
|
| Enable4lw |
boolean |
No |
Specifies whether to enable the four-character command access feature |
|
| AuthEnabled |
boolean |
No |
Specifies whether to enable forced Simple Authentication and Security Layer (SASL) authentication. After this feature is enabled, clients that do not perform SASL authentication cannot access the cluster |
|
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
The data structure. |
||
| Message |
string |
The message. |
The request was successfully processed. |
| RequestId |
string |
The request ID. |
8BD1E58D-0755-42AC-A599-E6B55112**** |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Code |
integer |
The return code. |
200 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
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 |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.