Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idgoogle.datastore.projects

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
exportexecprojectIdExports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
importexecprojectIdImports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
lookupexecprojectIdLooks up entities by key.
run_queryexecprojectIdQueries for entities.
run_aggregation_queryexecprojectIdRuns an aggregation query.
begin_transactionexecprojectIdBegins a new transaction.
commitexecprojectIdCommits a transaction, optionally creating, deleting or modifying some entities.
rollbackexecprojectIdRolls back a transaction.
allocate_idsexecprojectIdAllocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
reserve_idsexecprojectIdPrevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.

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
projectIdstring

Lifecycle Methods

Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.

EXEC google.datastore.projects.export 
@projectId='{{ projectId }}' --required
@@json=
'{
"labels": "{{ labels }}",
"entityFilter": "{{ entityFilter }}",
"outputUrlPrefix": "{{ outputUrlPrefix }}"
}';