集群服务配置请求

集群服务配置请求

Redis 企业软件
方法 路径 描述
获取 /v1/cluster/services_configuration 获取群集服务设置
/v1/cluster/services_configuration 更新集群服务设置

获取集群服务配置

GET /v1/cluster/services_configuration

获取集群服务设置。

所需权限

权限名称
view_cluster_info

请求

HTTP 请求示例

GET /v1/cluster/services_configuration 

请求标头

钥匙 价值 描述
主机 cnm.cluster.fqdn 中 域名
接受 应用程序/JSON 接受的媒体类型

响应

返回一个 services 配置对象

示例 JSON 正文

{
     "cm_server": {
         "operating_mode": "disabled"
     },
     "mdns_server": {
         "operating_mode": "enabled"
     },
     "// additional services..."
}

Status codes

Code Description
200 OK No error

Update cluster services configuration

PUT /v1/cluster/services_configuration

Update the cluster services settings.

Required permissions

Permission name
update_cluster

Request

Example HTTP request

PUT /v1/cluster/services_configuration 

Example JSON body

{
     "cm_server": {
         "operating_mode": "disabled"
     },
     "// additional services..."
}

Request headers

Key Value Description
Host cnm.cluster.fqdn Domain name
Accept application/json Accepted media type

Request body

Include a services configuration object with updated fields in the request body.

Response

Returns the updated services configuration object.

Example JSON body

{
     "cm_server": {
         "operating_mode": "disabled"
     },
     "mdns_server": {
         "operating_mode": "enabled"
     },
     "// additional services..."
}

Status codes

Code Description
200 OK No error
RATE THIS PAGE
Back to top ↑