appliance networking firewall inbound: rule

rule structure Structure that defines a single address-based firewall rule. This structure was added in vSphere API 6.7.1.

Representation:

{
    "address""string",
    "prefix"1,
    "interface_name""string",
    "policy""IGNORE"
}

Attributes:

Name Type Description
Required
address string IPv4 or IPv6 address. This attribute was added in vSphere API 6.7.1.

prefix long CIDR prefix used to mask address. For example, an IPv4 prefix of 24 ignores the low-order 8 bits of address. This attribute was added in vSphere API 6.7.1.

policy string The allow or deny policy of this rule. This attribute was added in vSphere API 6.7.1.

Defines firewall rule policies. This enumeration was added in vSphere API 6.7.1. Value is one of:
IGNORE: Drop packet with correpsonding address. This constant was added in vSphere API 6.7.1.
ACCEPT: Allow packet with corresponding address. This constant was added in vSphere API 6.7.1.
REJECT: Drop packet with corresponding address sending destination is not reachable. This constant was added in vSphere API 6.7.1.
RETURN: Apply default or port-specific rules to packet with corresponding address. This constant was added in vSphere API 6.7.1.

Optional
interface_name string The interface to which this rule applies. An empty string indicates that the rule applies to all interfaces. This attribute was added in vSphere API 6.7.1.

Optional.