ClusterResource Resource

Resource for clustering support

GET /cluster/info

Get clustering information

Response Body
media type data type description
application/json ClusterInfo (JSON) clustering information response

Example

Request
GET /cluster/info
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "feature" : true,
  "master" : true,
  "started" : true,
  "members" : [ "...", "..." ],
  "localMember" : {
    "uuid" : "...",
    "name" : "..."
  },
  "messages" : [ { }, { } ],
  "responseInfo" : {
    "responseCode" : "OK",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /cluster/master

Set this instance as cluster master

Response Body
media type data type description
application/json ClusterInfo (JSON) clustering information response

Example

Request
PUT /cluster/master
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "feature" : true,
  "master" : true,
  "started" : true,
  "members" : [ "...", "..." ],
  "localMember" : {
    "uuid" : "...",
    "name" : "..."
  },
  "messages" : [ { }, { } ],
  "responseInfo" : {
    "responseCode" : "OK",
    "responseMessage" : "...",
    "property" : "..."
  }
}