Bases: vmware.vapi.bindings.stub.VapiInterface
Inbound class provides methods Operations for Firewall rules.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Inbound.DeleteFirewallRule class Structure that defines networking.firewall.addr.inbound.delete api input argument
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Inbound.FirewallAddressRule class Structure that defines a single address-based firewall rule.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Inbound.FirewallRulePolicy class Defines firewall rule policies
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the FirewallRulePolicy instance. |
---|
Allow packet with corresponding address.
Deny packet with correpsonding address.
Add a firewall rule to allow or deny traffic from incoming IP address.
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Delete specific rule at a given position or delete all rules.
Parameters: | config (Inbound.DeleteFirewallRule) – Delete a firewall rule |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get ordered list of inbound IP addresses that are allowed or denied by firewall.
Return type: | list of Inbound.FirewallAddressRule |
---|---|
Returns: | List of address-based firewall rules. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set list of inbound IP addresses to allow or deny by firewall. This replaces all existing rules. Firewall rules have no impact on closed ports because these ports are closed for all traffic.
Parameters: | rules (list of Inbound.FirewallAddressRule) – List of address-based firewall rules. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |