POSThttps://api.spotinst.io/aws/ec2/instance/{INSTANCE_ID}/unlock?accountId={ACCOUNT_ID}
Remove the termination protection from specific instance
URL Parameters
Parameter | Type | Description |
---|---|---|
INSTANCE_ID * | String | The instance ID you want to remove the protectection from Example: i-123456 |
ACCOUNT_ID | String | Your Spotinst accountId associated with your token Example: act-123abc |
Request
Headers
{ "Content-Type": "application/json", "Authorization": "Bearer ${token}" }
Response - 200
Headers
{ "Content-Type": "application/json" }
Body
{ "request": { "id": "3213e42e-455e-4901-a185-cc3eb65fac5f", "url": "/gcp/gce/instance/i-123456/unlock", "method": "POST", "time": "2019-02-10T15:49:11.911Z" }, "response": { "status": { "code": 200, "message": "OK" } } }