• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v1
  • Cluster v1
  • Configure cluster nodes responsibilities

Configure cluster nodes responsibilities

This API request configures cluster nodes responsibilities.

Authentication

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.

Endpoint

/api/v1.0/onpremise/cluster/configuration

Parameter

ParameterTypeDescriptionInRequired
bodyClusterNodesConfigDto-bodyoptional

Request body objects

The ClusterNodesConfigDto object

ElementTypeDescriptionRequired
clusterNodesNodeConfigDto[]-optional

The NodeConfigDto object

ElementTypeDescriptionRequired
idinteger-optional
webUIboolean-optional
agentboolean-optional
datacenterstring-optional
kubernetesRolestring-optional

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

json
{ "clusterNodes": [ { "id": 1, "webUI": true, "agent": true, "datacenter": "string", "kubernetesRole": "string" } ] }

Response

Response codes

CodeDescription
200

Success

Example

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

bash
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\":\"\"}]}"

Request URL

plaintext
https://myManaged.cluster.com/api/v1.0/onpremise/cluster/configuration

Request body

json
{ "clusterNodes": [ { "id": 1, "ipAddress": "10.10.4.2", "webUI": false, "agent": true, "datacenter": "datacenter-1", "kubernetesRole": "" } ] }

Response body

json
{ "lockAcquired": true, "acquirationTime": 1619771074449, "notAcquiredReason": null }

Response code

200