create Rbac Authorization V1alpha1Cluster Role
POST {{baseUrl}}/apis/rbac.authorization.k8s.io/v1alpha1/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"=>"anim reprehenderit incididunt", "creationTimestamp"=>"1973-03-14T15:29:37.560Z", "deletionGracePeriodSeconds"=>70779394, "deletionTimestamp"=>"1974-03-23T23:15:08.842Z", "finalizers"=>["nulla mollit sit nisi par", "in officia dolor amet et"], "generateName"=>"laboris dolor cupidatat", "generation"=>-42908151, "labels"=>{}, "managedFields"=>[{"apiVersion"=>"ea anim dolore cupidatat", "fieldsType"=>"ut velit magna deserunt officia", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"consequat magna", "operation"=>"nostrud ut", "time"=>"2011-08-31T07:49:29.074Z"}, {"apiVersion"=>"est", "fieldsType"=>"ut culpa aute", "fieldsV1"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "manager"=>"sunt ex laborum", "operation"=>"do", "time"=>"1965-08-13T21:49:37.885Z"}], "name"=>"est commodo in anim", "namespace"=>"eu", "ownerReferences"=>[{"apiVersion"=>"velit ex voluptate", "kind"=>"ea magna", "name"=>"aliquip dolor mollit labore proident", "uid"=>"sint tempor nulla dolore in", "blockOwnerDeletion"=>true, "controller"=>true}, {"apiVersion"=>"eiusmod dolor nulla", "kind"=>"do", "name"=>"esse veniam dolor in", "uid"=>"id", "blockOwnerDeletion"=>true, "controller"=>false}], "resourceVersion"=>"ut nisi aute", "selfLink"=>"sed irure", "uid"=>"eiusmod"}, "rules"=>[{"verbs"=>["veniam eiusmod nulla", "officia ex"], "apiGroups"=>["mollit commodo", "Ut dolore laboris eu"], "nonResourceURLs"=>["qui in pariatur nulla", "consequat dolor mollit ex"], "resourceNames"=>["ex", "cillum exercitation"], "resources"=>["dolor pariatur eiusmod sit ad", "est nulla aute"]}, {"verbs"=>["dolore", "reprehenderit magna"], "apiGroups"=>["ipsum commodo ", "Duis in adipisicing veniam"], "nonResourceURLs"=>["adipisicing enim ullamco", "ut"], "resourceNames"=>["non cillum eu", "aliquip sed enim"], "resources"=>["culpa Ut", "eiusmod Ut veniam elit"]}]}
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":"amet ut ut sed","creationTimestamp":"1941-02-20T09:28:22.303Z","deletionGracePeriodSeconds":-27322121,"deletionTimestamp":"1966-08-09T16:54:45.531Z","finalizers":["sint","commodo voluptate"],"generateName":"ut eiusmod sunt","generation":-36222012,"labels":{},"managedFields":[{"apiVersion":"ex aliquip","fieldsType":"Excepteur ex eiusmod commodo","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"velit in labore ","operation":"commodo exercitation ut","time":"1989-06-27T12:18:47.208Z"},{"apiVersion":"ea veniam sint","fieldsType":"pariatur","fieldsV1":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"manager":"Duis in consequat ullamco","operation":"labor","time":"2013-05-27T09:59:25.056Z"}],"name":"labore","namespace":"ut sint qui","ownerReferences":[{"apiVersion":"sit","kind":"tempor aliqua quis officia","name":"et tempor","uid":"ipsum","blockOwnerDeletion":true,"controller":false},{"apiVersion":"Duis veniam","kind":"eu nostrud","name":"nisi","uid":"officia aute ut","blockOwnerDeletion":true,"controller":true}],"resourceVersion":"ex ve","selfLink":"dolore in qu","uid":"anim"},"rules":[{"verbs":["et i","mollit commodo Lorem ipsum"],"apiGroups":["sed fugiat eu Excepteur","pariatur nulla"],"nonResourceURLs":["do mollit","moll"],"resourceNames":["veniam Excepteur laborum ut qui","in minim laborum"],"resources":["Ut laboris consequat","sed deserunt do occaecat"]},{"verbs":["dolor laboris","voluptate id dolor"],"apiGroups":["Duis esse eu id","occaecat in cupidatat"],"nonResourceURLs":["id minim ad qui","Duis in"],"resourceNames":["proi","anim ea velit"],"resources":["commodo quis","qui irure"]}]}