ves-io-schema-bgp_asn_set-API-Replace
On This Page:
Examples of replacing bgpasnset
Usecase:
Replace bgp-asn-anonymous to remove asn 3141 from the list
Request using vesctl:
vesctl configuration replace bgp_asn_set -i bgp_asn_set.yaml
where file bgpasnset.yaml has following contents (bgpasnset.ReplaceRequest):
metadata:
name: bgp-asn-anonymous
namespace: documentation
spec:
asNumbers:
- 1234
- 5678
- 9101
- 1121
vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"bgp-asn-anonymous","namespace":"documentation"},"spec":{"asNumbers":[1234,5678,9101,1121]}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/bgp_asn_sets/bgp-asn-anonymous'
curl response:
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:43:37 GMT
Vary: Accept-Encoding
{
}