Skip to main content
POST
/
sites
/
{siteId}
/
dns
Attach DNS Policy to a Site
curl --request POST \
  --url https://api.altostrat.io/sites/{siteId}/dns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "policy_id": "9a9a3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8a",
  "ip_address": "100.64.10.5"
}'
{
  "id": "9a9d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8d",
  "ip_address": "100.64.10.5",
  "policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "policy_name": "<string>",
  "dnr_policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dnr_policy_name": "<string>",
  "dns_online": true,
  "dnr_online": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

siteId
string<uuid>
required

The unique identifier of the site.

Body

application/json
policy_id
string<uuid>
required

The ID of the DNS policy to attach.

Example:

"9a9a3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8a"

ip_address
string<ipv4>
required

The management IP address of the site's tunnel.

Example:

"100.64.10.5"

Response

DNS policy attached successfully.

id
string<uuid>

The unique identifier of the site.

Example:

"9a9d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8d"

ip_address
string<ipv4>

The management IP address of the site's tunnel.

Example:

"100.64.10.5"

policy_id
string<uuid> | null

The ID of the DNS policy attached to this site, if any.

policy_name
string | null

The name of the attached DNS policy.

dnr_policy_id
string<uuid> | null

The ID of the BGP policy attached to this site, if any.

dnr_policy_name
string | null

The name of the attached BGP policy.

dns_online
boolean

The operational status of the DNS filtering service for this site.

dnr_online
boolean

The operational status of the BGP filtering service for this site.