> 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/create.md).

# Create a security group

`POST /sg/create`

Create a security group

**Example request**:

```
POST /sg/create HTTP/1.1
Content-Type: text/plain

name: sg-test-1
description: sg-test-description
rules:
- direction: ingress
  port_range_min: 22
  port_range_max: 22
  protocol: tcp
  remote_ip_prefix: 0.0.0.0/0
```

**Example response**:

```
HTTP/1.1 201 Created
```

Status Codes:

* **201** - no error
* **400** - bad request parameters
* **500** - server error
