HostFirewallRule

HostFirewallRule
HostFirewallRule

This data object type describes a port (or range of ports), identified by port number(s), direction and protocol.

It is used as a convenient way for users to express what ports they want to permit through the firewall.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "port": 0,
    "endPort": 0,
    "direction": "string",
    "portType": "string",
    "protocol": "string"
}
integer As int32 As int32
port
Required

The port number.

integer As int32 As int32
endPort
Optional

For a port range, the ending port number.

direction
Required

The port direction.

portType
Optional

The port type.

string
protocol
Required

The port protocol.

Valid values are defined by the HostFirewallRuleProtocolEnum enumeration.