role_bindings
Creates, updates, deletes, gets or lists a role_bindings
resource.
Overview
Name | role_bindings |
Type | Resource |
Id | confluent.iam.role_bindings |
Fields
Name | Datatype | Description |
---|---|---|
id | string | ID 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_version | string | APIVersion defines the schema version of this representation of a resource. |
crn_pattern | string | A CRN that specifies the scope and resource patterns necessary for the role to bind |
kind | string | Kind defines the object this REST resource represents. |
metadata | `` | ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. |
principal | string | The principal User to bind the role to |
role_name | string | The name of the role to bind to the principal |
Methods
SELECT
examples
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.
- All Properties
- Manifest
/*+ create */
INSERT INTO confluent.iam.role_bindings (
data__principal,
data__role_name,
data__crn_pattern
)
SELECT
'{{ principal }}',
'{{ role_name }}',
'{{ crn_pattern }}'
;
- name: role_bindings
props:
- name: principal
value: string
- name: role_name
value: string
- name: crn_pattern
value: string
DELETE
example
Deletes the specified role_bindings
resource.
/*+ delete */
DELETE FROM confluent.iam.role_bindings
WHERE id = '{{ id }}';