replace Networking V1Namespaced Network Policy
PUT {{baseUrl}}/apis/networking.k8s.io/v1/namespaces/:namespace/networkpolicies/:name?dryRun=<string>&fieldManager=<string>&pretty=<string>
replace the specified NetworkPolicy
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
dryRun | string | When 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 | |
fieldManager | string | fieldManager 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. | |
pretty | string | If 'true', then the output is pretty printed. |
Request Body
{"apiVersion"=>"<string>", "kind"=>"<string>", "metadata"=>{"annotations"=>{}, "clusterName"=>"aute", "creationTimestamp"=>"1999-05-28T03:33:32.997Z", "deletionGracePeriodSeconds"=>-31665539, "deletionTimestamp"=>"1949-03-09T13:30:06.118Z", "finalizers"=>["ad elit", "dolor est qui nisi"], "generateName"=>"aliqua", "generation"=>-26747957, "labels"=>{}, "managedFields"=>[{"apiVersion"=>"ipsum Duis", "fieldsType"=>"quis", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"Excepteur aliqua labor", "operation"=>"tempor enim nulla sunt", "time"=>"1997-06-13T01:01:57.063Z"}, {"apiVersion"=>"ipsum magna", "fieldsType"=>"minim eu", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"aliquip occaecat velit ullamco in", "operation"=>"id Excepteur in ut", "time"=>"1996-12-25T23:22:48.920Z"}], "name"=>"minim", "namespace"=>"adipis", "ownerReferences"=>[{"apiVersion"=>"dolor ullamco", "kind"=>"commodo", "name"=>"in laborum qui Excepteur", "uid"=>"do fugiat ad aute", "blockOwnerDeletion"=>false, "controller"=>true}, {"apiVersion"=>"sint ullamco do sunt", "kind"=>"irure laborum", "name"=>"et quis nostrud", "uid"=>"nostrud", "blockOwnerDeletion"=>true, "controller"=>false}], "resourceVersion"=>"eu elit et ipsum", "selfLink"=>"dolor exercitation laborum ul", "uid"=>"ad officia laboris"}, "spec"=>{"podSelector"=>{"matchExpressions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "matchLabels"=>{}}, "egress"=>[{"ports"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "to"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, {"ports"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "to"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}], "ingress"=>[{"from"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "ports"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, {"from"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "ports"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}], "policyTypes"=>["sunt in ex", "quis"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"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"]}}