Skip to main content
POST
/
bgp
/
policy
Create BGP Policy
curl --request POST \
  --url https://api.altostrat.io/content/bgp/policy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Default BGP Security",
  "enabled": true,
  "sites": [
    "c3d4e5f6-a7b8-9012-3456-7890abcdef01"
  ],
  "lists": [
    "d4e5f6a7-b8c9-0123-4567-890abcdef012"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "enabled": true,
  "default": true,
  "lists": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "site_count": 123,
  "sites": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "dns_policy_overlap": true,
  "updated_at": "06 Apr 2025 14:30:00",
  "created_at": "01 Mar 2025 10:00:00"
}

Authorizations

Authorization
string
header
required

Enter the Bearer token (obtained via authentication or provided internally).

Body

application/json
name
string
required

A user-friendly name for the BGP policy.

Maximum length: 100
Example:

"Default BGP Security"

enabled
boolean
required

Whether this BGP policy is active.

Example:

true

lists
string<uuid>[]
required

List of DNR List UUIDs to include in this policy.

sites
string<uuid>[] | null

List of Site UUIDs to attach this policy to. Existing attachments not in the list will be removed.

Response

BGP policy created successfully.

id
string<uuid>
name
string
enabled
boolean
default
boolean

Whether this is the default BGP policy for the customer.

lists
string<uuid>[]

List of DNR List UUIDs included in this policy.

site_count
integer
sites
string<uuid>[]

List of Site UUIDs attached to this policy.

dns_policy_overlap
boolean

Indicates if any sites attached to this BGP policy also have a DNS policy assigned.

updated_at
string

Policy update timestamp (timezone adjusted by resource).

Example:

"06 Apr 2025 14:30:00"

created_at
string

Policy creation timestamp (timezone adjusted by resource).

Example:

"01 Mar 2025 10:00:00"

I