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:

errors: []
items:
- annotations: {}
  labels: {}
  name: bgp-peering
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 9e0e4224-b6c0-4679-872c-14ed4451691d

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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: 456
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:45 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "bgp-peering",
      "uid": "9e0e4224-b6c0-4679-872c-14ed4451691d",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}