ves-io-schema-ip_prefix_set-API-List

Examples of listing ipprefixset

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: 6ac5956c-2390-434d-a431-7042ca4006f5
- annotations: {}
  labels: {}
  name: ddos-black-list
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 7e793959-3ee5-47d5-a5eb-71efdc6d1c29

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

curl response

HTTP/1.1 200 OK
Content-Length: 886
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:07:15 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "acmecorp-white-list",
      "uid": "6ac5956c-2390-434d-a431-7042ca4006f5",
      "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": "7e793959-3ee5-47d5-a5eb-71efdc6d1c29",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}