Skip to content

Detach Auto Scaling Group Security Group

DELETE
/notebooks/autoscale-groups/{group_id}/security-groups/{security_group_id}/
curl --request DELETE \
--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>'

Detaches one Security Group from an Auto Scaling Group; the VMs stop using its rules. The last Security Group cannot be detached while the group has SSH keys. 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 detached

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

Example

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

The Security Group is not attached to the group; it is the last one and the group has SSH keys; or the removal 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 not found”, “At least one security group must be attached to the node when SSH is enabled.”, “Security group removal failed”.

string

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Security Group not found"
}

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"
}