DELETE
/v1/firewall-policies/{uid}/rules/{rule_uid}Deletes a rule from the policy, including the default SSH and app-port rules. A
firewall.apply operation is queued for every resource the policy is attached to, but its
ID is not returned.
Deleting the SSH rule from a policy attached to a VM can block rumpty ssh unless another
attached policy still allows port 22.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
uidstringRequiredThe firewall policy's uid.
rule_uidstringRequiredThe rule's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
200
The rule was deleted.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The policy, or the rule within it, does not exist. |
Errors use the standard error format.