Configure cluster nodes responsibilities

The ServiceProviderAPI (Service Provider API) Api-Token scope is required to get the default realm password policy configuration using the Dynatrace API.

Endpoint

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

Parameter

Parameter Type Description In Required
body ClusterNodesConfigDto body optional

Body format

The ClusterNodesConfigDto object

Element Type Description Required
clusterNodes NodeConfigDto[] optional

The NodeConfigDto object

Element Type Description Required
id integer optional
webUI boolean optional
agent boolean optional
datacenter string optional
kubernetesRole string optional

Response

Response codes

Code Description
200

Success

Response body

A successful request doesn't return any content.

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

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

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

Request body

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

Response body

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

Response code

200