Working with environments Stay organized with collections Save and categorize content based on your preferences.
This pageapplies toApigee andApigee hybrid.
View Apigee Edge documentation.![]()
This section describes how to create, edit, and delete environments withApigee.
About environments
Anenvironment is an isolated area within an organization where you cancreate anddeploy API proxies. Youcreate an environment during provisioning, and can later add more environments to your organization.
Environments and instances
Each environment must be attached to at least one Apigeeinstance. An instance is a region-specific virtual machine. Attaching an environment to an instance means the instance loads, deploys, and serves proxies for the environment.
The instance or instances an environment is attached to should match the region or regions with the most traffic for the environment. You can add the environment to an instance or move it to a different instance if more of the traffic is in the new instance's region.
To set and change the environment's instance, seeAttaching or removing an environment from an instance.
Note: Pay-as-you-go environments begin incurring charges once attached to an instance. Charges may accrue prior to any API traffic beginning. For more information about Pay-as-you-go pricing, see Pay-as-you-go example pricing.Creating environments
You can create a new environment using the Apigee UI or the Apigee API, as described in the following sections.Before you begin, it is important to note that Apigee and Apigee hybrid have limits on the number of environments and environment groups you can create per organization and per region. For details, seeLimits: Environment and organization.
Creating a new environment in the UI
Apigee in Cloud console
To create a new environment in Apigee Cloud console:
In the Google Cloud console, go to theManagement> Environments page.
- In theEnvironments pane, click+ Create Environment.
- In theCreate an environment pane, enter the following:
- Select environment type: If you are a Pay-as-you-go customer, clickSelect to choose the type of environment you want to create: Base, Intermediate, or Comprehensive.
The selection of environment type does not apply to Subscription customers and will not appear in the UI.
Name: The programmatic environment name. TheName can't be changed after it is created.
The name must contain between 2 and 32 characters which can be lower-case letters, numbers, or hyphens. The name must begin with a letter and cannot end with a hyphen. The name must be different from any other environment name in your organization.
- Display Name: The name for the environment that is displayed in the UI.
- Description: Optional. A description of the environment.
- Instance: Optional. Select the Apigee instance that will load, deploy, and serve traffic for the environment.
- Environment group: Optional. Select a checkbox to add the new environment to an existing environment group. ClickOK.
- Deployment type: Select whether you want to deploy individual API proxies or an archive of your API proxy configuration environment. For more information, seeSupported deployment types.Note: The deployment type used with this environment cannot be changed after the environment is created.
- Select environment type: If you are a Pay-as-you-go customer, clickSelect to choose the type of environment you want to create: Base, Intermediate, or Comprehensive.
- ClickCreate.
Once complete, the new environment is displayed in the table in theEnvironments pane.
Classic Apigee
To create a new environment in the classic Apigee UI:
- OpenApigee UI in a browser.
- SelectAdmin > Environments > Overview in the left navigation pane.
The UI displays a set of cards, each one representing an existing environment:

Click+ENVIRONMENT.
TheNew environment dialog box displays:

- Enter the following information in theNew Environment dialog box:
- Display name: A friendly name for the environment that is used in the UI. For example,
My Test Environment. Environment name: The programmatic name for the environment. The name must consist of lowercase letters, numbers, and hyphens. It must start with a lowercase letter and cannot end in a hyphen. For example,
test.The environment name cannot be changed after it has been created.
- Description (optional): Additional information about the environment that you want to add as a reminder.
- Deployment type (Preview): Select whether you want to deploy individual API proxies or an archive of your API proxy configuration environment. For more information, seeSupported deployment types.Note: The deployment type used with this environment cannot be changed after the environment is created.
All fields exceptDescription are required.
- Display name: A friendly name for the environment that is used in the UI. For example,
ClickOK.
The card displaysPending Provisioning status while Apigee creates the new environment, as the following example shows:

There can be a several minute delay before the new environment is provisioned.
When it's done, the Apigee UI displays the new environment as a card with other environments that you have created:

Every new environment must be attached to an Apigeeinstance and anenvironment group.
If you did not attach your environment to an instance during creation, you can do this step in theInstances UI orusing theInstances attachment create API. For an example of how to do this using the API, seeCreate an environment in the command-line provisioning documentation.
Note: Pay-as-you-go environments begin incurring charges once attached to an instance. Charges may accrue prior to any API traffic beginning.For more information about Pay-as-you-go pricing based on updated attributes, see Pay-as-you-go (updated attributes) example pricing.
If you did not assign the new environment to a group during creation, you can follow the steps inAdding environments to an environment group.Environments not assigned to groups have no hostnames pointing to them, and therefore they are not accessible. For moreinformation, seeCreatingenvironment groups.
If you have an Apigee organization with Pay-as-you-go billing, you may want to enable the Apigee API Analytics add-on in your new environment. For more information, seeManage the Apigee API Analytics add-on.
Creating a new environment with the Apigee API
This section describes how to create a new environment using theApigee API.
Most steps in this process trigger long-running operations that can take several minutes.
To create a new environment with the Apigee API:
- Create the new environment with theCreate environments API.
- Attach the environment to the runtime instance using theInstances attachment API.Note: Pay-as-you-go environments begin incurring charges once attached to an instance. Charges may accrue prior to any API traffic beginning.
For more information about Pay-as-you-go pricing based on updated attributes, see Pay-as-you-go (updated attributes) example pricing.
- Create an environment group if you do not already have one. To do this, use theCreate environment groups API.
- Attach the new environment to the environment group using theEnvironment group attachment API.
Attaching an environment to the group makes the proxies in that environment routable via the hostnames in the group.
For detailed information and examples on using the Apigee APIs to create and attach new environments,seeCreate anenvironment in the command-line provisioning instructions.
Editing environments
This section describes how to edit existing environments in the Apigee UI and with theApigee API.
Edit environments in the Apigee UI
You can change the following properties of an existing environment in theApigee UI:
- Display name: Enter a new display name for the environment.
- Description: Enter a new description for the environment.
- Environment group: Clear the previously selected checkbox and select the checkbox for the new environment group.
Apigee in Cloud console
To edit environment in the Apigee Cloud console:
In the Google Cloud console, go to theManagement> Environments page.
- Select the project with the environments you want to update.
- Locate the row of the environment you want to edit, clickActions> Edit. TheEdit environment dialog is displayed.
- Select environment type: If you are a Pay-as-you-go customer, choose an option underSelect environment type to change the environment type. Options includeBase,Intermediate, orComprehensive.
The selection of environment type does not apply to Subscription customers and will not appear in the UI.
- You can make any changes required in either theDisplay name orDescription fields.
- In theEnvironment group listbox, you can clear the previously selected checkbox and select the checkbox for the new environment group.
- ClickUpdate to save your changes.
Classic Apigee
To edit an environment in the classic Apigee UI
- Open theApigee UI in a browser.
- SelectEnvironments.
Locate the card for the environment that you want to edit.
The following example shows cards for four different environments:

Click the environment's pane.
The Apigee UI displays details about that environment in theAbout view:

- ClickEdit in theAbout view.
TheEdit Environment dialog box displays:

- Edit the values in theDisplay name andDescription fields.
- ClickSave.
Edit environments with the Apigee API
To edit an existing environment with the Apigee API, use theGet environments APIto get the list of current properties that you can modify, and theUpdate environments API toset or change them.
Configure forward proxying on an environment
To configureforward proxying, set theforwardProxyUri value for the environment using theenvironments API.
Disable forward proxying for a proxy in the environment
If the traffic for a specific target of an API proxy should go directly to the backend target, bypassing the forwardproxy, then set the following property in the TargetEndpoint to override the HTTP forwardproxy:
<Property name="use.proxy">false</Property>
For more information on setting the TargetEndpoint properties, including how to configurethe connection to the target endpoint, seeEndpoint properties reference.
Setuse.proxy to "true" for any TargetEndpoint that you want to go throughan HTTP forward proxy:
<Property name="use.proxy">true</Property>
Deleting environments
Before deleting an environment, make sure to consider the following key points:
- You must delete all key value maps and key value entries before you delete an environment. Otherwise, if you re-create the environment the key value map entry operations will encounter encryption/decryption discrepancies.
- When you delete an environment with theApigee API Analytics add-on enabled, the analytics data for the environment is also deleted. If you wish to retain analytics data for any environment, we recommend that you export and save your data in another location. For more information on saving your data, see Exporting data from Analytics. To learn more about the impact of environment deletion on Apigee API Analytics data, seeManage your Apigee API Analytics data
Deleting an environment with the Apigee UI
Apigee in Cloud console
To delete an environment in the Apigee Cloud console:
In the Google Cloud console, go to theManagement> Environments page.
- Select the project with the environments you want to delete.
- Locate the row of the environment you want to delete, clickActions> Delete.
Classic Apigee
- Open theApigee UI in a browser.
SelectAdmin > Environments > Overview.
Apigee displays a set of cards, each representing an environment within your Apigee organization.
- Locate the card for the environment that you want to delete.
Click the environment's menu and selectDelete.
Apigee displays a confirmation dialog.
- ClickOK to delete the environment.
The environment's card in the UI displays aPending Deletion label while Apigee deletes the environment.
There can be a several minute delay before the deletion is completed.
Deleting an environment with the Apigee API
To delete an environment, use theDelete environments API.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.