ves-io-schema-network_policy_rule-API-List

Examples of listing networkpolicyrule

Usecase:

List network-policy-rule

Request using vesctl:

vesctl configuration list network_policy_rule --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: network-policy-rule-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 4770f801-b601-490f-9e4c-6cd8aa2c1586

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_rules'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "network-policy-rule-1",
      "uid": "4770f801-b601-490f-9e4c-6cd8aa2c1586",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}