Skip to main content
PATCH
/
service
/
{tenant_name}
/
firewall_rule
/
{rule_name}
/
forwarding_policy
Modify rule's forwarding policy
curl --request PATCH \
  --url https://api.example.com/service/{tenant_name}/firewall_rule/{rule_name}/forwarding_policy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "forwarding_policy": "ACCEPT",
  "categories": [
    "<string>"
  ],
  "add_categories": [
    "<string>"
  ],
  "remove_categories": [
    "<string>"
  ],
  "allowed_domains": [
    "<string>"
  ],
  "add_allowed_domains": [
    "<string>"
  ],
  "remove_allowed_domains": [
    "<string>"
  ],
  "denied_domains": [
    "<string>"
  ],
  "add_denied_domains": [
    "<string>"
  ],
  "remove_denied_domains": [
    "<string>"
  ],
  "policy_name": "<string>"
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "status": "received",
  "extra_details": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

Body

application/json
forwarding_policy
enum<string> | null
Available options:
ACCEPT,
DROP,
ALLOW,
DENY,
ALLOW_WITH_BLOCKED_SNI,
ALLOW_ONLY_SELECTED_SNIS
categories
string[] | null
add_categories
string[] | null
remove_categories
string[] | null
allowed_domains
string[] | null
add_allowed_domains
string[] | null
remove_allowed_domains
string[] | null
denied_domains
string[] | null
add_denied_domains
string[] | null
remove_denied_domains
string[] | null
policy_name
string | null

Response

Successful Response

id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
status
enum<string>
required
Available options:
received,
in_progress,
success,
failed,
cancelled
extra_details
Extra Details · object