Managing Environments¶
An API can be called in different environments, such as production, testing, and development environments. RELEASE is the default environment provided by APIG.
Creating an Environment¶
Go to the APIG console.
Select a dedicated gateway at the top of the navigation pane.
In the navigation pane, choose API Management > API Policies.
Click the Environments tab.
Click Create Environment and set the environment information.
¶ Parameter
Description
Name
Environment name.
Description
Description of the environment.
Click OK.
After the environment is created, it is displayed in the environment list.
Accessing an Environment¶
You can call an API in the RELEASE environment by using a RESTful API. To access the API in other environments, add the X-Stage header to the request to specify an environment name. For example, add X-Stage:DEVELOP to the request header to access an API in the DEVELOP environment.
Note
APIG does not support API debugging with environment variables.
Follow-Up Operations¶
After creating an environment, publish APIs in the environment so that they can be called by API callers.