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

KeyDatatypeRequiredDescription
exactstringShould the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18.
exportstringShould this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18.
prettystringIf 'true', then the output is pretty printed.

RESPONSES

status: OK

{&quot;apiVersion&quot;:&quot;\u003cstring\u003e&quot;,&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;metadata&quot;:{&quot;annotations&quot;:{},&quot;clusterName&quot;:&quot;sint laboris&quot;,&quot;creationTimestamp&quot;:&quot;2003-08-22T22:55:56.637Z&quot;,&quot;deletionGracePeriodSeconds&quot;:31280186,&quot;deletionTimestamp&quot;:&quot;2009-08-16T00:05:30.295Z&quot;,&quot;finalizers&quot;:[&quot;reprehenderit exercitation qui nisi&quot;,&quot;in ut dolor qui&quot;],&quot;generateName&quot;:&quot;d&quot;,&quot;generation&quot;:79362885,&quot;labels&quot;:{},&quot;managedFields&quot;:[{&quot;apiVersion&quot;:&quot;id&quot;,&quot;fieldsType&quot;:&quot;cupidatat sed sint&quot;,&quot;fieldsV1&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;manager&quot;:&quot;esse ad Excepteur&quot;,&quot;operation&quot;:&quot;irure occaecat nostrud mollit&quot;,&quot;time&quot;:&quot;1960-10-19T18:53:33.385Z&quot;},{&quot;apiVersion&quot;:&quot;enim proident minim sit dolor&quot;,&quot;fieldsType&quot;:&quot;ut sit aliqua eu eiusmod&quot;,&quot;fieldsV1&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;manager&quot;:&quot;eiusmod fugiat&quot;,&quot;operation&quot;:&quot;non ut&quot;,&quot;time&quot;:&quot;2006-04-16T21:08:21.793Z&quot;}],&quot;name&quot;:&quot;consectetur&quot;,&quot;namespace&quot;:&quot;cillum&quot;,&quot;ownerReferences&quot;:[{&quot;apiVersion&quot;:&quot;in dolore&quot;,&quot;kind&quot;:&quot;ut&quot;,&quot;name&quot;:&quot;voluptate elit id &quot;,&quot;uid&quot;:&quot;officia veniam quis pariatur&quot;,&quot;blockOwnerDeletion&quot;:false,&quot;controller&quot;:false},{&quot;apiVersion&quot;:&quot;aliqua incididunt sunt&quot;,&quot;kind&quot;:&quot;Excepteur veniam exercitation fugiat nostrud&quot;,&quot;name&quot;:&quot;dolor velit ex tempor ad&quot;,&quot;uid&quot;:&quot;in irure sunt nisi&quot;,&quot;blockOwnerDeletion&quot;:true,&quot;controller&quot;:true}],&quot;resourceVersion&quot;:&quot;voluptate aute magna dolor&quot;,&quot;selfLink&quot;:&quot;Du&quot;,&quot;uid&quot;:&quot;occaecat voluptate ea&quot;},&quot;spec&quot;:{&quot;podSelector&quot;:{&quot;matchExpressions&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;matchLabels&quot;:{}},&quot;egress&quot;:[{&quot;ports&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;to&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;ports&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;to&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}],&quot;ingress&quot;:[{&quot;from&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;ports&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;from&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;ports&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}],&quot;policyTypes&quot;:[&quot;Duis in magna anim&quot;,&quot;dolor est&quot;]}}