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:

errors: []
items:
- annotations: {}
  labels: {}
  name: network-policy-rule-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 3e115717-af8c-476c-a713-139f36d67757

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_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: 473
Content-Type: application/json
Date: Wed, 12 May 2021 11:18:22 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "network-policy-rule-1",
      "uid": "3e115717-af8c-476c-a713-139f36d67757",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}