fbpx
GEThttps://api.spotinst.io/loadBalancer/targetSet?accountId={ACCOUNT_ID}

Describe all the target sets and their full JSONs

URL Parameters

Parameter Type Description
ACCOUNT_ID String

Account ID from Spotinst Console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "kind": "spotinst:lb:targetSet",
  "items": [{
    "id": "ts-12345",
    "deploymentId": "de-12345",
    "name": "targetSet1",
    "balancerId": "lb-5470a9fb",
    "protocol": "HTTP",
    "port": null,
    "weight": 1,
    "healthCheck": {
        "interval" : 10,
        "path": "/healthCheck",
        "port": 80,
        "protocol": "HTTP",
        "timeout": 5,
        "healthyThresholdCount": 2,
        "unhealthyThresholdCount": 3
    },
    "tags": [{
        "key": "Environment",
        "value": "Production"
    }]
    },
    {
    "id": "ts-54321",
    "deploymentId": "de-54321",
    "name": "targetSet2",
    "balancerId": "lb-5470a9fb",
    "protocol": "HTTP",
    "port": null,
    "weight": 1,
    "healthCheck": {
        "interval" : 10,
        "path": "/healthCheck",
        "port": 80,
        "protocol": "HTTP",
        "timeout": 5,
        "healthyThresholdCount": 2,
        "unhealthyThresholdCount": 3
    },
    "tags": [{
        "key": "Environment",
        "value": "Production"
    }]
    }
  ],
  "count": 2
}