Skip to main content

role_bindings

Creates, updates, deletes, gets or lists a role_bindings resource.

Overview

Namerole_bindings
TypeResource
Idconfluent.iam.role_bindings

Fields

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space").
api_versionstringAPIVersion defines the schema version of this representation of a resource.
crn_patternstringA CRN that specifies the scope and resource patterns necessary for the role to bind
kindstringKind defines the object this REST resource represents.
metadata``ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
principalstringThe principal User to bind the role to
role_namestringThe name of the role to bind to the principal

Methods

NameAccessible byRequired ParamsDescription
get_iam_v2role_bindingSELECTidGeneral Availability Make a request to read a role binding.
list_iam_v2role_bindingsSELECTcrn_patternGeneral Availability Retrieve a sorted, filtered, paginated list of all role bindings.
create_iam_v2role_bindingINSERTGeneral Availability Make a request to create a role binding.
delete_iam_v2role_bindingDELETEidGeneral Availability Make a request to delete a role binding.

SELECT examples

General Availability Make a request to read a role binding.

SELECT
id,
api_version,
crn_pattern,
kind,
metadata,
principal,
role_name
FROM confluent.iam.role_bindings
WHERE id = '{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new role_bindings resource.

/*+ create */
INSERT INTO confluent.iam.role_bindings (
data__principal,
data__role_name,
data__crn_pattern
)
SELECT
'{{ principal }}',
'{{ role_name }}',
'{{ crn_pattern }}'
;

DELETE example

Deletes the specified role_bindings resource.

/*+ delete */
DELETE FROM confluent.iam.role_bindings
WHERE id = '{{ id }}';