The
rolebindings client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.SPACE and PROJECT resource types are supported for single-binding CRUD, and ResourceID must encode the same resource type. Only one binding per user per resource is allowed. All ID fields on role-binding requests are strict IDs — name resolution is not performed.
List Role Bindings
List returns a paginated list of role bindings for the authenticated user’s account, filtered by resource type. Defaults to a page size of 50. ResourceType is required — the zero value is rejected by the server. UserID, when non-empty, filters bindings to a specific user.
Signature:
Get a Role Binding
Get returns a single role binding by ID.
Signature:
Create a Role Binding
Create issues a POST to create a new role binding and returns the created binding.
Signature:
Update a Role Binding
Update changes the role assigned by an existing binding and returns the updated binding.
Signature:
Delete a Role Binding
Delete removes a role binding by ID. It returns only an error.
Signature: