查询集群配置信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:QueryConfig |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RequestPars |
string |
否 |
扩展请求参数,JSON 格式。 |
{} |
| ClusterId |
string |
否 |
集群 ID。 |
mse-09k1q11**** |
| ConfigType |
string |
否 |
预留字段。 |
null |
| InstanceId |
string |
否 |
实例 ID。 |
mse_prepaid_public_cn-st2212**** |
| NeedRunningConf |
boolean |
否 |
是否需要运行时配置。 |
true |
| AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
数据结构。 |
||
| Message |
string |
信息。 |
请求处理成功 |
| RequestId |
string |
请求 ID。 |
8BD1E58D-0755-42AC-A599-E6B55112EC53 |
| Data |
object |
数据概览。 |
|
| MaxClientCnxns |
string |
zookeeper 配置,单个客户端与单台服务器之间的连接数。 |
0 |
| ConfigAuthSupported |
boolean |
nacos 配置,当前集群的配置中心是否支持 RAM 鉴权,取值如下:
|
true |
| InitLimit |
string |
zookeeper 配置,实例最长连接时间,单位:秒。 |
100 |
| MCPEnabled |
boolean |
nacos 配置,MCP 是否生效,取值如下:
|
true |
| OpenSuperAcl |
boolean |
zookeeper 配置,超级权限开关,取值如下:
|
true |
| RestartFlag |
boolean |
当前集群是否已重启并应用新配置,取值如下:
|
true |
| JvmFlagsCustom |
string |
保留字段 |
none |
| AutopurgePurgeInterval |
string |
保留字段。 |
none |
| AutopurgeSnapRetainCount |
string |
保留字段。 |
none |
| SyncLimit |
string |
zookeeper 配置,实例连接超时时间,单位:秒。 |
10 |
| ConfigAuthEnabled |
boolean |
nacos 配置,是否开启配置中心 ram 鉴权,取值如下:
|
true |
| ClusterName |
string |
集群名称。 |
name |
| MCPSupported |
boolean |
nacos 配置,MCP 是否支持,取值如下:
|
true |
| JuteMaxbuffer |
string |
zookeeper 配置,每个节点最大数据量,单位:字节。 |
1 |
| TickTime |
string |
zookeeper 配置,引擎中的一个时间单元,默认为 2000 毫秒。 |
2000 |
| PassWord |
string |
用户密码。当 OpenSuperAcl 为 true 时,展示此值。 |
password |
| UserName |
string |
用户名称。当 OpenSuperAcl 为 true 时,展示此值。 |
name |
| ConfigSecretSupported |
boolean |
nacos 配置,当前集群是否支持配置中心配置加密,取值如下:
|
true |
| ConfigSecretEnabled |
boolean |
nacos 配置,当前集群是否开启配置中心配置加密,取值如下:
|
true |
| NamingAuthEnabled |
boolean |
nacos 配置,是否开启注册中心 ram 鉴权:
|
false |
| NamingAuthSupported |
boolean |
nacos 配置,当前集群是否支持服务 RAM 鉴权,取值如下:
|
true |
| NamingCreateServiceSupported |
boolean |
nacos 配置,当前集群是否支持创建服务,取值如下:
|
true |
| MinSessionTimeout |
string |
zookeeper 配置,最小超时时间。 |
-1 |
| MaxSessionTimeout |
string |
zookeeper 配置,最大超时时间。 |
-1 |
| SnapshotCount |
string |
zookeeper 配置,生成快照的频率 |
100000 |
| ConfigContentLimit |
integer |
单个配置的配置内容大小上限(单位:KB)。 |
100 |
| NacosRunningEnv |
object |
nacos 运行时配置。 |
|
| emptyProtect |
boolean |
推空保护开关。 |
true |
| grayAuth |
string |
||
| ExtendedTypesEnable |
boolean |
zookeeper 参数,是否开启 TTL 配置。 |
true |
| EurekaSupported |
boolean |
是否打开 Eureka 协议的访问端口 8761。关闭此端口,应用将无法使用 Eureka 协议进行服务注册发现。 |
true |
| TLSEnabled |
boolean |
MSE Nacos 从 2.1.2.1 版本开始支持 TLS 传输链路加密,nacos-client 需升级至 2.2.1 及以上版本,开启 TLS 后,会有 10%左右性能下降,请合理评估系统容量水位,操作指引详见 Nacos TLS 传输加密. |
true |
| ConsoleUIEnabled |
boolean |
是否开始 Nacos 开源控制台 |
true |
| Enable4lw |
boolean |
是否开启四字命令 |
true |
| AuthEnabled |
boolean |
ZooKeeper sasl 强制身份认证开关 |
true |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Code |
integer |
返回结果码。 |
200 |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
示例
正常返回示例
JSON格式
{
"Message": "请求处理成功",
"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
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。