[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-20。"],[[["\u003cp\u003eThe Modules API offers functions to get information about the current operating environment, including module, version, and instance.\u003c/p\u003e\n"],["\u003cp\u003eThis API can be used to get the address of a module, version, or instance, allowing requests to be sent between instances.\u003c/p\u003e\n"],["\u003cp\u003eThe Modules API is designed for first-generation runtimes and provides information for upgrading to the corresponding second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eFor automatic scaled modules, the instance ID is returned as a unique base64 encoded value.\u003c/p\u003e\n"],["\u003cp\u003eCommunication between modules can be achieved by fetching the target module's hostname or by using the URL Fetch service.\u003c/p\u003e\n"]]],[],null,["# Using the Modules API\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nGo Java PHP Python\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n|\n| /services/access). If you are updating to the App Engine runtime, refer to the [Upgrade to second-generation runtimes]() page to learn about your migration options for legacy bundled services.\n\nThe Modules API provides functions that return information about the current\noperating environment (module, version, and instance).\n\nThe Modules API also has functions that retrieve the address of a module, a\nversion, or an instance. This allows an application to send requests from one\ninstance to another, in both the development and production environments.\n\nThe instance ID of an automatic scaled module will be returned as a unique\nbase64 encoded value, e.g. `e4b565394caa`.\n\nYou can communicate between modules in the same app by fetching the hostname of\nthe target module:\n\nYou can also use the [URL Fetch](/appengine/docs/standard/services/urlfetch/outbound-requests) service."]]