Skip to content

Attach One Auto Scaling Group Security Group

POST
/notebooks/autoscale-groups/{group_id}/security-groups/{security_group_id}/
curl --request POST \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/security-groups/{security_group_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Attaches one Security Group to an Auto Scaling Group; its rules then apply to the VMs. To attach several at once, use Attach Auto Scaling Group Security Groups. Needs the permission to update.

group_id
required
integer

Auto Scaling Group ID

security_group_id
required
integer

Security Group ID

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

Security Group attached

Media typeapplication/json
object
code
integer
message
string
data
string
errors
object

Example

{
"code": 200,
"message": "Success",
"data": "Security group addition successful",
"errors": {}
}

The Security Group is already attached, does not exist in the project and region, or the attach failed. errors is “Project ID is missing or invalid” when project_id is missing or not a number.

Media typeapplication/json
object
code
integer
message
string
data
object
errors

One of: “Security group already exists”, “Security Group not found”, “Security group addition failed”.

string

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Security group already exists"
}

No Auto Scaling Group with that ID in the project and region.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 404,
"message": "Bad Request",
"data": {},
"errors": "Autoscale Group not found"
}