
This external documentation for pyVmomi was generated using Googly Docs (aka Google Standard Documentation) which renders very cleanly in GitHub. Internal documentation for a class should be done in Sphinx format because tools like pyCharm and Eclipse can use that documentation as a hint for code completion. Note: External docs as Googly Docs, internal docs as Sphinx. Closes bug#15
2.8 KiB
vim.host.FirewallSystem
The FirewallSystem managed object describes the firewall configuration of the host.The firewall should be configured first by setting the default policy and then by making exceptions to the policy to get the desired openness.
- extends
Attributes
- firewallInfo (vim.host.FirewallInfo):
Firewall configuration.
Methods
- UpdateDefaultPolicy(defaultPolicy):
-
Updates the default firewall policy; unset fields are left unchanged.
- Privilege:
-
Host.Config.NetService
- Args:
-
defaultPolicy (vim.host.FirewallInfo.DefaultPolicy):
- Returns:
-
None
- EnableRuleset(id):
-
Opens the firewall ports belonging to the specified ruleset. If the ruleset has a managed service with a policy of 'auto' that is not running, starts the service.
- Privilege:
-
Host.Config.NetService
- Args:
-
id (str):
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if the ruleset ID is unknown.
- vim.fault.HostConfigFault:
-
if an internal error happend when reconfigure the ruleset.
- DisableRuleset(id):
-
Blocks the firewall ports belonging to the specified ruleset. If the ruleset has a managed service with a policy of 'auto' and all other rulesets used by the service are blocked, stops the service.
- Privilege:
-
Host.Config.NetService
- Args:
-
id (str):
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if the ruleset ID is unknown.
- vim.fault.HostConfigFault:
-
if an internal error happend when reconfigure the ruleset.
- UpdateRuleset(id, spec):
-
Update the firewall ruleset specification. since: vSphere API 5.0
- Privilege:
-
Host.Config.NetService
- Args:
-
id (str):
spec (vim.host.Ruleset.RulesetSpec):
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if the ruleset ID is unknown
- vim.fault.HostConfigFault:
-
if the update of the ruleset failed.
- RefreshFirewall():
-
Refresh the firewall information and settings to pick up any changes made directly on the host.
- Privilege:
-
Host.Config.NetService
Args:
- Returns:
-
None