ves-io-schema-network_policy_rule-API-List
On This Page:
Examples of listing networkpolicyrule
Usecase:
List network-policy-rule
Request using vesctl:
vesctl configuration list network_policy_rule --namespace documentation
vesctl yaml response:
items:
- annotations: {}
labels: {}
name: network-policy-rule-1
namespace: documentation
statusSet: []
tenant: acmecorp
uid: 48fd3cae-8716-42b2-9863-a70bd4550791
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: 454
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:44:26 GMT
Vary: Accept-Encoding
{
"items": [
{
"tenant": "acmecorp",
"namespace": "documentation",
"name": "network-policy-rule-1",
"uid": "48fd3cae-8716-42b2-9863-a70bd4550791",
"description": "",
"disabled": false,
"labels": {
},
"annotations": {
},
"owner_view": null,
"metadata": null,
"system_metadata": null,
"object": null,
"get_spec": null,
"status_set": [
]
}
]
}