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

Describe a specific target

Parameter Type Description
TARGET_ID * String

The target id you want to get

Example: t-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"
  },
  "kind": "spotinst:lb:target",
  "items": [
    {
      "id": "t-12345",
      "balancerId": "lb-12345",
      "targetSetId": "ts-12345",
      "name": "target1",
      "address": "http://10.0.0.2:1337",
      "host": "10.0.0.2",
      "port": 1337,
      "weight": 1,
      "status": {
        "healthiness": "HEALTHY",
        "readiness": "MAINTENANCE"
      },
      "healthCheckResponseCode": 200,
      "healthCheckResponseText": "OK",
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ]
    }
  ],
  "count": 1
}