Get Cluster

JFrog Security User Guide

ft:sourceType
Ftml

Description: Retrieve a list of nodes and cluster information for a given ID

Security: Admin

Usage: GET /runtime/api/v1/cluster/{id}

Produces: application/json

Response body

NameTypeDescription
clusterclusterObjA cluster object containing details of each cluster.

paginationObj:

NameTypeDescription
limitintKey-based pagination - number of rows per request
next_keystringId from the previous request, empty on the first request

clusterObj:

NameTypeDescription
monitored_atstring (ISO 8601)Timestamp when the monitoring of the cluster started
idstringUnique identifier for the cluster in the system. (this is the cluster_identifier)
namestringThe name of the cluster.
controller_versionstringThe version of the cluster controller.
controller_statusstringPossible options: running, stopped
controller_last_updatedstringDate of last update
providerstringThe cloud provider where the cluster is hosted (e.g., aws).
regionsArray[string]List of regions in which the cluster is deployed.
nodes_countintThe total number of nodes in the cluster.
nodesArray[nodeObj]A list of associated node objects for the cluster.

nodeObj:

NameTypeDescription
idintUnique identifier for the node.
monitored_atstring (ISO 8601)Timestamp when the monitoring of node started
namestringThe hostname of the node.
sensor_installedbooleanIndicates whether the sensor is installed on the node.
sensor_last_updatedstring (ISO 8601)Timestamp of when the sensor was last updated.
sensor_versionstringVersion of the installed sensor.
regionstringRegion where the node is located.
architecturestringThe architecture of the node (e.g., amd64).
hostnamestringThe hostname of the node.
internal_dnsstringInternal DNS name of the node.
internal_ipstringInternal IP address of the node.
statusstringnodes status: monitored | monitored_with_sensor | failed | installation_failed | disabled

Response codes:

Status codeDescription
200OK
400Bad request - Required fields are missing
403Permission denied
404Not found
500Internal server error

Request URL :

GET /runtime/api/v1/cluster/{id}

Example successful response

200 OK
{
   "cluster": {
       "controller_last_updated": "2024-12-31T11:30:20.377448Z",
       "controller_status": "running",
       "controller_version": "0.0.0",
       "disabled_nodes_count": 0,
       "failed_nodes_count": 0,
       "failed_to_install_nodes_count": 0,
       "id": 2,
       "monitored_at": "2024-12-25T12:28:13.438479Z",
       "name": "z0runtime",
       "nodes": [
           {
               "architecture": "amd64",
               "hostname": "ip-10-90-99-192",
               "id": 10,
               "internal_dns": "",
               "internal_ip": "10.90.99.192",
               "monitored_at": "2024-12-25T12:28:13.586002Z",
               "name": "ip-10-90-99-192",
               "region": "",
               "sensor_installed": true,
               "sensor_last_updated": "2024-12-31T11:30:23.579048Z",
               "sensor_version": "0.0.0-20241224065042-65402c9bec33-43",
               "status": "running_with_sensors"
           },
           {
               "architecture": "amd64",
               "hostname": "ip-10-90-110-75",
               "id": 7,
               "internal_dns": "",
               "internal_ip": "10.90.110.75",
               "monitored_at": "2024-12-25T12:28:13.555669Z",
               "name": "ip-10-90-110-75",
               "region": "",
               "sensor_installed": true,
               "sensor_last_updated": "2024-12-31T11:30:25.450216Z",
               "sensor_version": "0.0.0-20241224065042-65402c9bec33-43",
               "status": "running_with_sensors"
           },
           {
               "architecture": "arm64",
               "hostname": "ip-10",
               "id": 9,
               "internal_dns": "",
               "internal_ip": "10.90.98.85",
               "monitored_at": "2024-12-25T12:28:13.576732Z",
               "name": "ip-10-90-98-85",
               "region": "",
               "sensor_installed": true,
               "sensor_last_updated": "2024-12-31T11:30:27.109623Z",
               "sensor_version": "0.0.0",
               "status": "running_with_sensors"
           },
           {
               "architecture": "amd64",
               "hostname": "ip-10",
               "id": 8,
               "internal_dns": "",
               "internal_ip": "10.90.124",
               "monitored_at": "2024-12-25T12:28:13.566903Z",
               "name": "ip-10-90-124-154",
               "region": "",
               "sensor_installed": true,
               "sensor_last_updated": "2024-12-31T11:30:24.598452Z",
               "sensor_version": "0.0.0",
               "status": "running_with_sensors"
           }
       ],
       "nodes_count": 4,
       "provider": "kubernetes",
       "regions": [],
       "running_nodes_count": 4
   }
}

Example error response:

404 Not Found
{
    "error": "error message"
}