Reference documentation and code samples for the Cloud Datastore v1 API class DatastoreAdmin.
Google Cloud Datastore Admin API
The Datastore Admin API provides several admin services for Cloud Datastore.
Concepts: Project, namespace, kind, and entity as defined in the Google Cloud
Datastore API.
Operation: An Operation represents work being performed in the background.
EntityFilter: Allows specifying a subset of entities in a project. This is
specified as a combination of kinds and namespaces (either or both of which
may be all).
Export/Import Service:
The Export/Import service provides the ability to copy all or a subset of
entities to/from Google Cloud Storage.
Exported data may be imported into Cloud Datastore for any Google Cloud
Platform project. It is not restricted to the export source project. It is
possible to export from one project and then import into another.
Exported data can also be loaded into Google BigQuery for analysis.
Exports and imports are performed asynchronously. An Operation resource is
created for each export/import. The state (including any errors encountered)
of the export/import may be queried via the Operation resource.
Index Service:
The index service manages Cloud Datastore composite indexes.
Index creation and deletion are performed asynchronously.
An Operation resource is created for each such asynchronous operation.
The state of the operation (including any errors encountered)
may be queried via the Operation resource.
Operation Service:
The Operations collection provides a record of actions performed for the
specified project (including any operations in progress). Operations are not
created directly but through calls on other collections or resources.
An operation that is not yet done may be cancelled. The request to cancel
is asynchronous and the operation may continue to run for some time after the
request to cancel is made.
An operation that is done may be deleted so that it is no longer listed as
part of the Operation collection.
ListOperations returns all pending operations, but not completed
operations.
Operations are created by service DatastoreAdmin, but are accessed via
service google.longrunning.Operations.
public static void BindService(ServiceBinderBase serviceBinder, DatastoreAdmin.DatastoreAdminBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the Google Cloud Datastore Admin API, specifically the \u003ccode\u003eDatastoreAdmin\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Datastore.Admin.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe Datastore Admin API offers services for managing Cloud Datastore, including exporting and importing data to/from Google Cloud Storage, and managing composite indexes.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes asynchronous operations for tasks like exports, imports, index creation, and deletion, with progress and errors tracked via an \u003ccode\u003eOperation\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines several available versions of the API, with version 2.4.0 being the most recent.\u003c/p\u003e\n"],["\u003cp\u003eIt also provides information about the methods \u003ccode\u003eBindService(DatastoreAdminBase)\u003c/code\u003e and \u003ccode\u003eBindService(ServiceBinderBase, DatastoreAdminBase)\u003c/code\u003e for creating and customizing service bindings.\u003c/p\u003e\n"]]],[],null,["# Cloud Datastore v1 API - Class DatastoreAdmin (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.3.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.2.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.1.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.0.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.4.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.3.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.2.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.1.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin) \n\n public static class DatastoreAdmin\n\nReference documentation and code samples for the Cloud Datastore v1 API class DatastoreAdmin.\n\nGoogle Cloud Datastore Admin API\n\nThe Datastore Admin API provides several admin services for Cloud Datastore.\n\nConcepts: Project, namespace, kind, and entity as defined in the Google Cloud\nDatastore API.\n\nOperation: An Operation represents work being performed in the background.\n\nEntityFilter: Allows specifying a subset of entities in a project. This is\nspecified as a combination of kinds and namespaces (either or both of which\nmay be all).\n\nExport/Import Service:\n\n- The Export/Import service provides the ability to copy all or a subset of entities to/from Google Cloud Storage.\n- Exported data may be imported into Cloud Datastore for any Google Cloud Platform project. It is not restricted to the export source project. It is possible to export from one project and then import into another.\n- Exported data can also be loaded into Google BigQuery for analysis.\n- Exports and imports are performed asynchronously. An Operation resource is created for each export/import. The state (including any errors encountered) of the export/import may be queried via the Operation resource.\n\nIndex Service:\n\n- The index service manages Cloud Datastore composite indexes.\n- Index creation and deletion are performed asynchronously. An Operation resource is created for each such asynchronous operation. The state of the operation (including any errors encountered) may be queried via the Operation resource.\n\nOperation Service:\n\n- The Operations collection provides a record of actions performed for the specified project (including any operations in progress). Operations are not created directly but through calls on other collections or resources.\n- An operation that is not yet done may be cancelled. The request to cancel is asynchronous and the operation may continue to run for some time after the request to cancel is made.\n- An operation that is done may be deleted so that it is no longer listed as part of the Operation collection.\n- ListOperations returns all pending operations, but not completed operations.\n- Operations are created by service DatastoreAdmin, but are accessed via service google.longrunning.Operations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DatastoreAdmin \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Datastore.Admin.V1](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.Admin.V1.dll\n\nMethods\n-------\n\n### BindService(DatastoreAdminBase)\n\n public static ServerServiceDefinition BindService(DatastoreAdmin.DatastoreAdminBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, DatastoreAdminBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, DatastoreAdmin.DatastoreAdminBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]