Creating a Parameter
Scenarios
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.
Precautions
Parameter policies may delete parameters. Exercise caution when configuring parameter policies.
Creating a Parameter
- Log in to COC.
- In the navigation pane on the left, choose Resource O&M > Automated O&M.
- In the Routine O&M module, click Parameter Center.
- Click Create Parameter.
- On the displayed page, configure Basic Information.
Table 1 Basic information parameters Parameter
Description
Example Value
Parameter Name
Customize 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.
-
- (Optional) Set Parameter Policy.
- Expired Delete: Once enabled, you can set the deletion time for a parameter. The parameter will be automatically deleted when it expires.
- Deletion Time: The value can be Absolute Time or Relative Time.
- Absolute Time: Select a date and time.
- Relative Time: Enter the expiration time. The unit can be hour or day.
- Add Pre-Deletion Notification: This parameter is optional. Set the notification time before deletion. The system will notify you based on the chosen notification method and time. You can add a maximum of two notifications.
- Unmodified Notification: This parameter is 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 method 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 mode from the drop-down list. Notify the recipients based on their reserved information. For details, see Modifying Personnel Information.
- Recipient: This parameter is mandatory 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 O&M Engineer Management.
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.
- (Optional) Click Adding a Tag.
- The tag key can contain only digits, letters, and the following special characters: _-.:/=+@. It can be 1 to 128 characters long.
- The tag value can contain only digits, letters, and these special characters: _-.:/=+@. It can be 1 to 256 characters long.
- Click OK.
The parameter is created.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot