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>'import requests
response = requests.get( "https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/security-groups/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/notebooks/autoscale-groups/{group_id}/security-groups/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "GET", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Auto Scaling Group ID
Query Parameters
Section titled “Query Parameters”Project ID
The page number from which you want your page search results to be displayed.
Number of results per page
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Responses
Section titled “Responses”The Security Groups
object
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
inbound or outbound.
AllTraffic, CustomTCP, CustomUDP or SSH.
object
What else the Security Group is attached to, by kind.
object
true when a rule opens inbound port 22.
object
Only when paging.
Only when paging.
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.
object
object
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.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Autoscale Group not found"}