NumInstances returns the number of instances of the given module/version.
If either argument is the empty string it means the default. This only works
if you are using manual_scaling in your app's config file.
SetNumInstances sets the number of instances of the given module.version to the
specified value. If either module or version are the empty string it means the
default.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003emodule\u003c/code\u003e package provides functions for interacting with different modules within an application, allowing control and insight into module operations.\u003c/p\u003e\n"],["\u003cp\u003eFunctions such as \u003ccode\u003eDefaultVersion\u003c/code\u003e, \u003ccode\u003eList\u003c/code\u003e, and \u003ccode\u003eVersions\u003c/code\u003e enable the retrieval of information about modules, including their default versions, names, and associated versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNumInstances\u003c/code\u003e and \u003ccode\u003eSetNumInstances\u003c/code\u003e functions allow you to manage the number of instances for a specific module and version, particularly when using manual scaling in your application's configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe functions \u003ccode\u003eStart\u003c/code\u003e and \u003ccode\u003eStop\u003c/code\u003e enable you to start and stop specific versions of modules, or the default version if the version string is empty.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/v2/module (v2.0.6)\n\n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/google.golang.org/appengine/v2/module). \n\u003cbr /\u003e\n\nPackage module provides functions for interacting with modules.\n\nThe appengine package contains functions that report the identity of the app,\nincluding the module name. \n\nFunctions\n---------\n\n### func DefaultVersion\n\n func DefaultVersion(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nDefaultVersion returns the default version of the specified module.\nIf module is the empty string, it means the default module. \n\n### func List\n\n func List(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nList returns the names of modules belonging to this application. \n\n### func NumInstances\n\n func NumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) (https://pkg.go.dev/builtin#int, https://pkg.go.dev/builtin#error)\n\nNumInstances returns the number of instances of the given module/version.\nIf either argument is the empty string it means the default. This only works\nif you are using manual_scaling in your app's config file. \n\n### func SetNumInstances\n\n func SetNumInstances(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string, instances https://pkg.go.dev/builtin#int) https://pkg.go.dev/builtin#error\n\nSetNumInstances sets the number of instances of the given module.version to the\nspecified value. If either module or version are the empty string it means the\ndefault. \n\n### func Start\n\n func Start(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error\n\nStart starts the specified version of the specified module.\nIf either module or version are the empty string, it means the default. \n\n### func Stop\n\n func Stop(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module, version https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error\n\nStop stops the specified version of the specified module.\nIf either module or version are the empty string, it means the default. \n\n### func Versions\n\n func Versions(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, module https://pkg.go.dev/builtin#string) ([]https://pkg.go.dev/builtin#string, https://pkg.go.dev/builtin#error)\n\nVersions returns the names of the versions that belong to the specified module.\nIf module is the empty string, it means the default module."]]