patch Policy V1beta1Pod Security Policy

PATCH {{baseUrl}}/apis/policy/v1beta1/podsecuritypolicies/:name?dryRun=<string>&fieldManager=<string>&force=<boolean>&pretty=<string>

partially update the specified PodSecurityPolicy

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;in deserunt id&quot;,&quot;creationTimestamp&quot;:&quot;1996-01-29T04:42:54.629Z&quot;,&quot;deletionGracePeriodSeconds&quot;:39553694,&quot;deletionTimestamp&quot;:&quot;1987-06-16T10:06:20.447Z&quot;,&quot;finalizers&quot;:[&quot;tempor ess&quot;,&quot;et&quot;],&quot;generateName&quot;:&quot;amet Ut minim&quot;,&quot;generation&quot;:-28488792,&quot;labels&quot;:{},&quot;managedFields&quot;:[{&quot;apiVersion&quot;:&quot;in in in dolor&quot;,&quot;fieldsType&quot;:&quot;nostrud labore&quot;,&quot;fieldsV1&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;manager&quot;:&quot;sit ullamco dolor ut&quot;,&quot;operation&quot;:&quot;id Lorem in&quot;,&quot;time&quot;:&quot;1947-10-05T19:14:45.912Z&quot;},{&quot;apiVersion&quot;:&quot;occaecat exercitation nulla&quot;,&quot;fieldsType&quot;:&quot;la&quot;,&quot;fieldsV1&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;manager&quot;:&quot;officia do&quot;,&quot;operation&quot;:&quot;dolore&quot;,&quot;time&quot;:&quot;1974-03-05T10:09:35.555Z&quot;}],&quot;name&quot;:&quot;amet et exercitation proident reprehenderit&quot;,&quot;namespace&quot;:&quot;pariatur anim Duis incididunt quis&quot;,&quot;ownerReferences&quot;:[{&quot;apiVersion&quot;:&quot;officia laborum dolore fugiat&quot;,&quot;kind&quot;:&quot;anim&quot;,&quot;name&quot;:&quot;velit dolore ea adipisicing&quot;,&quot;uid&quot;:&quot;magna mollit velit Ut elit&quot;,&quot;blockOwnerDeletion&quot;:false,&quot;controller&quot;:true},{&quot;apiVersion&quot;:&quot;enim adipisicing in eiusmod&quot;,&quot;kind&quot;:&quot;commodo ex qui ipsum dolore&quot;,&quot;name&quot;:&quot;nisi ipsum ut voluptate aliqua&quot;,&quot;uid&quot;:&quot;ipsum irure Lorem nisi&quot;,&quot;blockOwnerDeletion&quot;:true,&quot;controller&quot;:true}],&quot;resourceVersion&quot;:&quot;cupidatat&quot;,&quot;selfLink&quot;:&quot;ex occaecat&quot;,&quot;uid&quot;:&quot;nulla quis consequat&quot;},&quot;spec&quot;:{&quot;seLinux&quot;:{&quot;rule&quot;:&quot;veniam ad ex&quot;,&quot;seLinuxOptions&quot;:{&quot;level&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;role&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;user&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}},&quot;runAsUser&quot;:{&quot;rule&quot;:&quot;laboris enim&quot;,&quot;ranges&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;supplementalGroups&quot;:{&quot;ranges&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;rule&quot;:&quot;ad&quot;},&quot;fsGroup&quot;:{&quot;ranges&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;rule&quot;:&quot;ut labore ea nisi&quot;},&quot;allowPrivilegeEscalation&quot;:false,&quot;allowedCSIDrivers&quot;:[{&quot;name&quot;:&quot;eu&quot;},{&quot;name&quot;:&quot;do non reprehenderit&quot;}],&quot;allowedCapabilities&quot;:[&quot;dolor eu enim voluptate in&quot;,&quot;voluptate Ut cupidatat&quot;],&quot;allowedFlexVolumes&quot;:[{&quot;driver&quot;:&quot;id elit do nostrud sint&quot;},{&quot;driver&quot;:&quot;in non ex&quot;}],&quot;allowedHostPaths&quot;:[{&quot;pathPrefix&quot;:&quot;in reprehenderit&quot;,&quot;readOnly&quot;:true},{&quot;pathPrefix&quot;:&quot;nulla do id veniam&quot;,&quot;readOnly&quot;:false}],&quot;allowedProcMountTypes&quot;:[&quot;tempor laboris reprehenderit dolore dolor&quot;,&quot;dolor Lorem laborum occaecat&quot;],&quot;allowedUnsafeSysctls&quot;:[&quot;fugiat ipsum nostrud&quot;,&quot;minim veniam sit&quot;],&quot;defaultAddCapabilities&quot;:[&quot;minim velit&quot;,&quot;tempor anim non laborum et&quot;],&quot;defaultAllowPrivilegeEscalation&quot;:true,&quot;forbiddenSysctls&quot;:[&quot;Excepteur anim&quot;,&quot;labore in commodo ullamco&quot;],&quot;hostIPC&quot;:true,&quot;hostNetwork&quot;:false,&quot;hostPID&quot;:true,&quot;hostPorts&quot;:[{&quot;min&quot;:-12878075,&quot;max&quot;:-25681253},{&quot;min&quot;:51882038,&quot;max&quot;:79949010}],&quot;privileged&quot;:false,&quot;readOnlyRootFilesystem&quot;:true,&quot;requiredDropCapabilities&quot;:[&quot;eu dolor Ut aute&quot;,&quot;ea sed sunt qui ut&quot;],&quot;runAsGroup&quot;:{&quot;rule&quot;:&quot;esse qui&quot;,&quot;ranges&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;runtimeClass&quot;:{&quot;allowedRuntimeClassNames&quot;:[&quot;sunt&quot;,&quot;sed ex adipi&quot;],&quot;defaultRuntimeClassName&quot;:&quot;cillum id veniam&quot;},&quot;volumes&quot;:[&quot;dolor labore&quot;,&quot;aliqua voluptate mollit&quot;]}}