Skip to main content
POST
/
service
/
{tenant_name}
/
firewall_rule
/
dia
Create Tenant Dia Fw Rule
curl --request POST \
  --url https://api.example.com/service/{tenant_name}/firewall_rule/dia \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "priority": 1,
  "filters": [],
  "forwarding_policy": "ALLOW",
  "enable": true,
  "description": "<string>",
  "categories": [],
  "allowed_domains": [],
  "denied_domains": [],
  "policy_name": "<string>",
  "time_policies_names": [],
  "gate_vi_name": "<string>",
  "gate_vi_names": [],
  "force_all_gw": false
}
'
{
  "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
name
string
required
priority
integer
default:1
filters
RuleFilter · object[]
forwarding_policy
enum<string>
default:ALLOW
Available options:
ACCEPT,
DROP,
ALLOW,
DENY,
ALLOW_WITH_BLOCKED_SNI,
ALLOW_ONLY_SELECTED_SNIS
enable
boolean
default:true
description
string | null
categories
string[] | null
allowed_domains
string[] | null
denied_domains
string[] | null
policy_name
string | null
time_policies_names
string[] | null
gate_vi_name
string | null
gate_vi_names
string[] | null
force_all_gw
boolean
default:false

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