fbpx
GEThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/beanstalk/maintenance/status?accountId={ACCOUNT_ID}

Get the group maintenance status. If ACTIVE, putting the group in maintenance mode is allowed. If AWAIT_USER_UPDATE, the group is pending for manually finishing maintenance mode.

 

URL Parameters

Parameter Type Description
GROUP_ID * Integer

The Elastigroup id you want to query

Example: sig-12345
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
Copied!
Downloaded!
{
    "request": {
        "url": "/aws/ec2/group/sig-12345/beanstalk/maintenance/status?accountId=act-12345",
        "method": "GET"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:aws:ec2:beanstalk:status",
        "items": [
            {
                "status": "AWAIT_USER_UPDATE"
            }
        ],
        "count": 1
    }
}