Create firewall
⚠️ This endpoint is in public preview.
Create a workspace-scoped firewall with an ordered list of allow-only ingress rules.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Body
The set of rules a firewall enforces.
Allow-only ingress rules. Order is preserved across reads and PUT replacements.
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Workspace to create this firewall in.
(wksp_[0-9a-zA-Z_-]{1,21})|(sfc:workspace:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,1})"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
Response
Firewall created.
The set of rules a firewall enforces.
frwl_[0-9a-zA-Z_-]{1,21}"frwl_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a firewall resource. Format: sfc:firewall:::.
sfc:firewall:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:firewall:<account_id>:<workspace>:<name>"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
wksp_[0-9a-zA-Z_-]{1,21}"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Allow-only ingress rules. Order is preserved across reads and PUT replacements.
"firewall"Unix timestamp.
1738972800
Unix timestamp.
1738972800