Get user's cluster details
Returns the details of a specific user's cluster.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Get user's cluster details
curl -u username:password -X GET \
https://$ZONE_HOST/api/v3/onezone/user/clusters/$CLUSTER_ID
{
"clusterId": "f8d843beda24e54545455ecc0f4b8886",
"type": "oneprovider",
"workerVersion": {
"release": "25.1",
"build": "1-gfabf02d",
"gui": "129c549fbe9b3e730c3d9910492228566e39e1236945766a74381405cc57fb04"
},
"onepanelVersion": {
"release": "25.1",
"build": "3-89fc6bad",
"gui": "68e7e1472adb719ddf2d88908775091dfb10e5d0b916f06125ea1af4056044e3"
},
"online": true,
"onepanelProxy": false,
"creator": {
"type": "user",
"id": "7434b256e71e1052e0d5e3e9da657ebf"
},
"creationTime": 1576152793
}
Path parameters
| Parameter | Type & Description |
|---|---|
| cid required | string Cluster Id. |
Request Examples
onezone-rest-cli getUserCluster cid=95b663a6467c72ab1256865efef9e387Responses
Details of a specific cluster.
The id of the cluster - depending on the type equal to the Oneprovider Id or "onezone" in case of Onezone cluster
Type of the cluster
workerVersion object (VersionInfo) Service version info.
Service version info.
Release version.
Build number.
GUI version indicated by a SHA256 hash.
onepanelVersion object (VersionInfo) Service version info.
Service version info.
Release version.
Build number.
GUI version indicated by a SHA256 hash.
Is onepanel proxy enabled - if so, onepanel GUI is served on cluster's domain at port 443 (rather than 9443).
creator object (Subject) Object representing a subject in the system, can be perceived as client (actor) identity.
Object representing a subject in the system, can be perceived as client (actor) identity.
Type of the subject
Id of the subject (null for nobody)
Timestamp in seconds (UNIX epoch), e.g. 1563819329.
Example
{
"clusterId": "2c0160248ba9a66f45da751ca459535a",
"type": "oneprovider",
"workerVersion": {
"release": "25.1",
"build": "1-gfabf02d",
"gui": "68e7e1472adb719ddf2d88908775091dfb10e5d0b916f06125ea1af4056044e3"
},
"onepanelVersion": {
"release": "25.1",
"build": "1-gd76fac2",
"gui": "5d9dd608775091dfb10ef2d888e7e14720b916f06125ea1af4056044eadb7193"
},
"onepanelProxy": true,
"creator": {
"type": "user",
"id": "7434b256e71e1052e0d5e3e9da657ebf"
},
"creationTime": 1576152793
}Invalid request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}