ves-io-schema-ip_prefix_set-API-List

Examples of listing ip_prefix_set

Usecase:

List all ip-prefix-set from system namespace

Request using vesctl:

vesctl configuration list ip_prefix_set --namespace system

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: acmecorp-white-list
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 2216277c-972b-4024-a1d1-a880ce6ef12d
- annotations: {}
  labels: {}
  name: ddos-black-list
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 38986a51-1103-49cc-82d1-918bab6494d4

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/system/ip_prefix_sets'

curl response

HTTP/1.1 200 OK
Content-Length: 886
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:10:31 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "acmecorp-white-list",
      "uid": "2216277c-972b-4024-a1d1-a880ce6ef12d",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "ddos-black-list",
      "uid": "38986a51-1103-49cc-82d1-918bab6494d4",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}