The add tag adds a tag to a policy rule.
The undo add tag commands removes a tag from a policy rule.
| Parameter | Description | Value |
|---|---|---|
tag-name |
Indicates the tag name. |
The tag name must already exist. |
Before a tag is added, the tagname command must be used to create a tag. The display tag command queries whether a tag is successfully added.
# Create a tag named Marketing.
<sysname> system-view [sysname] tag name Marketing
# Add tag Marketing to SSL-encrypted traffic detection policy rule policy_sec.
<sysname> system-view [sysname] decryption-policy [sysname-decryption-policy] rule name policy_sec [sysname-decryption-policy-rule-policy_sec] add tag Marketing