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:

items:
- annotations: {}
  labels: {}
  name: bgp-asn-anonymous
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: b43ee3e2-2824-4bf3-8279-434ba9fdde3d
- annotations: {}
  labels: {}
  name: bgp-asn-whitelist
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 55d07cb1-c336-4b12-932a-020225687fe5

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: 881
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:28:13 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "bgp-asn-anonymous",
      "uid": "b43ee3e2-2824-4bf3-8279-434ba9fdde3d",
      "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": "55d07cb1-c336-4b12-932a-020225687fe5",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}