create Rbac Authorization V1Cluster Role
POST {{baseUrl}}/apis/rbac.authorization.k8s.io/v1/clusterroles?dryRun=<string>&fieldManager=<string>&pretty=<string>
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. | |
pretty | string | If 'true', then the output is pretty printed. |
Request Body
{"aggregationRule"=>{"clusterRoleSelectors"=>[{"matchExpressions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "matchLabels"=>{}}, {"matchExpressions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "matchLabels"=>{}}]}, "apiVersion"=>"<string>", "kind"=>"<string>", "metadata"=>{"annotations"=>{}, "clusterName"=>"nulla aliquip", "creationTimestamp"=>"1990-09-09T13:42:47.046Z", "deletionGracePeriodSeconds"=>-84043054, "deletionTimestamp"=>"1944-06-29T10:06:32.140Z", "finalizers"=>["dolore", "eiusmod sit tempor irure"], "generateName"=>"fugiat nisi veniam", "generation"=>-68177508, "labels"=>{}, "managedFields"=>[{"apiVersion"=>"aliqua ex dolor quis", "fieldsType"=>"non cillum nostrud commodo", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"ullamco ea Duis", "operation"=>"nostrud pariatur qui Duis", "time"=>"1974-04-18T15:01:47.236Z"}, {"apiVersion"=>"aliqua fugiat nisi pariatur", "fieldsType"=>"laboris tempor", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"consequat ullamco", "operation"=>"incididunt minim", "time"=>"2016-08-27T09:34:24.295Z"}], "name"=>"irure eu", "namespace"=>"ut anim sint dolor proident", "ownerReferences"=>[{"apiVersion"=>"nulla pariatur cupidatat id", "kind"=>"offici", "name"=>"sit anim laboris do", "uid"=>"sunt velit veniam labore", "blockOwnerDeletion"=>false, "controller"=>false}, {"apiVersion"=>"aliqua", "kind"=>"aliqua reprehenderit ullamco", "name"=>"cupidatat ea Ut", "uid"=>"fugiat id", "blockOwnerDeletion"=>true, "controller"=>true}], "resourceVersion"=>"enim ut tempor", "selfLink"=>"fugiat in commodo consequat", "uid"=>"eiusmod culpa consequat"}, "rules"=>[{"verbs"=>["magna anim", "velit reprehenderit ut ipsum"], "apiGroups"=>["ea cupidatat non sint deserunt", "enim anim fugiat"], "nonResourceURLs"=>["nostrud fug", "laborum reprehenderit in"], "resourceNames"=>["deserunt dolor commodo eu", "qui amet sed velit"], "resources"=>["qui irure ", "culpa fugiat"]}, {"verbs"=>["in amet", "in ea nulla"], "apiGroups"=>["est anim sed pariatur", "ex dol"], "nonResourceURLs"=>["dolor velit quis eiusmod", "sint in irure sunt"], "resourceNames"=>["dolore do", "officia non magna laborum ad"], "resources"=>["mollit laboris ex qui", "exercitation sed fugiat ullamco"]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"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":{}},{"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":{}}]},"apiVersion":"\u003cstring\u003e","kind":"\u003cstring\u003e","metadata":{"annotations":{},"clusterName":"dolor cillum sint","creationTimestamp":"1960-02-02T08:43:10.195Z","deletionGracePeriodSeconds":-81645228,"deletionTimestamp":"1986-03-31T01:12:37.397Z","finalizers":["anim ad laboris","est occaecat"],"generateName":"ad dolore reprehenderit quis","generation":-88631158,"labels":{},"managedFields":[{"apiVersion":"cupidatat Ut ex","fieldsType":"ex est labore quis","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"et Lorem aliquip dolore","operation":"do dese","time":"1982-09-26T16:26:07.175Z"},{"apiVersion":"officia occaecat","fieldsType":"ea proident magna cillum","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"sunt tempor reprehender","operation":"ad do","time":"1970-02-17T10:51:05.737Z"}],"name":"in ut","namespace":"Excep","ownerReferences":[{"apiVersion":"commodo occaecat cillum veniam","kind":"laboris in est Ut","name":"cillum sunt consequat sint","uid":"s","blockOwnerDeletion":true,"controller":false},{"apiVersion":"sint consequat in Excepteur","kind":"enim sit aute","name":"ullamco non","uid":"irure Ut sint dolore","blockOwnerDeletion":false,"controller":true}],"resourceVersion":"enim voluptate eiusmod","selfLink":"non labore consectetur id cupidatat","uid":"eiusmod"},"rules":[{"verbs":["aute aliquip si","quis fugiat"],"apiGroups":["Duis ex elit","est incididunt"],"nonResourceURLs":["irure n","minim dolore voluptate commodo"],"resourceNames":["officia reprehenderit","Ut"],"resources":["mollit velit ex occaecat","amet"]},{"verbs":["magna","laboris culpa fugia"],"apiGroups":["fugiat nostrud dolor ad magna","eu ad"],"nonResourceURLs":["commodo reprehenderit sint amet magna","ut dolor"],"resourceNames":["sit","do ex deserunt"],"resources":["quis ea incididunt","voluptate"]}]}