Updated on 2024-12-16 GMT+08:00

Importing Application Environment Variables

This section describes how to import a file to add environment variables for an application.

Use Restrictions

The file must be a key-value pair mapping file in JSON or YAML format. A maximum of 200 environment variables can be imported at a time. Example file content and format:

{"key1": "value1", "key2": "value2"}

  • key1 and key2 are the application environment variable names, which must be unique in the same application environment. Enter 1 to 64 characters. Start with a letter, underscore (_), or hyphen (-). Only use letters, digits, underscores (_), hyphens (-), and periods (.).
  • value1 and value2 are the application environment variable values.

Exercise caution when inputting sensitive information in configuring environment variables, or encrypt sensitive information to avoid information leakage.

Importing an Application Environment Variable File

  1. Log in to ServiceStage.
  2. Choose Application Management.
  3. Click the target application. The Overview page is displayed.
  1. In the left navigation pane, click Environment Variables.
  2. Select a created environment from the Environment drop-down list.
  3. Click Import and select the created environment variable file.
  4. Click Submit.

    Figure 1 Importing an application environment variable file

Follow-Up Operations

After the application environment variables are changed, you can: