ClusterRole [page]deterministic
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
`apiVersion: rbac.authorization.k8s.io/v1`
`import "k8s.io/api/rbac/v1"`
## ClusterRole {#ClusterRole}
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>aggregationRule</code><br/><em><a href="">AggregationRule</a></em></td> <td>AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.</td> </tr> <tr> <td><code>apiVersion</code><br/><em>string</em></td> <td>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</td> </tr> <tr> <td><code>kind</code><br/><em>string</em></td> <td>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</td> </tr> <tr> <td><code>metadata</code><br/><em><a href="">ObjectMeta</a></em></td> <td>Standard object's metadata.</td> </tr> <tr> <td><code>rules</code><br/><em><a href="">PolicyRule array</a></em></td> <td>Rules holds all the PolicyRules for this ClusterRole</td> </tr> </tbody> </table>
## ClusterRoleList {#ClusterRoleList}
ClusterRoleList is a collection of ClusterRoles
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>apiVersion</code><br/><em>string</em></td> <td>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</td> </tr> <tr> <td><code>items</code> <strong>*</strong><br/><em><a href="">ClusterRole array</a></em></td> <td>Items is a list of ClusterRoles</td> </tr> <tr> <td><code>kind</code><br/><em>string</em></td> <td>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</td> </tr> <tr> <td><code>metadata</code><br/><em><a href="">ListMeta</a></em></td> <td>Standard object's metadata.</td> </tr> </tbody> </table>
## AggregationRule {#AggregationRule}
AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>clusterRoleSelectors</code><br/><em><a href="">LabelSelector array</a></em></td> <td>ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added</td> </tr> </tbody> </table>
## Operations {#Operations}
<hr>
### `post` Create
#### HTTP Request
POST /apis/rbac.authorization.k8s.io/v1/clusterroles
#### Query Parameters
<table> <thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>pretty</code></td> <td><em>string</em></td> <td>If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent …(trimmed)