Skip to content

Delete a firewall rule

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

uidstringRequired

The firewall policy's uid.

rule_uidstringRequired

The rule's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The rule was deleted.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The policy, or the rule within it, does not exist.

Errors use the standard error format.