google.appengine.api.modules.get_current_instance_id

Returns the ID of the current instance.

If this is instance 2 of version "v1" of module "module5" for app "my-app", this function will return "2".

This is only valid for automatically-scaled modules; otherwise, None is returned.

String containing the ID of the instance, or None if this is not an automatically-scaled module.