Dans le volet de navigation de gauche, cliquez sur Développement du proxy > Proxys d'API.
Dans le volet Proxys d'API, cliquez sur + Créer.
Dans le volet Créer un proxy, sous Modèle de proxy, sélectionnez Proxy inverse (le plus courant).
Sous Détails du proxy, saisissez les informations suivantes :
Nom du proxy : saisissez myproxy. Dans les étapes suivantes de cette section, nous partons du principe qu'il s'agit du nom de votre proxy.
Chemin de base : défini automatiquement sur la valeur que vous saisissez pour Proxy name. Le chemin de base fait partie de l'URL utilisée pour envoyer des requêtes à votre API. Apigee utilise l'URL pour mettre en correspondance et acheminer les requêtes entrantes vers le proxy d'API approprié.
Description (facultatif) : saisissez une description pour votre nouveau proxy d'API, par exemple "Test Apigee avec un proxy simple".
Cible (API existante) : saisissez https://mocktarget.apigee.net.
Cela définit l'URL cible qu'Apigee appelle pour une requête adressée au proxy d'API. Le service "mocktarget" est hébergé sur Apigee et renvoie des données simples. Il ne nécessite aucune clé d'API ni jeton d'accès.
Cliquez sur Suivant.
Sous Déployer (facultatif); laissez le champ Environnements de déploiement inchangé. Dans cet exemple, vous créez simplement le proxy sans le déployer à ce stade.
Cliquez sur Créer.
Apigee crée le proxy et affiche un résumé des détails du proxy dans la vue Récapitulatif du proxy.
La section Déploiements est vide, car le proxy n'a pas encore été déployé.
En dessous, la section Points de terminaison affiche :
Points de terminaison du proxy : le chemin de base que vous avez défini pour le proxy, soit dans cet exemple /myproxy.
Points de terminaison cibles : le chemin de base que vous avez défini pour la cible, soit dans cet exemple https://mocktarget.apigee.net.
Apigee classique
Pour créer un proxy d'API simple dans l'interface utilisateur classique d'Apigee :
Dans la vue principale de l'interface utilisateur, cliquez sur Développer > Proxys d'API.
Dans la liste déroulante Select Environment (Sélectionner un environnement), sélectionnez l'environnement dans lequel vous souhaitez créer un proxy d'API.
L'interface utilisateur Apigee affiche la liste des proxys d'API pour cet environnement. Si vous n'avez pas encore créé de proxy, la liste est vide.
Cliquez sur Créer.
L'assistant de création de proxy démarre.
Sélectionnez Proxy inverse (solution la plus courante).
La vue Informations sur le proxy s'affiche.
Configurez votre proxy avec les paramètres suivants :
Nom du proxy : saisissez myproxy. Dans les étapes suivantes de cette section, nous partons du principe qu'il s'agit de l'ID de votre proxy.
Chemin de base du proxy : défini automatiquement sur /myproxy. Le chemin de base du proxy fait partie de l'URL utilisée pour envoyer des requêtes à votre API. Apigee utilise l'URL pour mettre en correspondance et acheminer les requêtes entrantes vers le proxy d'API approprié.
Description (facultatif) : saisissez une description pour votre nouveau proxy d'API, par exemple Test Apigee avec un proxy simple.
Cible (API existante) : saisissez https://mocktarget.apigee.net.
Cela définit l'URL cible qu'Apigee appelle pour une requête adressée au proxy d'API. Le service "mocktarget" est hébergé sur Apigee et renvoie des données simples. Il ne nécessite aucune clé d'API ni jeton d'accès.
Les détails de votre proxy API doivent se présenter comme suit :
Cliquez sur Suivant.
Sur l'écran Règles courantes, sélectionnez l'option de sécurité Direct (sans autorisation).
Cliquez sur Suivant.
Sur l'écran Résumé, cliquez sur Créer. (Laissez l'option Déploiement facultatif non sélectionnée.)
Apigee génère le proxy (parfois appelé package de proxy) :
Cliquez sur Accéder à la liste des proxys.
Apigee affiche la vue Proxy, qui affiche une liste de proxys d'API. Le nouveau proxy affiche un indicateur d'état gris, ce qui signifie qu'il n'a pas encore été déployé.
Vous avez créé un proxy d'API simple. Vous allez maintenant le déployer dans votre environnement.
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 2025/09/04 (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 2025/09/04 (UTC)."],[[["\u003cp\u003eThis guide provides instructions for creating a simple API proxy in both Apigee and Apigee hybrid environments using either the new Apigee in Cloud console or the classic Apigee UI.\u003c/p\u003e\n"],["\u003cp\u003eThe primary focus is on creating a "Reverse proxy," which routes incoming traffic to a backend service, specifically using the \u003ccode\u003ehttps://mocktarget.apigee.net\u003c/code\u003e URL for testing.\u003c/p\u003e\n"],["\u003cp\u003eThe API proxy creation process involves specifying details such as the proxy name, base path, description, and target URL, with the base path being a part of the URL used for API requests.\u003c/p\u003e\n"],["\u003cp\u003eThe created proxy can be reviewed in the proxy summary, where you can see the proxy and target endpoints, however it will not be deployed initially.\u003c/p\u003e\n"],["\u003cp\u003eThe created proxy is ready to be deployed, which will make it accessible to clients.\u003c/p\u003e\n"]]],[],null,["# Step 1: Create an API proxy\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\nIn this step, you will create a simple API proxy that calls a mock target service. \n\n### Apigee in Cloud console\n\n1. In the Google Cloud console, go to the **Proxy development \\\u003e API proxies** page.\n\n [Go to API proxies](https://console.cloud.google.com/apigee/proxies)\n2. Be sure that your organization name is selected from the project picker in the **Google Cloud** pane. The organization name is the same as your Google Cloud project name.\n3. Click **+ Create**.\n4. In the **Create a proxy** pane, under **Proxy template** , select **Reverse proxy (Most common)**. A reverse proxy simply routes incoming traffic to a backend service.\n5. Under **Proxy details** , enter the following:\n - **Proxy name:** Enter `myproxy`. The remaining steps in this section assume that this is your proxy's name.\n - **Base Path** : Automatically set to the value you enter for `Proxy name`. The **Base\n Path** is part of the URL used to make requests to your API. Apigee uses the URL to match and route incoming requests to the proper API proxy.\n - **Description (Optional)**: Enter a description for your new API proxy, such as \"Testing Apigee with a simple proxy.\"\n - **Target (Existing API)** : Enter `https://mocktarget.apigee.net`. This defines the target URL that Apigee invokes on a request to the API proxy. The mocktarget service is hosted at Apigee and returns simple data. It requires no API key or access token.\n - **Space (Optional)** : If your organization has Apigee Spaces enabled, you can associate the API proxy with a Space selected from the list of available options. For more information, see [Apigee Spaces overview](/apigee/docs/api-platform/system-administration/spaces/apigee-spaces-overview).\n - Click **Next**.\n6. Under **Deploy (optional)** leave the **Deployment environments** field unchanged. In this example, you just create the proxy without deploying it at this stage. You can also ignore the **Service Account** field. Leave it blank.\n7. Click **Create** .\n\n Apigee creates the new proxy and displays a summary of the proxy details in the\n **Proxy summary** pane.\n\n The **Deployments** section is empty because\n the proxy has not yet been deployed.\n8. In the **Revisions** section under **Endpoint summary** , click **View** .\n\n The endpoints view pane displays:\n - **Proxy endpoints** : The basepath you set for the proxy, which in this example is `/myproxy`.\n - **Target endpoints** : The basepath you set for the target, which in this example is `https://mocktarget.apigee.net`.\n9. Click **Close** to return to the Proxy summary page.\n\n### Classic Apigee\n\nTo create a simple API proxy in the classic Apigee UI:\n\n1. Open the [Apigee UI](https://apigee.google.com) in a browser.\n2. Click **Develop \\\u003e API Proxies** in the main view of the UI.\n\n3. From the **Select Environment** drop-down list, select the environment in which you want\n to create a new API proxy.\n\n The Apigee UI displays a list of API proxies for that environment. If you haven't created any\n proxies yet, the list is empty.\n4. Click **Create New** . \n\n The **Create Proxy** wizard starts:\n\n5. Select **Reverse proxy** (most common).\n\n The **Proxy details** view is displayed.\n6. Configure your proxy with the following settings:\n - **Proxy Name:** Enter `myproxy`. The remaining steps in this section assume that this is your proxy's ID.\n - **Proxy Base Path:** Automatically set to `/myproxy`. The **Proxy Base\n Path** is part of the URL used to make requests to your API. Apigee uses the URL to match and route incoming requests to the proper API proxy.\n - **Description** (Optional): Enter a description for your new API proxy, such as **Testing Apigee with a simple proxy**.\n - **Target (Existing API)** : Enter `https://mocktarget.apigee.net`. This defines the target URL that Apigee invokes on a request to the API proxy. The mocktarget service is hosted at Apigee and returns simple data. It requires no API key or access token.\n\n Your API proxy's details should look like the following:\n\n7. Click **Next**.\n8. On the **Common policies** screen, select **Pass through (no authorization)** as the security option.\n9. Click **Next**.\n10. On the **Summary** screen, click **Create** . (Leave the **Optional Deployment** unselected.)\n\n Apigee generates the proxy (sometimes referred to as *the proxy bundle*):\n\n11. Click **Go to proxy list** .\n\n Apigee displays the **Proxies** view, which displays a list of API proxies. The\n new proxy has a gray status indicator, meaning that it has not yet been deployed.\n\nNext you'll deploy the API proxy. A proxy must be deployed before it can be used by a client.\n[1](/apigee/docs/api-platform/get-started/create-proxy) [(NEXT) Step 2: Deploy the API proxy](/apigee/docs/api-platform/get-started/deploy-proxy) [3](/apigee/docs/api-platform/get-started/test-proxy) [4](/apigee/docs/api-platform/get-started/change-endpoint) [5](/apigee/docs/api-platform/get-started/add-policy)\n\n\u003cbr /\u003e"]]