Skip to main content

metadata_stores

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

Overview

Namemetadata_stores
TypeResource
Idgoogle.aiplatform.metadata_stores

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the MetadataStore instance.
descriptionstringDescription of the MetadataStore.
createTimestringOutput only. Timestamp when this MetadataStore was created.
dataplexConfigobjectRepresents Dataplex integration settings.
encryptionSpecobjectRepresents a customer-managed encryption key spec that can be applied to a top-level resource.
stateobjectRepresents state information for a MetadataStore.
updateTimestringOutput only. Timestamp when this MetadataStore was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, metadataStoresId, projectsIdRetrieves a specific MetadataStore.
listSELECTlocationsId, projectsIdLists MetadataStores for a Location.
createINSERTlocationsId, projectsIdInitializes a MetadataStore, including allocation of resources.
deleteDELETElocationsId, metadataStoresId, projectsIdDeletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).

SELECT examples

Lists MetadataStores for a Location.

SELECT
name,
description,
createTime,
dataplexConfig,
encryptionSpec,
state,
updateTime
FROM google.aiplatform.metadata_stores
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.aiplatform.metadata_stores (
locationsId,
projectsId,
dataplexConfig,
encryptionSpec,
description
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ dataplexConfig }}',
'{{ encryptionSpec }}',
'{{ description }}'
;

DELETE example

Deletes the specified metadata_stores resource.

/*+ delete */
DELETE FROM google.aiplatform.metadata_stores
WHERE locationsId = '{{ locationsId }}'
AND metadataStoresId = '{{ metadataStoresId }}'
AND projectsId = '{{ projectsId }}';