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/v1/projects/{projectId}:export
Description of what data from the project is included in the export.
outputUrlPrefix
string
Required. 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: gs://BUCKET_NAME[/NAMESPACE_PATH], where BUCKET_NAME is the name of the Cloud Storage bucket and NAMESPACE_PATH is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see Object name considerations.
The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That value should be used for subsequent projects.import operations.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-30 UTC."],[[["\u003cp\u003eThis service exports a copy of Datastore entities to another storage system, such as Google Cloud Storage, though recent updates may not be reflected in the export.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST method to \u003ccode\u003ehttps://datastore.googleapis.com/v1/projects/{projectId}:export\u003c/code\u003e, and requires a project ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003eoutputUrlPrefix\u003c/code\u003e string field indicating the destination on Google Cloud Storage for the exported data, plus it may contain \u003ccode\u003elabels\u003c/code\u003e and \u003ccode\u003eentityFilter\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eThe export operation's progress can be monitored via the Operation resource, and the output is only available once the operation is complete.\u003c/p\u003e\n"],["\u003cp\u003eThe process requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/datastore\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]