Configurez et déployez un environnement qui inclut le proxy d'API helloworld.
Créez un environnement
Placez le curseur sur le dossier environments, puis cliquez sur .
L'assistant de création d'environnement s'ouvre.
Saisissez dev comme nom d'environnement, puis appuyez sur Entrée.
L'environnement est créé.
Développez le dossier de l'environnement dev pour en afficher le contenu.
Lorsque vous créez un environnement, un ensemble de fichiers de configuration est inclus par défaut dans le dossier d'environnement dev pour configurer votre déploiement, ainsi que tous les masques de débogage, hooks de flux ou serveurs cibles requis.
Configurez les détails du déploiement pour le proxy d'API helloworld dans l'environnement :
Placez le curseur sur le fichier deployments.json, puis cliquez sur .
L'assistant Déploiement s'ouvre.
Sélectionnez le proxy de l'API helloworld pour l'ajouter au déploiement, puis cliquez sur OK.
Le fichier deployments.json est ouvert dans l'éditeur. Le fichier a été mis à jour pour inclure le proxy d'API helloworld dans le tableau de déploiement proxies :
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 focuses on configuring and deploying an environment, specifically for the \u003ccode\u003ehelloworld\u003c/code\u003e API proxy, within Apigee or Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves creating a 'dev' environment folder, where default configuration files are generated to manage deployment settings.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edeployments.json\u003c/code\u003e file is used to configure which API proxies, such as \u003ccode\u003ehelloworld\u003c/code\u003e, will be deployed to the designated environment.\u003c/p\u003e\n"],["\u003cp\u003eDeployment of the 'dev' environment results in a successful deployment message and the display of deployed application information within the emulators section.\u003c/p\u003e\n"],["\u003cp\u003ePrior to initiating the deployment process, it is recommended that the user has installed the Apigee Emulator.\u003c/p\u003e\n"]]],[],null,["# Step 3: Configure and deploy an environment\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\n\u003cbr /\u003e\n\nConfigure and deploy an environment that includes the `helloworld` API proxy.\n| **Note:** Before deploying an environment, ensure that you have [installed the Apigee Emulator](/apigee/docs/api-platform/local-development/vscode/manage-apigee-emulator#install).\n\n1. Create an environment:\n 1. Position your cursor over the **environments** folder and click .\n\n The **Create environment** wizard opens.\n 2. Enter **dev** for the environment name and press **Enter** .\n\n The environment is created.\n 3. Expand the **dev** environment folder to view its contents.\n\n When you create an environment, a set of configuration files are\n included by default in the `dev` environment folder for\n configuring your deployment and any required debug masks, flow hooks,\n or target servers.\n2. Configure the deployment details for the `helloworld` API proxy in the environment:\n 1. Position your cursor over the **deployments.json** file and click .\n\n The Deployments wizard opens.\n 2. Select the **helloworld** API proxy to add it to the deployment and click **OK** .\n\n The `deployments.json` file is opened in the editor. The file has been updated to include the `helloworld` API proxy in the `proxies` deployment array: \n\n ```\n {\n \"proxies\": [\n {\n \"name\": \"helloworld\"\n }\n ],\n \"sharedflows\": []\n }\n ```\n3. Deploy the **dev** environment:\n 1. Position your cursor over the **dev** environment folder in the Apigee section and click .\n\n | **Note:** If prompted to select a test bundle to export, click **Deploy without a test bundle** . This prompt displays only if you have created a test bundle in your Apigee workspace. You'll create and export a test bundle in the next step. \n\n The `dev` environment is deployed and the **Output** tab shows a success message.\n\n The `helloworld` deployed application information is displayed in the **emulators** section:\n\n**Congratulations!** You've deployed your first API proxy application. In the next step, you'll test the API proxy using curl.\n\n\n[1](/apigee/docs/api-platform/local-development/vscode/tutorial-create-workspace)\n\n\n[2](/apigee/docs/api-platform/local-development/vscode/tutorial-create-proxy)\n\n\n[3](/apigee/docs/api-platform/local-development/vscode/tutorial-deploy)\n\n\n[(NEXT) Step 4: Test your API](/apigee/docs/api-platform/local-development/vscode/tutorial-test)\n\n\n[5](/apigee/docs/api-platform/local-development/vscode/tutorial-change-target-endpoint)\n\n\n[6](/apigee/docs/api-platform/local-development/vscode/tutorial-attach-policy)\n\n\n[7](/apigee/docs/api-platform/local-development/vscode/tutorial-deploy-apigee)\n\n\n[8](/apigee/docs/api-platform/local-development/vscode/tutorial-promote)\n\n\u003cbr /\u003e"]]