create Networking V1Namespaced Network Policy
POST {{baseUrl}}/apis/networking.k8s.io/v1/namespaces/:namespace/networkpolicies?dryRun=nulla&fieldManager=nulla&pretty=nulla
create a 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"=>"qui elit officia ut", "kind"=>"qui dolore irure tempor id", "metadata"=>{"annotations"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "clusterName"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "creationTimestamp"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "deletionGracePeriodSeconds"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "deletionTimestamp"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "finalizers"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "generateName"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "generation"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "labels"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "managedFields"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "namespace"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ownerReferences"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "resourceVersion"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "selfLink"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "uid"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "spec"=>{"podSelector"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "egress"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ingress"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "policyTypes"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"apiVersion":"qui elit officia ut","kind":"qui dolore irure tempor id","metadata":{"annotations":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"clusterName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"creationTimestamp":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"deletionGracePeriodSeconds":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"deletionTimestamp":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"finalizers":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"generateName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"generation":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"labels":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"managedFields":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"namespace":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"ownerReferences":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceVersion":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"selfLink":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"uid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"spec":{"podSelector":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"egress":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"ingress":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"policyTypes":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}