curl --request GET \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_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/gateway/{gateway_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/gateway/{gateway_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 the Load Balancer, with their rules. Needs the Read permission for Load Balancers.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Load Balancer ID
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Responses
Section titled “Responses”The attached security groups
object
object
The security group’s inbound and outbound rules.
object
inbound or outbound.
The protocol choice the rule was made with.
TCP, UDP or All.
The ports the rule covers.
The address the rule covers.
The prefix length that goes with cidr_ip.
any, vpc or manual.
object
Who created it.
object
The services this security group is attached to, as lists grouped by kind.
object
true when an inbound rule opens port 22.
object
Example
{ "code": 200, "message": "Success", "data": [ { "id": 45, "name": "allow-https", "description": "Allows inbound HTTPS", "location": "Delhi", "rules": [ { "id": 88, "rule_type": "inbound", "protocol_type": "AllTraffic", "protocol": "TCP", "ports": [ "443" ], "cidr_ip": "203.0.113.0", "cidr_subnet": 32, "description": "HTTPS from the office", "network_type": "manual", "network_details": {}, "my_account_project_id": null, "my_account_location": null, "vpc_id": null, "created_at": "2026-10-21T11:17:29Z", "updated_at": "2026-10-21T11:17:29Z" } ], "is_ssh_security_group": false, "is_active": true, "created_by": { "id": 101, "name": "A User", "email": "user@example.com", "username": "auser" }, "is_ssh_port_enabled": false, "created_at": "2026-10-21T11:17:29Z", "updated_at": "2026-10-21T11:17:29Z" } ], "errors": {}}project_id is missing or not a number. errors holds the project’s own text.
object
object
Example
{ "code": 400, "message": "Bad Request", "data": {}}No Load Balancer with that ID in the project and region.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Gateway not found"}