Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
A API Modules oferece funções que retornam informações sobre o ambiente operacional
atual (módulo, versão e instância).
A API Modules também tem funções que recuperam o endereço de um módulo, uma versão ou uma instância. Isso permite que um aplicativo envie solicitações de uma
instância para outra nos ambientes de desenvolvimento e de produção.
O ID da instância de um módulo com escalonamento automático será retornado como um valor exclusivo
com codificação base64, por exemplo e4b565394caa.
É possível estabelecer comunicação entre os módulos no mesmo app, buscando o nome do host
do módulo de destino:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\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."]]