fbpx
PUThttps://api.spotinst.io/compute/azure/group/{GROUP_ID}/detachInstances?accountId={ACCOUNT_ID}

 

       Detach Instances in Elastigroup cluster

URL Parameters

Parameter Type Description
GROUP_ID * String

The ID of the Elastigroup to list.

ACCOUNT_ID * String

Your Spotinst accountid associated with your token

Example: act-123abc
Request

Headers
{  
   "Content-Type": "application/json",
   "Authorization": "Bearer ${token}" 
}
Body
Copied!
Downloaded!
{
	"instancesToDetach":["instance1","instance2"],
	"shouldDecrementTargetCapacity":true,
	"drainingTimeout": 300
}

Boday Parameters


  • instancesToDetach Array<String>
    Names of instances to detach.
  • shouldDecrementTargetCapacity Boolean
    Prevent Elastigroup from scaling back to target capacity when instances are detached.
  • drainingTimeout String
    The time in seconds to allow the instance be drained from incoming TCP connections and detached from MLB before terminating it
    Default: 300
Response - Response: 200

Body
Copied!
Downloaded!
{
	"detachedOd": ["ODinstance1","ODinstance2"],
	"detachedLowPriority": ["LPinstance1","LPinstance2"]
}