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

Deregister the specified targets from the specified target set.

URL Parameters

Parameter Type Description
TARGET_SET_ID * String

The target set id

Example: ts-12345
ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request - Register Targets

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
    "targets":[{
      "id":"t-12345"
     },
     {
      "id":"t-abcde"
     }]
  }

Body Attributes


  • targets.id String
    The ID of the Target
    Example: t-12345
Response - 200

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "status": {
      "code": 200,
      "message": "OK"
  }
}