Skip to content

Firewall Policies

On this page
  1. Endpoints

Firewall policies control which traffic can reach your VMs, databases and deployments. A policy is a named set of allow rules (protocol, port range and source CIDR). Attach a policy to a resource to enforce it. Policies belong to the workspace and can be attached to many resources.

A resource with no policy attached is not filtered. Once one or more policies are attached, only inbound traffic matching an allow rule of one of them is let through. Rules are allow-only: there are no deny rules.

Changing rules or attachments queues a firewall.apply operation for every affected resource. Where a response includes an operation_id, you can follow it with Get an operation.

Endpoints

EndpointDescription
GET /v1/firewall-policiesList firewall policies
POST /v1/firewall-policiesCreate a firewall policy
GET /v1/firewall-policies/{uid}Get a firewall policy
PATCH /v1/firewall-policies/{uid}Update a firewall policy
DELETE /v1/firewall-policies/{uid}Delete a firewall policy
POST /v1/firewall-policies/{uid}/rulesAdd a firewall rule
PATCH /v1/firewall-policies/{uid}/rules/{rule_uid}Update a firewall rule
DELETE /v1/firewall-policies/{uid}/rules/{rule_uid}Delete a firewall rule
POST /v1/firewall-policies/{uid}/attachmentsAttach a firewall policy
DELETE /v1/firewall-policies/{uid}/attachments/{attachment_uid}Detach a firewall policy