DELETE
/v1/firewall-policies/{uid}/attachments/{attachment_uid}Removes an attachment, so the policy no longer applies to that resource. A firewall.apply
operation is queued for the resource, but its ID is not returned. If no other policy is
attached, the resource is no longer filtered.
Find the attachment's uid in attached_resources from
Get a firewall policy.
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.
attachment_uidstringRequiredThe attachment'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 policy was detached.
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 attachment on it, does not exist. |
Errors use the standard error format.