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

Describe a specific target sets

URL Parameters

Parameter Type Description
TARGET_SET_ID * String

The target set id you want to get

Example: ts-12345
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"
  },
  "count": "1",
  "items": [
    {
      "id": "ts-12345",
      "name": "targetSet1",
      "balancerId": "lb-5470a9fb",
      "deploymentId": "de-12345",
      "protocol": "HTTP",
      "weight": 1,
      "healthCheck": {
        "interval": 10,
        "path": "/healthCheck",
        "port": 80,
        "protocol": "HTTP",
        "timeout": 5,
        "healthyThresholdCount": 2,
        "unhealthyThresholdCount": 3
      },
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ]
    }
  ]
}