List registered K8s agents
GET
/k8s/agents
const url = 'https://shoehorn.example.com/api/v1/k8s/agents';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://shoehorn.example.com/api/v1/k8s/agentsResponses
Section titled “ Responses ”List of registered agents
Media type application/json
object
agents
Array<object>
object
cluster_id
string
display_name
string
environment
string
region
string
status
string
last_heartbeat
string format: date-time
agent_version
string
node_count
integer
workload_count
integer
created_at
string format: date-time
Example
{ "agents": [ { "status": "active" } ]}