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.
HTTP request
POST https://datastore.googleapis.com/v1beta1/projects/{projectId}:export
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
projectId |
Project ID against which to make the request. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"labels": {
string: string,
...
},
"entityFilter": {
object ( |
Fields | |
---|---|
labels |
Client-assigned labels. An object containing a list of |
entityFilter |
Description of what data from the project is included in the export. |
outputUrlPrefix |
Location for the export metadata and data files. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So outputUrlPrefix should be of the form: The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple projects.export operations without conflict. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/datastore
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.