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: e51eb9b5-0c46-4f96-860a-56f4d44e29b6
- annotations: {}
  labels: {}
  name: bgp-asn-whitelist
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: ca94735d-2faa-4214-8fb2-35713ae575e7

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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, 25 Aug 2021 09:02:46 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "bgp-asn-anonymous",
      "uid": "e51eb9b5-0c46-4f96-860a-56f4d44e29b6",
      "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": "ca94735d-2faa-4214-8fb2-35713ae575e7",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}