Skip to main content

invitations

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

Overview

Nameinvitations
TypeResource
Idconfluent.iam.invitations

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").
accepted_atstringThe timestamp that the invitation was accepted
api_versionstringAPIVersion defines the schema version of this representation of a resource.
auth_typestringThe user/invitee's authentication type. Note that only the OrganizationAdmin role can invite AUTH_TYPE_LOCAL users to SSO organizations. The user's auth_type is set as AUTH_TYPE_SSO by default if the organization has SSO enabled. Otherwise, the user's auth_type is AUTH_TYPE_LOCAL by default.
creatorobjectThe invitation creator
emailstringThe user/invitee's email address
expires_atstringThe timestamp that the invitation will expire
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.
statusstringThe status of invitations
userobjectThe user/invitee

Methods

NameAccessible byRequired ParamsDescription
get_iam_v2invitationSELECTidGeneral Availability Make a request to read an invitation.
list_iam_v2invitationsSELECTGeneral Availability Retrieve a sorted, filtered, paginated list of all invitations.
create_iam_v2invitationINSERTGeneral Availability Make a request to create an invitation. The newly invited user will not have any permissions. Give the user permission by assigning them to one or more roles by creating role bindings for the created user.
delete_iam_v2invitationDELETEidGeneral Availability Make a request to delete an invitation. Delete will deactivate the user if the user didn't accept the invitation yet.

SELECT examples

General Availability Retrieve a sorted, filtered, paginated list of all invitations.

SELECT
id,
accepted_at,
api_version,
auth_type,
creator,
email,
expires_at,
kind,
metadata,
status,
user
FROM confluent.iam.invitations
;

INSERT example

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

/*+ create */
INSERT INTO confluent.iam.invitations (
data__email,
data__auth_type,
data__user,
data__creator
)
SELECT
'{{ email }}',
'{{ auth_type }}',
'{{ user }}',
'{{ creator }}'
;

DELETE example

Deletes the specified invitations resource.

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