ves-io-schema-bgp_asn_set-API-List

Examples of listing bgpasnset

Usecase:

List all the bgpasnset objects in the namespace

Request using vesctl:

vesctl configuration list bgp_asn_set --namespace documentation

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: bgp-asn-anonymous
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 3c79d8a6-8bda-4177-9a58-0165e54388dc
- annotations: {}
  labels: {}
  name: bgp-asn-whitelist
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 504d4431-9cbd-49ff-80ee-d95486d27565

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/documentation/bgp_asn_sets'

curl response

HTTP/1.1 200 OK
Content-Length: 900
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:46 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "bgp-asn-anonymous",
      "uid": "3c79d8a6-8bda-4177-9a58-0165e54388dc",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "bgp-asn-whitelist",
      "uid": "504d4431-9cbd-49ff-80ee-d95486d27565",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}