Skip to content

List Load Balancer Security Groups

GET
/gateway/{gateway_id}/security-groups/
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>'

Returns the security groups attached to the Load Balancer, with their rules. Needs the Read permission for Load Balancers.

gateway_id
required
integer

Load Balancer 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

The attached security groups

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

The security group’s inbound and outbound rules.

Array<object>
object
id
integer
rule_type

inbound or outbound.

string
Allowed values: inbound outbound
protocol_type

The protocol choice the rule was made with.

string
Allowed values: AllTraffic CustomTCP CustomUDP SSH
protocol

TCP, UDP or All.

string
nullable
Allowed values: TCP UDP All
ports

The ports the rule covers.

Array<string>
cidr_ip

The address the rule covers.

string
nullable
cidr_subnet

The prefix length that goes with cidr_ip.

integer
description
string
nullable
network_type

any, vpc or manual.

string
network_details
object
my_account_project_id
integer
nullable
my_account_location
string
nullable
vpc_id
integer
nullable
created_at
string
updated_at
string
is_ssh_security_group
boolean
is_active
boolean
created_by

Who created it.

object
id
integer
name
string
email
string
username
string
attached_services

The services this security group is attached to, as lists grouped by kind.

object
is_ssh_port_enabled

true when an inbound rule opens port 22.

boolean
created_at
string
updated_at
string
errors
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.

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

Example

{
"code": 400,
"message": "Bad Request",
"data": {}
}

No Load Balancer 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": "Gateway not found"
}