Queries the configuration of a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:QueryConfig |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RequestPars |
string |
No |
The extended request parameters in the JSON format. |
{} |
| ClusterId |
string |
No |
The ID of the cluster. |
mse-09k1q11**** |
| ConfigType |
string |
No |
A reserved field. |
null |
| InstanceId |
string |
No |
The ID of the instance. |
mse_prepaid_public_cn-st2212**** |
| NeedRunningConf |
boolean |
No |
Specifies whether to query the runtime configuration. |
true |
| 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 returned. |
The request was successfully processed. |
| RequestId |
string |
The ID of the request. |
8BD1E58D-0755-42AC-A599-E6B55112EC53 |
| Data |
object |
The data overview. |
|
| MaxClientCnxns |
string |
The ZooKeeper configuration. This parameter indicates the number of connections between a client and a server. |
0 |
| ConfigAuthSupported |
boolean |
The Nacos configuration. This parameter indicates whether the configuration center of the current cluster supports RAM authentication. Valid values:
|
true |
| InitLimit |
string |
The ZooKeeper configuration. This parameter indicates the maximum connection duration of an instance. Unit: seconds. |
100 |
| MCPEnabled |
boolean |
The Nacos configuration. This parameter indicates whether Mesh Configuration Protocol (MCP) is enabled. Valid values:
|
true |
| OpenSuperAcl |
boolean |
The ZooKeeper configuration. This parameter indicates whether the super permission is enabled. Valid values:
|
true |
| RestartFlag |
boolean |
Indicates whether the cluster is restarted and the new configuration is applied. Valid values:
|
true |
| JvmFlagsCustom |
string |
A reserved field. |
none |
| AutopurgePurgeInterval |
string |
A reserved field. |
none |
| AutopurgeSnapRetainCount |
string |
A reserved field. |
none |
| SyncLimit |
string |
The ZooKeeper configuration. This parameter indicates the connection timeout duration of an instance. Unit: seconds. |
10 |
| ConfigAuthEnabled |
boolean |
The Nacos configuration. This parameter indicates whether RAM authentication is enabled for the configuration center. Valid values:
|
true |
| ClusterName |
string |
The name of the cluster. |
name |
| MCPSupported |
boolean |
The Nacos configuration. This parameter indicates whether MCP is supported. Valid values:
|
true |
| JuteMaxbuffer |
string |
The ZooKeeper configuration. This parameter indicates the maximum data size of each node. Unit: bytes. |
1 |
| TickTime |
string |
The ZooKeeper configuration. This parameter indicates a unit of time in the engine. The default value is 2000. Unit: milliseconds. |
2000 |
| PassWord |
string |
The password. This parameter is returned only when OpenSuperAcl is set to true. |
password |
| UserName |
string |
The username. This parameter is returned only when OpenSuperAcl is set to true. |
name |
| ConfigSecretSupported |
boolean |
The Nacos configuration. This parameter indicates whether the cluster supports configuration encryption. Valid values:
|
true |
| ConfigSecretEnabled |
boolean |
The Nacos configuration. This parameter indicates whether configuration encryption is enabled for the cluster. Valid values:
|
true |
| NamingAuthEnabled |
boolean |
The Nacos configuration. This parameter indicates whether RAM authentication is enabled for the service registry. Valid values:
|
false |
| NamingAuthSupported |
boolean |
The Nacos configuration. This parameter indicates whether the cluster supports RAM authentication for services. Valid values:
|
true |
| NamingCreateServiceSupported |
boolean |
The Nacos configuration. This parameter indicates whether the cluster supports service creation. Valid values:
|
true |
| MinSessionTimeout |
string |
The ZooKeeper configuration. This parameter indicates the minimum timeout duration. |
-1 |
| MaxSessionTimeout |
string |
The ZooKeeper configuration. This parameter indicates the maximum timeout duration. |
-1 |
| SnapshotCount |
string |
The ZooKeeper configuration. This parameter indicates the frequency of generating snapshots. |
100000 |
| ConfigContentLimit |
integer |
The maximum size of the content of a single configuration. Unit: KB. |
100 |
| NacosRunningEnv |
object |
The runtime configuration of Nacos. |
|
| emptyProtect |
boolean |
The switch for push-empty protection. |
true |
| grayAuth |
string |
||
| ExtendedTypesEnable |
boolean |
The ZooKeeper parameter that specifies whether to enable the TTL configuration. |
true |
| EurekaSupported |
boolean |
Specifies whether to enable port 8761 for access to the Eureka protocol. If you disable this port, applications cannot use the Eureka protocol for service registration and discovery. |
true |
| TLSEnabled |
boolean |
MSE Nacos instances of version 2.1.2.1 or later support Transport Layer Security (TLS) encryption. The version of the Nacos client must be 2.2.1 or later. After you enable TLS, the performance may decrease by about 10%. You must evaluate the system capacity. For more information about the operations, see Nacos TLS transport encryption. |
true |
| ConsoleUIEnabled |
boolean |
Specifies whether to enable the Nacos open source console. |
true |
| Enable4lw |
boolean |
Specifies whether to enable the four-letter words command. |
|
| AuthEnabled |
boolean |
The switch for ZooKeeper SASL-based forced identity authentication. |
|
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
integer |
The result code returned. |
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-E6B55112EC53",
"Data": {
"MaxClientCnxns": "0",
"ConfigAuthSupported": true,
"InitLimit": "100",
"MCPEnabled": true,
"OpenSuperAcl": true,
"RestartFlag": true,
"JvmFlagsCustom": "none",
"AutopurgePurgeInterval": "none",
"AutopurgeSnapRetainCount": "none",
"SyncLimit": "10",
"ConfigAuthEnabled": true,
"ClusterName": "name",
"MCPSupported": true,
"JuteMaxbuffer": "1",
"TickTime": "2000",
"PassWord": "password",
"UserName": "name",
"ConfigSecretSupported": true,
"ConfigSecretEnabled": true,
"NamingAuthEnabled": false,
"NamingAuthSupported": true,
"NamingCreateServiceSupported": true,
"MinSessionTimeout": "-1",
"MaxSessionTimeout": "-1",
"SnapshotCount": "100000",
"ConfigContentLimit": 100,
"NacosRunningEnv": {
"emptyProtect": true,
"grayAuth": ""
},
"ExtendedTypesEnable": true,
"EurekaSupported": true,
"TLSEnabled": true,
"ConsoleUIEnabled": true,
"Enable4lw": true,
"AuthEnabled": true
},
"Success": true,
"Code": 200,
"HttpStatusCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %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.