> For the complete documentation index, see [llms.txt](https://hyperhq.gitbook.io/docs-hyper-sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyperhq.gitbook.io/docs-hyper-sh/index-2/index-1/index/index-7/ls.md).

# List security groups

`GET /sg`

List security group

**Example request**:

```
GET /sg HTTP/1.1
```

**Example response**:

```
HTTP/1.1 200 OK
Content-Type: application/json

[
 {
  "name": "sg-test-1",
  "type": "",
  "description": "sg-test-description",
  "rules": [
   {
    "Direction": "ingress",
    "port_range_min": 22,
    "port_range_max": 22,
    "Protocol": "tcp",
    "remote_ip_prefix": ""
   }
  ]
 }
]
```

Query Parameters:

* **filters** - JSON encoded value of the filters (a `map[string][]string`) to process on the volumes list. There is one available filter: `dangling=true`.

Status Codes:

* **200** - no error
* **500** - server error
