Get cluster information about known cluster nodes
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call retrieves cluster information about known nodes.
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
Parameter
The request doesn't provide any configurable parameters.
Response
Response codes
Code | Type | Description |
---|---|---|
200 | Cluster[] | Success |
Response body objects
The ResponseBody
object
The Cluster
object
Element | Type | Description |
---|---|---|
buildVersion | string | Server version |
clusterMemberAddress | string | Cluster member address |
communicationUris | string[] | Communication URIs |
dnsEntryPointUris | string[] | DNS entry point URIs |
id | integer | Node ID |
jvmInfo | string | JVM info |
operationState | string | Operation state |
osInfo | string | OS info |
restServiceRootUris | string[] | REST service root URIs |
Response body JSON model
1[2 {3 "buildVersion": "string",4 "clusterMemberAddress": "string",5 "communicationUris": [6 "string"7 ],8 "dnsEntryPointUris": [9 "string"10 ],11 "id": 1,12 "jvmInfo": "string",13 "operationState": "string",14 "osInfo": "string",15 "restServiceRootUris": [16 "string"17 ]18 }19]
Example
In this example, the request queries the cluster for the current deployment configuration and status. The cluster then returns information about each cluster node in an array. Each cluster node object then contains its id, status, communication addresses and host environment details.
Curl
1curl -X GET "https://myManaged.cluster.com/api/v1.0/onpremise/cluster" -H "accept: application/json"
Request URL
1https://myManaged.cluster.com/api/v1.0/onpremise/cluster
Response body
1[2 {3 "id": 1,4 "clusterMemberAddress": "10.10.4.2:5701",5 "operationState": "RUNNING",6 "buildVersion": "1.216.10.20210429-124335",7 "osInfo": "Platform: Linux, Version: 5.4.0-1041, Architecture: amd64, Processors: 16",8 "jvmInfo": "VM: OpenJDK 64-Bit Server VM, Version: 11.0.8, Vendor: AdoptOpenJDK, Memory [maxMemory=17408M, initHeap=17408M, maxHeap=17408M, usedMeta=17M, committedMeta=17M, totalPhysicalMemory=62851M, freePhysicalMemory=14336M]",9 "dnsEntryPointUris": [],10 "restServiceRootUris": [11 "https://ip-10-10-4-2.eu-west-1.compute.internal:8021/api/v1.0",12 "https://10.10.4.2:8021/api/v1.0"13 ],14 "communicationUris": [15 "http://ip-10-10-4-2.eu-west-1.compute.internal:8020/communication",16 "http://10.176.42.242:8020/communication"17 ]18 },1920 ...2122]
Response code
200