Rule

Rule
Rule

A rule used in a security group.

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

Protocol the security rule applies to.

string
access
Required

Type of access (allow or deny) for the security rule. Traffic that does not match any rules will be denied.

Possible values are : Allow, Deny,
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
name
Optional

Name of security rule.

string
ports
Required

Ports the security rule applies to.

string
direction
Required

Direction of the security rule (inbound or outboud).

Possible values are : Inbound, Outbound,
Property Of