Skip to main content

featurestores

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

Overview

Namefeaturestores
TypeResource
Idgoogle.aiplatform.featurestores

Fields

NameDatatypeDescription
namestringOutput only. Name of the Featurestore. Format: projects/{project}/locations/{location}/featurestores/{featurestore}
createTimestringOutput only. Timestamp when this Featurestore was created.
encryptionSpecobjectRepresents a customer-managed encryption key spec that can be applied to a top-level resource.
etagstringOptional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectOptional. The labels with user-defined metadata to organize your Featurestore. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Featurestore(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
onlineServingConfigobjectOnlineServingConfig specifies the details for provisioning online serving resources.
onlineStorageTtlDaysintegerOptional. TTL in days for feature values that will be stored in online serving storage. The Feature Store online storage periodically removes obsolete feature values older than online_storage_ttl_days since the feature generation time. Note that online_storage_ttl_days should be less than or equal to offline_storage_ttl_days for each EntityType under a featurestore. If not set, default to 4000 days
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. State of the featurestore.
updateTimestringOutput only. Timestamp when this Featurestore was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfeaturestoresId, locationsId, projectsIdGets details of a single Featurestore.
listSELECTlocationsId, projectsIdLists Featurestores in a given project and location.
createINSERTlocationsId, projectsIdCreates a new Featurestore in a given project and location.
deleteDELETEfeaturestoresId, locationsId, projectsIdDeletes a single Featurestore. The Featurestore must not contain any EntityTypes or force must be set to true for the request to succeed.
patchUPDATEfeaturestoresId, locationsId, projectsIdUpdates the parameters of a single Featurestore.
batch_read_feature_valuesEXECfeaturestoresId, locationsId, projectsIdBatch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.
search_featuresEXEClocationsId, projectsIdSearches Features matching a query in a given project.

SELECT examples

Lists Featurestores in a given project and location.

SELECT
name,
createTime,
encryptionSpec,
etag,
labels,
onlineServingConfig,
onlineStorageTtlDays,
satisfiesPzi,
satisfiesPzs,
state,
updateTime
FROM google.aiplatform.featurestores
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.aiplatform.featurestores (
locationsId,
projectsId,
onlineStorageTtlDays,
labels,
encryptionSpec,
etag,
onlineServingConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ onlineStorageTtlDays }}',
'{{ labels }}',
'{{ encryptionSpec }}',
'{{ etag }}',
'{{ onlineServingConfig }}'
;

UPDATE example

Updates a featurestores resource.

/*+ update */
UPDATE google.aiplatform.featurestores
SET
onlineStorageTtlDays = '{{ onlineStorageTtlDays }}',
labels = '{{ labels }}',
encryptionSpec = '{{ encryptionSpec }}',
etag = '{{ etag }}',
onlineServingConfig = '{{ onlineServingConfig }}'
WHERE
featurestoresId = '{{ featurestoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified featurestores resource.

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