Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request PUT \
--url https://v1.api.altostrat.io/content/bgp/policy/{policyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "High-Risk Geo-IP Block",
"enabled": true,
"lists": [
"9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"
],
"sites": [
"9a9d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8d"
]
}
'{
"id": "9b1d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b",
"name": "Block Known Threats",
"enabled": true,
"default": false,
"lists": [
"9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"
],
"site_count": 3,
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}Updates the properties of an existing BGP policy, including its name, status, selected IP lists, and site attachments.
curl --request PUT \
--url https://v1.api.altostrat.io/content/bgp/policy/{policyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "High-Risk Geo-IP Block",
"enabled": true,
"lists": [
"9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"
],
"sites": [
"9a9d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8d"
]
}
'{
"id": "9b1d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b",
"name": "Block Known Threats",
"enabled": true,
"default": false,
"lists": [
"9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"
],
"site_count": 3,
"updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the BGP policy to update.
A human-readable name for the policy.
"High-Risk Geo-IP Block"
Whether the policy is active.
true
A list of BGP IP reputation list IDs to include in this policy.
["9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"]A list of site IDs to which this policy should be attached. Any sites not in this list will be detached.
["9a9d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8d"]The BGP policy was updated successfully.
"9b1d3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8b"
"Block Known Threats"
true
True if this is the default policy for the account.
false
A list of BGP IP reputation list IDs included in this policy.
["9b1e3e6a-5c3a-4f1e-9a0a-2b2a1e1d8e8c"]The number of sites currently using this policy.
3
Was this page helpful?