# Overview
The public resource function can define key (Key) value (Value) pairs of data, and obtain the value (Value) by referencing the key (Key) in the service orchestration interface, thereby avoiding hard-coding the value in the interface.
# Public resource list
Menu location: Alarm Management > Public Resources. Click the menu to enter the public resource list page, as shown in the figure.
# Add public resources
Click the Add button to pop up the new window, as shown in the figure.
Key: Key can only contain letters, numbers, underscores or dashes. The length cannot exceed 200 characters and is required;
Data type: data type of dictionary value, supports boolean, number, string and json, required;
Value: The Value value corresponding to the Key must conform to the format specified by the data type, and the length cannot exceed 4000 characters.
# Edit public resources
Click the Edit button to pop up the editing window, as shown in the figure.
# Delete public resources
Click the Delete button to pop up the deletion confirmation window, as shown in the figure.
Click the OK button to delete the public resource.
# Change history list
Click the Change History button to pop up the change history list of the specified public resource, as shown in the figure.
# Quote public resources
After configuring the public resources, you can obtain the value by referencing the key in the service orchestration interface (referenced through g.{Key}
), as shown in the figure.