# Data Object - HostFirewallRule(vim.host.Ruleset.Rule)

Property of
  HostFirewallRuleset
Extends
  DynamicData
See also
  HostFirewallRuleDirection, HostFirewallRulePortType

## Data Object Description

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.

Properties

Name | Type | Description
--- | --- | ---
direction | HostFirewallRuleDirection | The port direction.
endPort* | xsd:int | For a port range, the ending port number.
port | xsd:int | The port number.
portType* | HostFirewallRulePortType | The port type. Since vSphere API 5.0
protocol | xsd:string | The port protocol. Valid values are defined by the HostFirewallRuleProtocol enumeration.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="HostFirewallRule"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="port" type="xsd:int"/> <element name="endPort" type="xsd:int" minOccurs="0"/> <element name="direction" type="vsan:HostFirewallRuleDirection"/> <element name="portType" type="vsan:HostFirewallRulePortType" minOccurs="0"/> <element name="protocol" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType>