rules
Overview
Name | rules |
Type | Resource |
Id | digitalocean.firewalls.rules |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource and then invoke a supported method using the EXEC
command
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_rules | INSERT | firewall_id | To add additional access rules to a firewall, send a POST request to/v2/firewalls/$FIREWALL_ID/rules . The body of the request may include aninbound_rules and/or outbound_rules attribute containing an array of rules to be added. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. |
delete_rules | DELETE | firewall_id | To remove access rules from a firewall, send a DELETE request to/v2/firewalls/$FIREWALL_ID/rules . The body of the request may include aninbound_rules and/or outbound_rules attribute containing an array of rulesto be removed. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. |