Security Groups API

Creating a Security Group

POST /v2/security_groups/

Request

Route

POST /v2/security_groups

Body

Name

Description

Default

Valid Values

Example Values

name

The name of the security group.

my_super_sec_group

rules

The egress rules for apps that belong to this security group.
A rule consists of a protocol (tcp,icmp,udp,all), destination CIDR or destination range,
port or port range (tcp,udp,all), type (control signal for icmp, where -1 allows all), code (control signal for icmp, where -1 allows all),
log (enables logging for the egress rule, only valid for tcp rules), description (optional description of the rule). This field is limited to 16MB.