appliance techpreview networking firewall addr inbound: set

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.

Request:

HTTP request

PUT https://{server}/rest/appliance/techpreview/networking/firewall/addr/inbound

Request Body Structure:

{
    "rules"[
        {
            "address""string",
            "interface_name""string",
            "policy""deny",
            "prefix"1
        },
        {
            "address""string",
            "interface_name""string",
            "policy""deny",
            "prefix"1
        }
    ]
}
<?xml version="1.0" ?>
<ns0:Set-Input xmlns:ns0="http://vmware.com/appliance/techpreview/networking/firewall/addr/inbound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <rules-array>
    <array-item>
      <address>string</address>
      <prefix>1</prefix>
      <policy>deny</policy>
      <interface_name>string</interface_name>
    </array-item>
    <array-item>
      <address>string</address>
      <prefix>1</prefix>
      <policy>deny</policy>
      <interface_name>string</interface_name>
    </array-item>
  </rules-array>
</ns0:Set-Input>

Request Body Parameters:

Name Type Description
bold = required
rules firewall_address_rule[] List of address-based firewall rules.
rules[].address string IPv4 or IPv6 address.

rules[].prefix long CIDR prefix used to mask address. For example, an IPv4 prefix of 24 ignores the low-order 8 bits of address.

rules[].policy string The allow or deny policy of this rule.

Defines firewall rule policies Value is one of:
deny: Deny packet with correpsonding address.
allow: Allow packet with corresponding address.

rules[].interface_name string The interface to which this rule applies. An empty string or "*" indicates that the rule applies to all interfaces.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error