Resource for clustering support
Get clustering information
media type | data type | description |
---|---|---|
application/json | ClusterInfo (JSON) | clustering information response |
GET /cluster/info Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
{
"feature" : true,
"master" : true,
"started" : true,
"members" : [ "...", "..." ],
"localMember" : {
"uuid" : "...",
"name" : "..."
},
"messages" : [ {
"fieldName" : "...",
"message" : "...",
"type" : "WARNING",
"timestamp" : 12345,
"image" : "...",
"sender" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"id" : 12345
}, {
"fieldName" : "...",
"message" : "...",
"type" : "NEUTRAL",
"timestamp" : 12345,
"image" : "...",
"sender" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"id" : 12345
} ],
"responseInfo" : {
"responseCode" : "NOTLICENSED",
"responseMessage" : "...",
"property" : "..."
}
}
Set this instance as cluster master
media type | data type | description |
---|---|---|
application/json | ClusterInfo (JSON) | clustering information response |
PUT /cluster/master Accept: application/json
HTTP/1.1 204 No Content
Content-Type: application/json
{
"feature" : true,
"master" : true,
"started" : true,
"members" : [ "...", "..." ],
"localMember" : {
"uuid" : "...",
"name" : "..."
},
"messages" : [ {
"fieldName" : "...",
"message" : "...",
"type" : "NEUTRAL",
"timestamp" : 12345,
"image" : "...",
"sender" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"id" : 12345
}, {
"fieldName" : "...",
"message" : "...",
"type" : "INFO",
"timestamp" : 12345,
"image" : "...",
"sender" : {
"id" : 12345,
"firstName" : "...",
"lastName" : "...",
"description" : "...",
"email" : "...",
"groups" : [ { }, { } ],
"login" : "...",
"password" : "..."
},
"id" : 12345
} ],
"responseInfo" : {
"responseCode" : "INVALIDDATA",
"responseMessage" : "...",
"property" : "..."
}
}