# Security Group Controller Resource

### GET /security-groups

Request Parameters
name | type | description
--- | --- | ---
direction | query |
filter | query |
nameLike | query |
orderBy | query |
page | query |
size | query |

Response Body
media type | data type | description
--- | --- | ---
application/json | array of SecurityGroupListRecordDto (JSON) |

#### Example

##### Request

    GET /security-groups
    Content-Type: */*
    Accept: application/json

    ...

##### Response

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

    [ { } ]

### POST /security-groups

Delete all non-present security groups under given requirements

Request Body
media type | data type
--- | ---
application/json | SecurityGroupDeleteNonPresentRequestDto (JSON)

#### Example

##### Request

    POST /security-groups
    Content-Type: application/json

    {
      "hypervisor-manager-internal-id" : "..."
    }

##### Response

    HTTP/1.1 201 Created