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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The resource name of the MetadataStore instance.
createTimestring (google-datetime)Output only. Timestamp when this MetadataStore was created.
dataplexConfigobjectOptional. Dataplex integration settings. (id: GoogleCloudAiplatformV1MetadataStoreDataplexConfig)
descriptionstringDescription of the MetadataStore.
encryptionSpecobjectCustomer-managed encryption key spec for a Metadata Store. If set, this Metadata Store and all sub-resources of this Metadata Store are secured using this key. (id: GoogleCloudAiplatformV1EncryptionSpec)
stateobjectOutput only. State information of the MetadataStore. (id: GoogleCloudAiplatformV1MetadataStoreMetadataStoreState)
updateTimestring (google-datetime)Output only. Timestamp when this MetadataStore was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, metadataStoresIdRetrieves a specific MetadataStore.
listselectprojectsId, locationsIdpageSize, pageTokenLists MetadataStores for a Location.
createinsertprojectsId, locationsIdmetadataStoreIdInitializes a MetadataStore, including allocation of resources.
deletedeleteprojectsId, locationsId, metadataStoresIdforceDeletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).

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
locationsIdstring
metadataStoresIdstring
projectsIdstring
forceboolean
metadataStoreIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Retrieves a specific MetadataStore.

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

INSERT examples

Initializes a MetadataStore, including allocation of resources.

INSERT INTO google.aiplatform.metadata_stores (
data__encryptionSpec,
data__description,
data__dataplexConfig,
projectsId,
locationsId,
metadataStoreId
)
SELECT
'{{ encryptionSpec }}',
'{{ description }}',
'{{ dataplexConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ metadataStoreId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).

DELETE FROM google.aiplatform.metadata_stores
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND metadataStoresId = '{{ metadataStoresId }}' --required
AND force = '{{ force }}';