Cloud Datastore API
Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
Data & analytics#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
Endpoints 18
projects
- POSTAllocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
/v1/projects/:projectId:allocateIdsAllocates IDs for the given keys, which is useful for referencing an entity before it is inserted. - POSTBegins a new transaction.
/v1/projects/:projectId:beginTransactionBegins a new transaction. - POSTCommits a transaction, optionally creating, deleting or modifying some entities.
/v1/projects/:projectId:commitCommits a transaction, optionally creating, deleting or modifying some entities. - POSTExports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google…
/v1/projects/:projectId:exportExports 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… - POSTImports entities into Google Cloud Datastore
/v1/projects/:projectId:importImports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be… - POSTLooks up entities by key.
/v1/projects/:projectId:lookupLooks up entities by key. - POSTPrevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
/v1/projects/:projectId:reserveIdsPrevents the supplied keys' IDs from being auto-allocated by Cloud Datastore. - POSTRolls back a transaction.
/v1/projects/:projectId:rollbackRolls back a transaction. - POSTRuns an aggregation query.
/v1/projects/:projectId:runAggregationQueryRuns an aggregation query. - POSTQueries for entities.
/v1/projects/:projectId:runQueryQueries for entities.
projects.indexes
- GETLists the indexes that match the specified filters
/v1/projects/:projectId/indexes?filter=string&pageSize=0&pageToken=stringLists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return… - POSTCreates the specified index
/v1/projects/:projectId/indexesCreates the specified index. A newly created index's initial state is CREATING. On completion of the returned google.longrunning.Operation, the state will be… - GETGets an index.
/v1/projects/:projectId/indexes/:indexIdGets an index. - DELETEDeletes an existing index
/v1/projects/:projectId/indexes/:indexIdDeletes an existing index. An index can only be deleted if it is in a READY or ERROR state. On successful execution of the request, the index will be in a…
projects.operations
- POSTStarts asynchronous cancellation on a long-running operation
/v1/:name:cancelStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the… - GETGets the latest state of a long-running operation
/v1/:nameGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. - DELETEDeletes a long-running operation
/v1/:nameDeletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If… - GETLists operations that match the specified filter in the request
/v1/:name/operations?filter=string&pageSize=0&pageToken=string&returnPartialSuccess=trueLists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
API details
- Base URL
https://datastore.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 18 operations on 15 pathsPOST 12GET 4DELETE 2
- Main resources
- projects 10projects.indexes 4projects.operations 4
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Cloud Datastore API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Cloud Datastore API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.” (POST /v1/projects/:projectId:allocateIds), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Cloud Datastore API?
Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. It is listed under Data & analytics and has 18 endpoints.
Who publishes the Cloud Datastore API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Cloud Datastore API?
Requests go to https://datastore.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Cloud Datastore API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Cloud Datastore API have?
18 operations on 15 paths (12 POST, 4 GET, 2 DELETE). The largest groups are projects, projects.indexes, projects.operations.
Is forking the Cloud Datastore API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.