List security groups
GET
/api/v1/security-group
const url = 'https://console.cloudlogics.com/api/v1/security-group';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://console.cloudlogics.com/api/v1/security-group \ --header 'Authorization: <Authorization>'List security groups in the authenticated user’s project. Pass all_projects=true to list security groups across every project the caller belongs to; each entry is tagged with its project name.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”all_projects
boolean
List security groups across all of the caller’s projects
Responses
Section titled “Responses”The project’s security groups, each with its rule counts.
Media typeapplication/json
object
data
Array<object>
A group in the list view. Note the capitalised field names.
object
ID
string
Name
string
Description
string
Project
string
ingress_rules
Number of inbound rules.
integer
egress_rules
Number of outbound rules.
integer
Example
{ "data": [ { "ID": "8f14e45f-ceea-467a-9f2c-1b1d3a5e77c2", "Name": "web-servers", "Description": "Public web tier", "Project": "my-project", "ingress_rules": 3, "egress_rules": 0 } ]}Missing project in context
Media typeapplication/json
object
data
error
object
code
integer
message
string
page
object
next
string
prev
string
total_size
integer
Examplegenerated
{ "data": "example", "error": { "code": 1, "message": "example" }, "page": { "next": "example", "prev": "example", "total_size": 1 }}Internal server error
Media typeapplication/json
object
data
error
object
code
integer
message
string
page
object
next
string
prev
string
total_size
integer
Examplegenerated
{ "data": "example", "error": { "code": 1, "message": "example" }, "page": { "next": "example", "prev": "example", "total_size": 1 }}