appliance techpreview networking firewall addr inbound: delete
Delete specific rule at a given position or delete all rules.
Request:
HTTP request
POST https://{server}/rest/appliance/techpreview/networking/firewall/addr/inbound/delete
Request Body Structure:
{
"config": {
"all": true,
"position": 1
}
}
"config": {
"all": true,
"position": 1
}
}
<?xml version="1.0" ?>
<ns0:Delete-Input xmlns:ns0="http://vmware.com/appliance/techpreview/networking/firewall/addr/inbound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<position>1</position>
<all>true</all>
</config>
</ns0:Delete-Input>
<ns0:Delete-Input xmlns:ns0="http://vmware.com/appliance/techpreview/networking/firewall/addr/inbound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<position>1</position>
<all>true</all>
</config>
</ns0:Delete-Input>
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
config | delete_firewall_rule | Delete a firewall rule. |
config.position | long | Position before which to insert the rule (zero-based). If you try to insert the rule in a position whose number is greater than the number of rules, the firewall rule is inserted at the end of the list. |
config.all | boolean | Delete all firewall rules. Set all argument to "true" to delete all rules or set the all argument to "false" to delete a single rule. |
Response:
HTTP Status Code: 200
NoneErrors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |