fbpx
PUThttps://api.spotinst.io/aws/ec2/group/{GROUP_ID}/beanstalk/reimport?accountId={ACCOUNT_ID}

Re-import the beanstalk configuration

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": {
    "id": "6daf7587-3bfd-4d93-9d84-16b516f173e9",
    "url": "/aws/ec2/group/sig-123456/beanstalk/reimport",
    "method": "PUT",
    "timestamp": "2017-03-30T08:14:30.976Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:group",
    "items": [
      {
        "id": "sig-123456",
        "compute": {
          "launchSpecification": {
            "securityGroupIds": [
              "sg-b75343cf"
            ],
            "monitoring": false,
            "imageId": "ami-3c873e5c",
            "iamRole": {
              "name": "aws-elasticbeanstalk-ec2-role"
            },

            "userData": "Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT01MTg5MDY1Mzc3MjIyODk4NDA3PT0iCk1JTUUtVmVyc2lvbjogMS4wCgotLT09PT09PT09PT09PT09PTUxODkwNjUzNzcyMjI4OTg0MDc9PQpDb250ZW50LVR5cGU6IHRleHQvY2xvdWQtY29uZmlnOyBjaGFyc2V0PSJ1cy1hc2NpaSIKTUlNRS1WZXJzaW9uOiAxLjAKQ29udGV",
            "blockDeviceMappings": [
              {
                "deviceName": "/dev/xvdcz",
                "ebs": {
                  "deleteOnTermination": true,
                  "volumeSize": 12,
                  "volumeType": "gp2"
                }
              }
            ]
          }
        }
      }
    ],

"count": 1
  }
}