ves-io-schema-bgp_asn_set-API-List

Examples of listing bgp_asn_set

Usecase:

List all the bgp_asn_set 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: 1425231c-facc-42de-b2e3-6c7a52492401
- annotations: {}
  labels: {}
  name: bgp-asn-whitelist
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: cf605a3d-82bc-4054-997a-173737037534

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: Thu, 28 Jul 2022 12:09:42 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "bgp-asn-anonymous",
      "uid": "1425231c-facc-42de-b2e3-6c7a52492401",
      "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": "cf605a3d-82bc-4054-997a-173737037534",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}