create Rbac Authorization V1Cluster Role
POST {{baseUrl}}/apis/rbac.authorization.k8s.io/v1/clusterroles?dryRun=irure&fieldManager=irure&fieldValidation=irure&pretty=irure
create a ClusterRole
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. | |
fieldValidation | string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the ServerSideFieldValidation feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the ServerSideFieldValidation feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the ServerSideFieldValidation feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | |
pretty | string | If 'true', then the output is pretty printed. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"aggregationRule":{"clusterRoleSelectors":[{"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":{"veniam_8":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"voluptate01":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},{"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":{"Excepteur1df":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"adipisicing_95":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"enim_0":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"pariatur__72":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}]},"apiVersion":"magna est aliquip anim","kind":"dolor occaecat","metadata":{"annotations":{"et_960":"","fugiat7":"","aliqua_2":"","nullac":""},"creationTimestamp":"1964-10-27T08:38:07.000Z","deletionGracePeriodSeconds":-1477384,"deletionTimestamp":"1963-11-30T05:46:48.461Z","finalizers":["",""],"generateName":"do cillum sit aliqua","generation":-39921257,"labels":{"amet29":"","ut9":""},"managedFields":[{"apiVersion":"Excepteur voluptate sed","fieldsType":"consectetur cupidatat","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"ipsum quis","operation":"adipisi","subresource":"laborum mollit in sunt","time":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"apiVersion":"Duis sit dolore","fieldsType":"proident sint dolore venia","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"tempor ullamco commodo nulla consectetur","operation":"Lorem in sunt officia ad","subresource":"incididunt ipsum","time":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"name":"commodo sit","namespace":"enim","ownerReferences":[{"apiVersion":"","kind":"","name":"","uid":"","blockOwnerDeletion":true,"controller":false},{"apiVersion":"","kind":"","name":"","uid":"","blockOwnerDeletion":true,"controller":false}],"resourceVersion":"culpa occaecat nisi ut","selfLink":"non elit dolore","uid":"minim dolore ea dolore cupidatat"},"rules":[{"verbs":["",""],"apiGroups":["",""],"nonResourceURLs":["",""],"resourceNames":["",""],"resources":["",""]},{"verbs":["",""],"apiGroups":["",""],"nonResourceURLs":["",""],"resourceNames":["",""],"resources":["",""]}]}