# Create a Security Group rule **POST /security-group/{id}/rules** ## Servers - https://api-ch-gva-2.exoscale.com/v2: https://api-ch-gva-2.exoscale.com/v2 () ## Parameters ### Path parameters - **id** (string(uuid)) ### Body: application/json (object) - **flow-direction** (string) Network flow direction to match - **description** (string) Security Group rule description - **network** (string) CIDR-formatted network allowed - **security-group** (object) Security Group - **protocol** (string) Network protocol - **icmp** (object) ICMP details (default: -1 (ANY)) - **start-port** (integer(int64)) Start port of the range - **end-port** (integer(int64)) End port of the range ## Responses ### 200 200 #### Body: application/json (object) - **id** (string(uuid)) Operation ID - **reason** (string) Operation failure reason - **reference** (object) Related resource reference - **message** (string) Operation message - **state** (string) Operation status [Powered by Bump.sh](https://bump.sh)