Updated on 2026-07-09 GMT+08:00

Creating a Parameter

In routine data processing and automated O&M, sensitive information such as accounts and keys needs to be repeatedly used in multiple scripts or jobs to ensure data security and operation convenience. However, hardcoding these information in scripts is insecure, and the information is difficult to manage and maintain. To address this challenge, you can create parameters to save data, such as accounts, keys, and common text data, which can be referenced by scripts and jobs. You can manage text parameters and encrypted data throughout the lifecycle. You can use the parameter creation function to solve this problem. This not only improves data security, but also simplifies the data management process.

Precautions

Parameter policies may delete parameters. Exercise caution when configuring parameter policies.

Creating a Parameter

  1. Log in to COC.
  2. In the navigation pane, choose Resource O&M > Automated O&M.
  3. In the Routine O&M area, click Parameter Center. The Parameter Center page is displayed.
  4. Click Create Parameter. The Create Parameter page is displayed.
  5. Set basic information by referring to Table 1.

    Table 1 Basic information parameters

    Parameter

    Description

    Example Value

    Parameter Name

    Specify a parameter name based on the naming rules.

    The value can contain 1 to 256 characters, including digits, letters, and special characters _/. Slashes (/) can only be used for classification.

    test1

    Enterprise Project

    Select an enterprise project from the drop-down list.

    default

    Parameter Description

    (Optional) Describe the input parameters.

    -

    Parameter Type

    The options are Plain text and Encrypted text.

    Plain text

    Encryption Mode

    This parameter is required only when Parameter Type is set to Encrypted text.

    The encryption mode cannot be changed. Currently, only KMS encryption is supported.

    KMS

    Select a key

    This parameter is required only when Parameter Type is set to Encrypted text.

    Select a key from the drop-down list.

    Keys are managed on the DEW console. To add or modify a key, go to the DEW console.

    -

    Parameter Value

    Enter a value.

    -

  6. (Optional) Set the parameter policy by referring to Table 2.

    Table 2 Setting the parameter policy

    Parameter

    Description

    Expired Delete

    Once enabled, you can set the deletion time for a parameter. The parameter will be automatically deleted when it expires.

    Deletion Time

    This parameter is mandatory when Expired Delete is enabled. The options are Absolute Time and Relative Time.

    • Absolute Time: Select a date and time.
    • Relative Time: Enter the expiration time. The unit can be hours or days.

    Pre-Deletion Notification

    This parameter is mandatory when Expired Delete is enabled.

    (Optional) Set the pre-deletion notification time. The system notifies you of the deletion at the specified time based on the Notification Mode and Recipient. You can add a maximum of two notifications.

    Unmodified Notification

    (Optional) You can set the notification time. If the parameter is not modified at the specified time, the system will notify you based on the chosen notification channel and time. A maximum of two notifications can be set.

    Notification Mode

    This parameter is required when you add pre-deletion or unmodified notifications. Select a notification channel from the drop-down list. Notify the recipients based on their reserved information. For details, see Modifying Personnel Information.

    Rules for pre-deletion and unmodified notifications:
    • The pre-deletion notification time must be earlier than the time of deletion upon expiration.
    • The pre-deletion notification time must be later than the parameter creation or modification time.
    • The unmodified notification time cannot be earlier than the parameter creation or modification time.
    • If there is a policy for deleting the parameter upon expiration, the unmodified notification time cannot be later than the time of deletion upon expiration.

    Recipient

    This parameter is required when you add pre-deletion or unmodified notifications. Select a recipient from the drop-down list. For details about how to configure a recipient, see Personnel Management.

  7. (Optional) Click Adding a Tag and enter the tag name and value.

    • The tag key can contain only digits, letters, and the following special characters: _-.:/=+@. There can be 1 to 128 characters.
    • The tag value can contain only digits, letters, and these special characters: _-.:/=+@. There can be 1 to 256 characters.

  8. Click OK. The parameter is created.

    After the parameter is created, you can view it in the parameter list.

Viewing Parameter Details

To view parameter details, version history, sensitive parameter values, and decrypted data, perform the following operations:

  1. Log in to COC.
  2. In the navigation pane, choose Resource O&M > Automated O&M.
  3. In the Routine O&M area, click Parameter Center. The Parameter Center page is displayed.
  4. In the parameter list, select the parameter you want to view and click the parameter name. On the parameter details page that is displayed, you can view the parameter details, such as the parameter value, parameter type, encryption mode, encryption key, and parameter policy.

    If Parameter Type is set to Encrypted text, click next to the parameter value to view the sensitive parameter value, or click Viewing Decrypted Data to view the parameter values of all versions.

Helpful Links