fbpx
POSThttps://api.spotinst.ioaws/ec2/group/instance/import?region={REGION}&instanceId={INSTANCE_ID}&accountId={ACCOUNT_ID}

Import an EC2 instance into a new Elastigroup.

URL Parameters

Parameter Type Description
REGION * String

The AWS region to create the new Elastigroup in.

INSTANCE_Id * String

Enter the AWS instance Id of the instance to import.

ACCOUNT_ID * String

Enter the Spotinst account in which to create the new Elastigroup

Request

Headers
{
	"Authorization": "Bearer ${token}",
	"Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "group": {
    "name": "myElastigroup",
    "spotInstanceTypes": ["m3.large","c3.large"]
  }
}
Attribute Type Description
group * Object

group.name * String

The name of the new Elastigroup

group.spotInstanceTypes String

Optionally provide a list of spot instance types to improve spot market availability for the Elastigroup. Overrides the imported instance type.