An instance is a virtual machine where your API project and related services are stored. Instances correspond to regions. Typically, you start with a single instance and add new instances as your organization expands into more regions. This section explains how to:
To create a new instance, you can use the Instances API or the Apigee UI. Each instance requires:
To create a new instance in Apigee in Cloud console:
Select Management > Instances. The Instances pane displays a list of existing instances.
Click + Create. There might be a delay while the UI determines if your org has the proper entitlements to create a new instance.
The Create new instance page displays.
Field | Required | Description |
---|---|---|
Runtime hosting location | Required | Select the region in which you want to create your new instance. You cannot create a new instance in a region that already has an instance. For more information about working with multiple regions, see Using multiple regions. |
Name | Required | Enter the ID of the new instance. The default value is the name of the runtime hosting region that you selected, but you can change it to any meaningful name that you want, as long as you follow the naming rules:
|
IP range allocation | Required | Specify how you want to allocate an IP range. Choose between these options:
|
Disk encryption key | Required | Under Disk encryption key, choose a customer-managed encryption key. If a key already exists, you can pick it. The wizard lists all keys in the same location as the runtime hosting region across all key rings. If a key doesn't exist, or if you don't want to use an existing key, you can create a new key from within the wizard. To create a key:
|
Environments | Optional | Select the environments you want attached to this instance. To do this, click the Environments drop-down list and select the checkboxes next to the environments you want to attach. You can do this for as many environments as you want. Then click OK. Note that all instances' environments count towards the total number of environments that you can have allocated. For more information, see About environments and environment groups. Adding environments when you create a new instance is optional. If you do not add them now, you can instead use the Instances attachment create API or the UI to add and remove them later. See Attach or remove an environment. |
Accepted projects | Optional | Click Add accepted project to select one or more Cloud projects. The selected projects can privately connect to the service attachment for your instance. By default, the project associated with your Apigee organization is included in this list. |
Enable logging | Optional | Click the Enable logging toggle to enable Cloud Logging ingress access logs for the instance. This feature allows you to view the logs generated by ingress gateways in your Apigee infrastructure, such as an external Application Load Balancer or an Anthos gateway, to assist in troubleshooting Apigee API calls. For more information, see Logging Apigee access logs |
Filter | Optional | Select an HTTP response code from the response code box to act as a filter for the ingress access logs. If you want to include all logs, regardless of HTTP response code, select To create a custom filter, select
For example:
|
If your org cannot create a new instance, contact Apigee Sales.
Click Create.
Apigee begins a long-running operation that can take 20 minutes or more to complete. When it's done, the new instance will appear in the list of instances in the Instances UI.
If Apigee was provisioned without VPC-peering, see Create a runtime instance in the non-VPC peering provisioning steps.
If Apigee was provisioned with VPC-peering, see Create a runtime instance in the VPC peering provisioning steps.
When you create an environment using the Apigee UI in Google Cloud console, you have the option to assign the environment to an existing instance. For more information, see Creating a new environment in the UI.
If you did not attach your environment to an instance during environment creation, or you want to remove an environment from an instance, you can follow these steps. For more information on environments and instances, see Environments and instances.
To attach or remove an environment from an instance using Apigee in Cloud console:
Click the instance that you want to edit.
In addition to using the UI, you can also attach environments to an instance using the Instances attachment create API. For an example, see Create an environment in the command-line provisioning documentation.
You can add or remove projects from the Accepted projects list:
Click the instance that you want to edit.
After you create an instance, you can enable and disable Cloud Logging ingress access logs for the instance:
Click the instance that you want to edit.
You can use the Apigee UI in Cloud console to delete an existing instance, as described in this section. Alternatively, you can delete an instance using the Instances API.
Only one Apigee instance can be in a given Google Cloud region. When you delete an instance, it is completely removed from its region. See also multi-region installation.
The following data is stored in an Apigee instance and will be deleted if you delete the instance:
Type of data | Description |
---|---|
Key management system (KMS) | KMS data includes API products, developers, developer apps, OAuth tokens (including access tokens, refresh tokens, and authorization codes), and API keys. Use the AccessEntity policy or the related Apigee API to retrieve the data you wish to save. |
Key value map (KVM) | Any data that can be created or managed with KVM policies. See Retrieving KVMs. |
Quota | Quota definitions, buckets, and counters. |
Environment cache | All cached data. |
To delete an Apigee instance using the Apigee UI in Cloud console:
Select Management > Instances.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-24 UTC.