google.appengine.api.modules.set_num_instances

Sets the number of instances on the module and version.

instances The number of instances to set.
module The module to set the number of instances for, if None the current module will be used.
version The version set the number of instances for, if None the current version will be used.

InvalidVersionError if the given module version isn't valid, TransientError if there is an issue persisting the change. TypeError if the given instances type is invalid.