fbpx
POSThttps://api.spotinst.io/compute/azure/instance/signal?accountId={ACCOUNT_ID}

The instance signal API is used for notifying Spotinst about the instance state, so Spotinst can act accordingly. Supported signals are: INSTANCE_READY – Whenever this signal is sent, Spotinst will register the instance to the LB

Important: You need to define the expected signals for your Elastigroup in the group configuration.

Body Attributes


Attribute Type Description
instanceId * String

The instance ID the signal refers to.

signal * String

The specific signal you want to trigger. Valid Values: INSTANCE_READY

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!
{
  "instanceId": "i-123456",
  "signal": "INSTANCE_READY"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "request": {
        "id": "1f86b79e-6760-4578-9171-24b34f244b73",
        "url": "/compute/azure/instance/signal?accountId=act-9ba79a4a",
        "method": "POST",
        "timestamp": "2019-01-20T16:03:22.401Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        }
    }
}