Skip to main content

datastores

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

Overview

Namedatastores
TypeResource
Idgoogle.apigee.datastores

Fields

NameDatatypeDescription
createTimestringOutput only. Datastore create time, in milliseconds since the epoch of 1970-01-01T00:00:00Z
datastoreConfigobjectConfiguration detail for datastore
displayNamestringRequired. Display name in UI
lastUpdateTimestringOutput only. Datastore last update time, in milliseconds since the epoch of 1970-01-01T00:00:00Z
orgstringOutput only. Organization that the datastore belongs to
selfstringOutput only. Resource link of Datastore. Example: /organizations/{org}/analytics/datastores/{uuid}
targetTypestringDestination storage type. Supported types gcs or bigquery.

Methods

NameAccessible byRequired ParamsDescription
organizations_analytics_datastores_getSELECTdatastoresId, organizationsIdGet a Datastore
organizations_analytics_datastores_listSELECTorganizationsIdList Datastores
organizations_analytics_datastores_createINSERTorganizationsIdCreate a Datastore for an org
organizations_analytics_datastores_deleteDELETEdatastoresId, organizationsIdDelete a Datastore from an org.
organizations_analytics_datastores_updateREPLACEdatastoresId, organizationsIdUpdate a Datastore
organizations_analytics_datastores_testEXECorganizationsIdTest if Datastore configuration is correct. This includes checking if credentials provided by customer have required permissions in target destination storage

SELECT examples

List Datastores

SELECT
createTime,
datastoreConfig,
displayName,
lastUpdateTime,
org,
self,
targetType
FROM google.apigee.datastores
WHERE organizationsId = '{{ organizationsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.apigee.datastores (
organizationsId,
datastoreConfig,
displayName,
targetType
)
SELECT
'{{ organizationsId }}',
'{{ datastoreConfig }}',
'{{ displayName }}',
'{{ targetType }}'
;

REPLACE example

Replaces all fields in the specified datastores resource.

/*+ update */
REPLACE google.apigee.datastores
SET
datastoreConfig = '{{ datastoreConfig }}',
displayName = '{{ displayName }}',
targetType = '{{ targetType }}'
WHERE
datastoresId = '{{ datastoresId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified datastores resource.

/*+ delete */
DELETE FROM google.apigee.datastores
WHERE datastoresId = '{{ datastoresId }}'
AND organizationsId = '{{ organizationsId }}';