​
Select Service
ves-io-schema-bgp_routing_policy-API-Replace
Published April 5, 2023 | Last modified September 19, 2025
Examples of replacing bgp_routing_policy
Usecase:
Replace BGP routing policy
Request using vesctl:
vesctl configuration replace bgp_routing_policy -i bgp_routing_policy.yaml
where file bgp_routing_policy.yaml has following contents (bgp_routing_policy.ReplaceRequest):
RequestJSON:
{
"metadata": {
"name": "bgp-routing-policy-1",
"namespace": "system"
},
"spec": {
"rules": [
{
"match": {
"as_path": "testpath"
},
"action": {
"deny": null
}
}
]
}
}
Copied!
vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"bgp-routing-policy-1","namespace":"system"},"spec":{"rules":[{"match":{"as_path":"testpath"},"action":{"deny":null}}]}}' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build2850427035_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/bgp_routing_policys/bgp-routing-policy-1'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Fri, 19 Sep 2025 01:59:44 GMT
Vary: Accept-Encoding
{
}
Copied!