Skip to main content

prediction_api_key_registrations

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

Overview

Nameprediction_api_key_registrations
TypeResource
Idgoogle.recommendationengine.prediction_api_key_registrations

Fields

NameDatatypeDescription
apiKeystringThe API key.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_catalogs_event_stores_prediction_api_key_registrations_listSELECTcatalogsId, eventStoresId, locationsId, projectsIdList the registered apiKeys for use with predict method.
projects_locations_catalogs_event_stores_prediction_api_key_registrations_createINSERTcatalogsId, eventStoresId, locationsId, projectsIdRegister an API key for use with predict method.
projects_locations_catalogs_event_stores_prediction_api_key_registrations_deleteDELETEcatalogsId, eventStoresId, locationsId, predictionApiKeyRegistrationsId, projectsIdUnregister an apiKey from using for predict method.

SELECT examples

List the registered apiKeys for use with predict method.

SELECT
apiKey
FROM google.recommendationengine.prediction_api_key_registrations
WHERE catalogsId = '{{ catalogsId }}'
AND eventStoresId = '{{ eventStoresId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.recommendationengine.prediction_api_key_registrations (
catalogsId,
eventStoresId,
locationsId,
projectsId,
predictionApiKeyRegistration
)
SELECT
'{{ catalogsId }}',
'{{ eventStoresId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ predictionApiKeyRegistration }}'
;

DELETE example

Deletes the specified prediction_api_key_registrations resource.

/*+ delete */
DELETE FROM google.recommendationengine.prediction_api_key_registrations
WHERE catalogsId = '{{ catalogsId }}'
AND eventStoresId = '{{ eventStoresId }}'
AND locationsId = '{{ locationsId }}'
AND predictionApiKeyRegistrationsId = '{{ predictionApiKeyRegistrationsId }}'
AND projectsId = '{{ projectsId }}';