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

Enumeration of port directions.

Possible values:

  • inbound
  • outbound
Possible values are : inbound, outbound,
portType
Optional

Enumeration of port types.

Possible values:

  • src
  • dst
Possible values are : src, dst,
string
protocol
Required

The port protocol.

Valid values are defined by the HostFirewallRuleProtocolEnum enumeration.