# ClusterRoleBinding

ClusterRoleBindingClusterRoleBinding references a ClusterRole, but not contain it.apiVersion: rbac.authorization.k8s.io/v1import "k8s.io/api/rbac/v1"ClusterRoleBindingClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata (ObjectMeta)Standard object's metadata.roleRef (RoleRef), requiredRoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.RoleRef contains information that points to the role being usedroleRef.apiGroup (string), requiredAPIGroup is the group for the resource being referencedroleRef.kind (string), requiredKind is the type of resource being referencedroleRef.name (string), requiredName is the name of resource being referencedsubjects ([]Subject)Atomic: will be replaced during a mergeSubjects holds references to the objects the role applies to.Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.subjects.kind (string), requiredKind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.subjects.name (string), requiredName of the object being referenced.subjects.apiGroup (string)APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.subjects.namespace (string)Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.ClusterRoleBindingListClusterRoleBindingList is a collection of ClusterRoleBindingsapiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingListmetadata (ListMeta)Standard object's metadata.items ([]ClusterRoleBinding), requiredItems is a list of ClusterRoleBindingsOperationsget read the specified ClusterRoleBindingHTTP RequestGET /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}Parametersname (in path): string, requiredname of the ClusterRoleBindingpretty (in query): stringprettyResponse200 (ClusterRoleBinding): OK401: Unauthorizedlist list or watch objects of kind ClusterRoleBindingHTTP RequestGET /apis/rbac.authorization.k8s.io/v1/clusterrolebindingsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ClusterRoleBindingList): OK401: Unauthorizedcreate create a ClusterRoleBindingHTTP RequestPOST /apis/rbac.authorization.k8s.io/v1/clusterrolebindingsParametersbody: ClusterRoleBinding, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ClusterRoleBinding): OK201 (ClusterRoleBinding): Created202 (ClusterRoleBinding): Accepted401: Unauthorizedupdate replace the specified ClusterRoleBindingHTTP RequestPUT /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}Parametersname (in path): string, requiredname of the ClusterRoleBindingbody: ClusterRoleBinding, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ClusterRoleBinding): OK201 (ClusterRoleBinding): Created401: Unauthorizedpatch partially update the specified ClusterRoleBindingHTTP RequestPATCH /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}Parametersname (in path): string, requiredname of the ClusterRoleBindingbody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ClusterRoleBinding): OK201 (ClusterRoleBinding): Created401: Unauthorizeddelete delete a ClusterRoleBindingHTTP RequestDELETE /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}Parametersname (in path): string, requiredname of the ClusterRoleBindingbody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (Status): OK202 (Status): Accepted401: Unauthorizeddeletecollection delete collection of ClusterRoleBindingHTTP RequestDELETE /apis/rbac.authorization.k8s.io/v1/clusterrolebindingsParametersbody: DeleteOptionscontinue (in query): stringcontinuedryRun (in query): stringdryRunfieldSelector (in query): stringfieldSelectorgracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentiallabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondsResponse200 (Status): OK401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.