ves-io-schema-bgp-API-List

Examples of listing bgp

Usecase:

List bgp object in the system namespace

Request using vesctl:

vesctl configuration list bgp --namespace system

vesctl yaml response:

items:
- labels: {}
  name: bgp-peering
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: edce6ffb-0f42-417d-a984-9f4f715e5dbe

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/bgps'

curl response

HTTP/1.1 200 OK
Content-Length: 300
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:48:07 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "bgp-peering",
      "uid": "edce6ffb-0f42-417d-a984-9f4f715e5dbe",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}