Modify cluster details
Updates the details about a cluster.
This operation requires cluster_update privilege
or oz_clusters_update admin privilege.
Example cURL requests
Change cluster name
curl -u username:password -H "Content-type: application/json" \
-X PATCH -d '{"name": "new_cluster12"}' \
https://$HOST/api/v3/onezone/clusters/$CLUSTER_ID
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Cluster Id. |
Request body
Cluster data.
| Property | Type & Description |
|---|---|
proxy boolean Is onepanel proxy enabled - if so, onepanel GUI is served on cluster's domain at port 443 (rather than 9443). | |
Request Examples
{
"proxy": true
}Responses
Cluster has been updated successfully.
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."
}
}