Get cluster details
Returns the details about a specific cluster.
This operation requires membership in the cluster or
oz_clusters_view admin privilege.
Example cURL requests
Get cluster details
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/clusters/$CLUSTER_ID
{
"clusterId" : "f8d843beda24e54545455ecc0f4b8886",
"type" : "oneprovider",
"workerVersion": {
"release": "20.02.1",
"build": "1-gfabf02d",
"gui": "129c549fbe9b3e730c3d9910492228566e39e1236945766a74381405cc57fb04"
},
"onepanelVersion": {
"release": "20.02.1",
"build": "3-89fc6bad",
"gui": "68e7e1472adb719ddf2d88908775091dfb10e5d0b916f06125ea1af4056044e3"
},
"online" : true,
"onepanelProxy" : false
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Cluster Id. |
Request Examples
onezone-rest-cli getCluster id=b752ceafabb662b4e5728b2ded25cdd1Responses
Information about a cluster.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
clusterId string The id of the cluster - depending on the type equal to the Oneprovider Id or "onezone" in case of Onezone cluster | |||||||
type string Type of the cluster Enum: oneprovideronezone | |||||||
workerVersion object (VersionInfo) Service version info.
| |||||||
onepanelVersion object (VersionInfo) Service version info.
| |||||||
onepanelProxy boolean Is onepanel proxy enabled - if so, onepanel GUI is served on cluster's domain at port 443 (rather than 9443). | |||||||
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}