Skip to main content

identity_pools

Creates, updates, deletes, gets or lists an identity_pools resource.

Overview

Nameidentity_pools
TypeResource
Idconfluent.iam.identity_pools

Fields

The following fields are returned by SELECT queries:

Identity Pool.

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"). (example: dlz-f3a90de)
display_namestringThe name of the IdentityPool. (example: My Identity Pool)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (iam/v2)
descriptionstringA description of how this IdentityPool is used (example: Prod Access to Kafka clusters to Release Engineering)
filterstringA filter expression in Supported Common Expression Language (CEL) that specifies which identities can authenticate using your identity pool (see Set identity pool filters for more details). (example: claims.aud=="confluent" && claims.group!="invalid_group")
identity_claimstringThe JSON Web Token (JWT) claim to extract the authenticating identity to Confluent resources from (see Registered Claim Names for more details). This appears in the audit log records, showing, for example, that "identity Z used identity pool X to access topic A". (example: claims.sub)
kindstringKind defines the object this REST resource represents. (IdentityPool)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
principalstringRepresents the federated identity associated with this pool. (example: pool-abc)
statestringThe current state of the identity pool (example: ENABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iam_v2_identity_poolselectprovider_id, idMake a request to read an identity pool.
list_iam_v2_identity_poolsselectprovider_idpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all identity pools.
create_iam_v2_identity_poolinsertprovider_id, display_name, description, identity_claim, filterassigned_resource_ownerMake a request to create an identity pool.
update_iam_v2_identity_poolupdateprovider_id, idMake a request to update an identity pool.

delete_iam_v2_identity_pooldeleteprovider_id, idMake a request to delete an identity pool.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the identity pool.
provider_idstringThe Provider
assigned_resource_ownerstringThe resource_id of the principal who will be assigned resource owner on the created identity pool. Principal can be group-mapping (group-xxx), user (u-xxx), service-account (sa-xxx) or identity-pool (pool-xxx). (example: u-a83k9b)
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read an identity pool.

SELECT
id,
display_name,
api_version,
description,
filter,
identity_claim,
kind,
metadata,
principal,
state
FROM confluent.iam.identity_pools
WHERE provider_id = '{{ provider_id }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Make a request to create an identity pool.

INSERT INTO confluent.iam.identity_pools (
display_name,
description,
identity_claim,
filter,
provider_id,
assigned_resource_owner
)
SELECT
'{{ display_name }}' /* required */,
'{{ description }}' /* required */,
'{{ identity_claim }}' /* required */,
'{{ filter }}' /* required */,
'{{ provider_id }}',
'{{ assigned_resource_owner }}'
RETURNING
id,
display_name,
api_version,
description,
filter,
identity_claim,
kind,
metadata,
principal,
state
;

UPDATE examples

Make a request to update an identity pool.

UPDATE confluent.iam.identity_pools
SET
display_name = '{{ display_name }}',
description = '{{ description }}',
identity_claim = '{{ identity_claim }}',
filter = '{{ filter }}'
WHERE
provider_id = '{{ provider_id }}' --required
AND id = '{{ id }}' --required
RETURNING
id,
display_name,
api_version,
description,
filter,
identity_claim,
kind,
metadata,
principal,
state;

DELETE examples

Make a request to delete an identity pool.

DELETE FROM confluent.iam.identity_pools
WHERE provider_id = '{{ provider_id }}' --required
AND id = '{{ id }}' --required
;