الانتقال إلى المحتوى الرئيسي
POST
/
sites
/
{siteId}
/
bgp
ربط سياسة BGP بموقع
curl --request POST \
  --url https://api.altostrat.io/sites/{siteId}/bgp \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dnr_policy_id": "9b1d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b",
  "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

المعرّف الفريد للموقع.

Body

application/json
dnr_policy_id
string<uuid>
required

معرّف سياسة BGP المطلوب ربطها.

Example:

"9b1d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b"

ip_address
string<ipv4>
required

عنوان IP الإداري لنفق الموقع.

Example:

"100.64.10.5"

Response

تم ربط سياسة BGP بنجاح.

id
string<uuid>

المعرّف الفريد للموقع.

Example:

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

ip_address
string<ipv4>

عنوان IP الإداري لنفق الموقع.

Example:

"100.64.10.5"

policy_id
string<uuid> | null

معرّف سياسة DNS المرتبطة بهذا الموقع، إن وجدت.

policy_name
string | null

اسم سياسة DNS المرتبطة.

dnr_policy_id
string<uuid> | null

معرّف سياسة BGP المرتبطة بهذا الموقع، إن وجدت.

dnr_policy_name
string | null

اسم سياسة BGP المرتبطة.

dns_online
boolean

الحالة التشغيلية لخدمة تصفية DNS لهذا الموقع.

dnr_online
boolean

الحالة التشغيلية لخدمة تصفية BGP لهذا الموقع.