Skip to main content
POST
/
service
/
{tenant_name}
/
pbr_rule
Create Tenant Pbr Rule
curl --request POST \
  --url https://api.example.com/service/{tenant_name}/pbr_rule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "priority": 1,
  "enable": true,
  "filters": [],
  "gateway_ip_address": "<string>",
  "gateway_interface": "<string>",
  "gateway_MAC": "<string>",
  "action": "ROUTE",
  "labels": {},
  "description": "<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
name
string
required
priority
integer
default:1
enable
boolean
default:true
filters
RuleFilter · object[]
gateway_ip_address
string | null
gateway_interface
string | null
gateway_MAC
string | null
action
enum<string>
default:ROUTE
Available options:
ROUTE,
NO_ROUTE
labels
Labels · object
description
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