Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.
Stay organized with collections Save and categorize content based on your preferences.

google.appengine.api.datastore_admin module

Summary

The Python datastore admin API for managing indices and schemas.

Contents

google.appengine.api.datastore_admin.CreateIndex(index)source

Creates a new composite index in the datastore for this app.

Parameters

index – entity_pb.CompositeIndex

Returns

int, the id allocated to the index

google.appengine.api.datastore_admin.DeleteIndex(index)source

Deletes an index. The entire index definition must be present.

Parameters

index – entity_pb.CompositeIndex

google.appengine.api.datastore_admin.GetIndices(_app=None)source

Fetches all composite indices in the datastore for this app.

Returns

list of entity_pb.CompositeIndex

google.appengine.api.datastore_admin.UpdateIndex(index)source

Updates an index’s status. The entire index definition must be present.

Parameters

index – entity_pb.CompositeIndex