Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
ID de la région
Le REGION_ID est un code abrégé que Google attribue en fonction de la région que vous sélectionnez lors de la création de votre application. Le code ne correspond pas à un pays ou une province, même si certains ID de région peuvent ressembler aux codes de pays et de province couramment utilisés. Pour les applications créées après février 2020, REGION_ID.r est inclus dans les URL App Engine. Pour les applications existantes créées avant cette date, l'ID de région est facultatif dans l'URL.
Plusieurs méthodes sont disponibles pour assurer la communication entre vos services App Engine ou avec d'autres services, tels que les services Google Cloud et des applications externes.
L'approche la plus simple pour communiquer avec votre service App Engine consiste à envoyer des requêtes HTTP ciblées, dans lesquelles l'URL comprend le nom ou l'ID d'une ressource. Par exemple, vous pouvez inclure l'ID d'un service ou d'une version que vous souhaitez cibler, en plus de l'ID du projet Google Cloud correspondant :
Pour partager des données entre plusieurs bases de données et votre application App Engine ou une autre application externe, consultez la page Comprendre le stockage des données et des fichiers.
Dans l'environnement standard, vous pouvez également transmettre des requêtes entre services et depuis des services vers des points de terminaison externes à l'aide de l'API URL Fetch.
En outre, les services de l'environnement standard qui résident dans le même projet Google Cloud peuvent également utiliser l'une des API App Engine pour les tâches suivantes :
Vous ne pouvez pas utiliser les chemins d'URL suivants :
Chemins d'accès se terminant par /eventlog
Chemins commençant par /_ah/
Certains chemins se terminant par z
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/12/22 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/12/22 (UTC)."],[[["\u003cp\u003eThe REGION_ID is a code assigned by Google based on the region selected when creating an app, included in App Engine URLs for apps created after February 2020.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine services can communicate through targeted HTTP requests using URLs that include the service or version ID and project ID.\u003c/p\u003e\n"],["\u003cp\u003eData can be shared across databases, App Engine apps, and external applications using methods outlined in the "Understanding Data and File Storage" documentation.\u003c/p\u003e\n"],["\u003cp\u003eWithin the same Google Cloud project, App Engine services can share a memcache instance and collaborate using Task Queues via specific APIs.\u003c/p\u003e\n"],["\u003cp\u003eCertain URL paths are restricted and cannot be used, including those ending with \u003ccode\u003e/eventlog\u003c/code\u003e, starting with \u003ccode\u003e/_ah/\u003c/code\u003e, and some ending with \u003ccode\u003ez\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Communicating Between Your Services\n\n### Region ID\n\nThe \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e is an abbreviated code that Google assigns\nbased on the region you select when you create your app. The code does not\ncorrespond to a country or province, even though some region IDs may appear\nsimilar to commonly used country and province codes. For apps created after\nFebruary 2020, \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e`.r` is included in\nApp Engine URLs. For existing apps created before this date, the\nregion ID is optional in the URL.\n\nLearn more\n[about region IDs](/appengine/docs/legacy/standard/java/how-requests-are-routed#region-id). \nOK\n\nYou can use various methods to communicate between your App Engine\nservices or with other services, including Google Cloud services and\nexternal applications.\n\nThe simplest approach for communicating with your App Engine service is\nto send targeted HTTP requests, where the URL includes the name or ID of a\nresource. For example, you can include the ID of a service or version that you\nwant to target, in addition to the corresponding Google Cloud project ID: \n\n\n https://\u003cvar translate=\"no\"\u003eVERSION\u003c/var\u003e-dot-\u003cvar translate=\"no\"\u003eSERVICE\u003c/var\u003e-dot-\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003e\u003ca href=\"#appengine-urls\" style=\"border-bottom: 1px dotted #999\" class=\"devsite-dialog-button\" data-modal-dialog-id=\"regional_url\" track-type=\"progressiveHelp\" track-name=\"modalHelp\" track-metadata-goal=\"regionalURL\"\u003eREGION_ID\u003c/a\u003e\u003c/var\u003e.r.appspot.com\n\nFor details about targeting your services, including how to define HTTPS URLs,\nsee [How Requests are\nRouted](/appengine/docs/legacy/standard/java/how-requests-are-routed).\nTo authorize the requests between your services and other Google Cloud\nservices, see [Setting Up Authentication for Server to Server Production\nApplications](/docs/authentication/production).\n\nTo share data across databases and your App Engine app or some other\nexternal application, see\n\n[Understanding Data and File\nStorage](/appengine/docs/legacy/standard/java/using-third-party-databases).\n\n\nIn the standard environment, you can also pass requests between services and\nfrom services to external endpoints using the\n[URL Fetch](/appengine/docs/legacy/standard/java/issue-requests) API.\n\nAdditionally, services in the standard environment that reside within the same\nGoogle Cloud project can also use one of the App Engine APIs for the\nfollowing tasks:\n\n- Share a single [memcache](/appengine/docs/legacy/standard/java/memcache) instance.\n- Collaborate by assigning work between services through [Task Queues](/appengine/docs/legacy/standard/java/taskqueue).\n\nReserved URL paths\n------------------\n\nIt is not possible to use the following URL paths:\n\n- Paths ending with `/eventlog`\n- Paths starting with `/_ah/`\n- Some paths ending with `z`"]]