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:

items:
- labels: {}
  name: acmecorp-white-list
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 7677ce1a-ff4c-4365-a1b9-5818fdfe1514
- labels: {}
  name: ddos-black-list
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 264b473a-5002-4d01-bcc4-0bd2c16ce8c0

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build823219857_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: 593
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:53:28 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "acmecorp-white-list",
      "uid": "7677ce1a-ff4c-4365-a1b9-5818fdfe1514",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "ddos-black-list",
      "uid": "264b473a-5002-4d01-bcc4-0bd2c16ce8c0",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}