Updated on 2024-02-29 GMT+08:00

Creating a Configuration

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos instance.
  4. In the left navigation pane, choose Configuration Management > Configurations.
  5. Select a namespace from the Namespace drop-down list. The ID is automatically filled in the Namespace ID box.

    If the selected namespace is public, the namespace ID is empty by default.

  6. Click Create Configuration. In the displayed dialog box, set the following parameters. Parameters marked with an asterisk (*) are mandatory.

    Table 1 Parameters

    Parameter

    Description

    *Data ID

    The data ID is one of the dimensions for identifying configurations, and usually identifies configuration sets of a system. A system or application can contain multiple configuration sets, and each one can be identified by a name. A unique data ID is generally named like a Java package. This naming rule is optional.

    Group

    It is a set of configurations in Nacos and one of the dimensions for identifying configurations.

    Namespace

    Namespace to which the configuration belongs.

    Configuration Format

    Nacos supports online editing of common configuration formats such as YAML, Properties, TEXT, JSON, XML and HTML. The default value is TEXT.

    *Configuration Content

    Enter the configuration content.

    NOTE:

    The configuration content cannot exceed 100 KB. If the configuration content is too large, split the configuration.

    Description

    Enter the description.

    Application

    Enter the application to which the configuration belongs.

    Label

    Enter a label.

  7. Click Release.