Skip to main content

identity_mapping_stores

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

Overview

Nameidentity_mapping_stores
TypeResource
Idgoogle.discoveryengine.identity_mapping_stores

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The full resource name of the identity mapping store. Format: projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
cmekConfigobjectConfigurations used to enable CMEK data encryption with Cloud KMS keys. (id: GoogleCloudDiscoveryengineV1CmekConfig)
kmsKeyNamestringInput only. The KMS key to be used to protect this Identity Mapping Store at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the Identity Mapping Store will be protected by the KMS key, as indicated in the cmek_config field.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_identity_mapping_stores_getselectprojectsId, locationsId, identityMappingStoresIdGets the Identity Mapping Store.
projects_locations_identity_mapping_stores_listselectprojectsId, locationsIdpageSize, pageTokenLists all Identity Mapping Stores.
projects_locations_identity_mapping_stores_createinsertprojectsId, locationsIdcmekConfigName, disableCmek, identityMappingStoreIdCreates a new Identity Mapping Store.
projects_locations_identity_mapping_stores_deletedeleteprojectsId, locationsId, identityMappingStoresIdDeletes the Identity Mapping Store.
projects_locations_identity_mapping_stores_import_identity_mappingsexecprojectsId, locationsId, identityMappingStoresIdImports a list of Identity Mapping Entries to an Identity Mapping Store.
projects_locations_identity_mapping_stores_purge_identity_mappingsexecprojectsId, locationsId, identityMappingStoresIdPurges specified or all Identity Mapping Entries from an Identity Mapping Store.

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
identityMappingStoresIdstring
locationsIdstring
projectsIdstring
cmekConfigNamestring
disableCmekboolean
identityMappingStoreIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets the Identity Mapping Store.

SELECT
name,
cmekConfig,
kmsKeyName
FROM google.discoveryengine.identity_mapping_stores
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND identityMappingStoresId = '{{ identityMappingStoresId }}' -- required;

INSERT examples

Creates a new Identity Mapping Store.

INSERT INTO google.discoveryengine.identity_mapping_stores (
data__name,
data__kmsKeyName,
projectsId,
locationsId,
cmekConfigName,
disableCmek,
identityMappingStoreId
)
SELECT
'{{ name }}',
'{{ kmsKeyName }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ cmekConfigName }}',
'{{ disableCmek }}',
'{{ identityMappingStoreId }}'
RETURNING
name,
cmekConfig,
kmsKeyName
;

DELETE examples

Deletes the Identity Mapping Store.

DELETE FROM google.discoveryengine.identity_mapping_stores
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND identityMappingStoresId = '{{ identityMappingStoresId }}' --required;

Lifecycle Methods

Imports a list of Identity Mapping Entries to an Identity Mapping Store.

EXEC google.discoveryengine.identity_mapping_stores.projects_locations_identity_mapping_stores_import_identity_mappings 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@identityMappingStoresId='{{ identityMappingStoresId }}' --required
@@json=
'{
"inlineSource": "{{ inlineSource }}"
}';