This API request configures cluster nodes responsibilities.
To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/v1.0/onpremise/cluster/configuration
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Cluster | List of nodes for which responsibilities should be changed | body | required |
ClusterNodesConfigDtoNodeResponsibilitiesConfigDto object| Element | Type | Description | Required |
|---|---|---|---|
| clusterNodes | Node | - | optional |
NodeResponsibilitiesConfigDto object| Element | Type | Description | Required |
|---|---|---|---|
| agent | boolean | - | optional |
| id | integer | - | optional |
| webUI | boolean | - | optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"clusterNodes": [{"agent": true,"id": 1,"webUI": true}]}
| Code | Description |
|---|---|
| 200 | Success |
In this example, we disable Web UI traffic at a node 1. You can check the status of the operation with the Get cluster nodes configuration current status API call.
curl -X POST "https://myManaged.cluster.com/api/v1.0/onpremise/cluster/configuration" -H "accept: */*" -H "Content-Type: application/json" -d "{\"clusterNodes\":[{\"id\":1,\"ipAddress\":\"10.10.4.2\",\"webUI\":false,\"agent\":true,\"datacenter\":\"datacenter-1\",\"kubernetesRole\":\"\"}]}"
https://myManaged.cluster.com/api/v1.0/onpremise/cluster/configuration
{"clusterNodes": [{"id": 1,"ipAddress": "10.10.4.2","webUI": false,"agent": true,"datacenter": "datacenter-1","kubernetesRole": ""}]}
{"lockAcquired": true,"acquirationTime": 1619771074449,"notAcquiredReason": null}
200