read Networking V1Namespaced Network Policy
GET {{baseUrl}}/apis/networking.k8s.io/v1/namespaces/:namespace/networkpolicies/:name?exact=<boolean>&export=<boolean>&pretty=<string>
read the specified NetworkPolicy
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
exact | string | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | |
export | string | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | |
pretty | string | If 'true', then the output is pretty printed. |
RESPONSES
status: OK
{"apiVersion":"\u003cstring\u003e","kind":"\u003cstring\u003e","metadata":{"annotations":{},"clusterName":"sint laboris","creationTimestamp":"2003-08-22T22:55:56.637Z","deletionGracePeriodSeconds":31280186,"deletionTimestamp":"2009-08-16T00:05:30.295Z","finalizers":["reprehenderit exercitation qui nisi","in ut dolor qui"],"generateName":"d","generation":79362885,"labels":{},"managedFields":[{"apiVersion":"id","fieldsType":"cupidatat sed sint","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"esse ad Excepteur","operation":"irure occaecat nostrud mollit","time":"1960-10-19T18:53:33.385Z"},{"apiVersion":"enim proident minim sit dolor","fieldsType":"ut sit aliqua eu eiusmod","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"eiusmod fugiat","operation":"non ut","time":"2006-04-16T21:08:21.793Z"}],"name":"consectetur","namespace":"cillum","ownerReferences":[{"apiVersion":"in dolore","kind":"ut","name":"voluptate elit id ","uid":"officia veniam quis pariatur","blockOwnerDeletion":false,"controller":false},{"apiVersion":"aliqua incididunt sunt","kind":"Excepteur veniam exercitation fugiat nostrud","name":"dolor velit ex tempor ad","uid":"in irure sunt nisi","blockOwnerDeletion":true,"controller":true}],"resourceVersion":"voluptate aute magna dolor","selfLink":"Du","uid":"occaecat voluptate ea"},"spec":{"podSelector":{"matchExpressions":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"matchLabels":{}},"egress":[{"ports":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"to":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"ports":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"to":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"ingress":[{"from":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"ports":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"from":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"ports":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"policyTypes":["Duis in magna anim","dolor est"]}}