Skip to content

List Auto Scaling Group Security Groups

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

Returns the Security Groups attached to an Auto Scaling Group. They apply to every VM in the group. Send page_no and per_page together to get the list in pages; without both, every Security Group comes back.

group_id
required
integer

Auto Scaling Group ID

project_id
required
integer

Project ID

page_no
integer

The page number from which you want your page search results to be displayed.

per_page
integer

Number of results per page

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

The Security Groups

Media typeapplication/json
object
code
integer
message
string
data
Array<object>
object
id
integer
name
string
description
string
location
string
rules
Array<object>

A rule. It also has protocol, cidr_subnet, network_type, network_details, my_account_project_id, my_account_location, vpc_id, created_at and updated_at.

object
id
integer
rule_type

inbound or outbound.

string
protocol_type

AllTraffic, CustomTCP, CustomUDP or SSH.

string
ports
Array<string>
cidr_ip
string
nullable
description
string
is_ssh_security_group
boolean
is_active
boolean
created_by
object
id
integer
name
string
email
string
username
string
attached_services

What else the Security Group is attached to, by kind.

object
is_ssh_port_enabled

true when a rule opens inbound port 22.

boolean
created_at
string
updated_at
string
errors
object
total_page_number

Only when paging.

integer
total_count

Only when paging.

integer

Example

{
"code": 200,
"message": "Success",
"data": [
{
"id": 45,
"name": "allow-ssh",
"description": "Allows inbound SSH on port 22",
"location": "Delhi",
"rules": [
{
"id": 101,
"rule_type": "inbound",
"protocol_type": "SSH",
"ports": [
"22"
],
"cidr_ip": "0.0.0.0/0",
"description": "SSH"
}
],
"is_ssh_security_group": true,
"is_active": true,
"created_by": {
"id": 1,
"name": "A User",
"email": "user@example.com",
"username": "auser"
},
"attached_services": {},
"is_ssh_port_enabled": true,
"created_at": "2026-09-30T08:12:00Z",
"updated_at": "2026-09-30T08:12:00Z"
}
],
"errors": {},
"total_page_number": 1,
"total_count": 1
}

project_id is missing or not a number.

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

Example

{
"code": 400,
"message": "Bad Request",
"data": {},
"errors": "Project ID is missing or invalid"
}

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