Updated on 2024-10-15 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.

    The value can contain a maximum of 255 characters, including digits, letters, and special characters "_-.:".

    Group

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

    The value can contain a maximum of 128 characters, including digits, letters, and special characters "_-.:".

    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.

    Adjusting the configuration content size may affect Nacos stability. Exercise caution when performing this operation. To adjust the configuration content size, submit a service ticket.

    Description

    Enter the description. The value can contain a maximum of 128 characters.

    Application

    Enter the application to which the configuration belongs. The value can contain a maximum of 128 characters, including digits, letters, and special characters "_-.:".

    Label

    Enter a label. The value can contain a maximum of 64 characters, including digits, letters, and special characters "_-.:".

  7. Click Release.