Skip to content

List Security Groups Attached to a Node

GET
/api/v1/security_group/{node_id}/attach/
curl --request GET \
--url 'https://api.e2enetworks.com/myaccount/api/v1/security_group/{node_id}/attach/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>'

Returns the security groups currently attached to a cluster node - each group’s id, name, description, and its inbound/outbound rules. The path takes a node id (from the cluster’s node_id_list, e.g. the master node).

node_id
required
integer

The id of a cluster node (from node_id_list in List / Detail).

Example

320000
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request.

Example

<API_KEY>
location
required
string

Region of the cluster.

Example

<LOCATION>

Successful response

Media typeapplication/json
object
code
integer
data

Security groups attached to the node.

Array<object>
object
id
integer
name
string
description
string
rules
Array<object>
object
id
integer
rule_type
string
protocol_name
string
port_range
string
network
string
network_cidr
string
is_default
boolean
is_all_traffic_rule
boolean
is_active
boolean
inbound_rules_count
integer
outbound_rules_count
integer
errors
object
message
string

Example

{
"code": 200,
"data": [
{
"id": 12345,
"name": "allow_all_traffic_delhi",
"description": "allow all traffic security group delhi",
"rules": [
{
"id": 1000001,
"rule_type": "Inbound",
"protocol_name": "ALL",
"port_range": "",
"network": "any",
"network_cidr": "--"
}
],
"is_default": false,
"is_all_traffic_rule": true,
"is_active": true,
"inbound_rules_count": 1,
"outbound_rules_count": 1
}
],
"message": "Success"
}