ves-io-schema-network_policy_set-API-List

Examples of listing networkpolicyset

Usecase:

List network-policy-set

Request using vesctl:

vesctl configuration list network_policy_set --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: network-policy-set-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 93627222-f648-4da6-a470-df1ded425394

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/network_policy_sets'

curl response

HTTP/1.1 200 OK
Content-Length: 316
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:50 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "network-policy-set-1",
      "uid": "93627222-f648-4da6-a470-df1ded425394",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}