interface SetSecurityGroupRulesRequestRule {
    action: SecurityGroupRuleAction;
    destPortFrom?: number;
    destPortTo?: number;
    direction: SecurityGroupRuleDirection;
    editable?: boolean;
    id?: string;
    ipRange: string;
    position: number;
    protocol: SecurityGroupRuleProtocol;
    zone?: Zone;
}

Properties

Action to apply when the rule matches a packet.

destPortFrom?: number

Beginning of the range of ports this rule applies to (inclusive). This value will be set to null if protocol is ICMP or ANY.

destPortTo?: number

End of the range of ports this rule applies to (inclusive). This value will be set to null if protocol is ICMP or ANY, or if it is equal to dest_port_from.

Direction the rule applies to.

editable?: boolean

Indicates if this rule is editable. Rules with the value false will be ignored.

id?: string

UUID of the security rule to update. If no value is provided, a new rule will be created.

ipRange: string

Range of IP addresses these rules apply to.

position: number

Position of this rule in the security group rules list. If several rules are passed with the same position, the resulting order is undefined.

Protocol family this rule applies to.

zone?: Zone

Zone of the rule. This field is ignored.