Rule

Rule
Rule

A rule used in a security group.

JSON Example
{
    "name": "5756f7e2",
    "protocol": "ANY, TCP, UDP",
    "service": "HTTPS, SSH",
    "ipRangeCidr": "66.170.99.2/32",
    "ports": "443, 1-655535",
    "access": "Allow",
    "direction": "Outbound"
}
string
name
Optional

Name of security rule.

string
protocol
Optional

Protocol the security rule applies to.

string
service
Optional

Service defined by the provider (such as: SSH, HTTPS). Either service or protocol have to be specified.

string
ipRangeCidr
Required

IP address(es) in CIDR format which the security rule applies to.

string
ports
Required

Ports the security rule applies to.

string
access
Required

Type of access (Allow, Deny or Drop) for the security rule. Allow is default. Traffic that does not match any rules will be denied.

Possible values are : Allow, Deny, Drop,
string
direction
Required

Direction of the security rule (inbound or outboud).

Possible values are : Inbound, Outbound,