patch Networking V1Namespaced Network Policy

PATCH {{baseUrl}}/apis/networking.k8s.io/v1/namespaces/:namespace/networkpolicies/:name?dryRun=<string>&fieldManager=<string>&force=<boolean>&pretty=<string>

partially update the specified NetworkPolicy

Request Params

KeyDatatypeRequiredDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldManagerstringfieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
forcestringForce is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
prettystringIf 'true', then the output is pretty printed.

Request Body

<object>

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

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;]}}