ves-io-schema-network_policy-API-List

Examples of listing network_policy

Usecase:

List network-policy

Request using vesctl:

vesctl configuration list network_policy --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: network-policy-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 15fd9565-5354-4a9a-a37e-c77a49ea4b5b

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 312
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:32 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "network-policy-1",
      "uid": "15fd9565-5354-4a9a-a37e-c77a49ea4b5b",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}