ves-io-schema-bgp_asn_set-API-Replace

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-build144460626_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: Fri, 15 May 2020 10:52:32 GMT
Vary: Accept-Encoding

{

}