> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guidance-for-enterprise/deka-registry/detail-registry/tag-immutability/add-rule.md).

# Add rule

The **Add Tag Immutability Rule** feature is used to create a tag immutability rule for a project. To add a tag immutability rule, follow the steps below:

Select the **Tag Immutability** tab, then click **Add Rule.**

<figure><img src="/files/qAhN5SZGTrV6elSGn2c3" alt=""><figcaption></figcaption></figure>

The system displays the **Add Tag Immutability Rule** window. In the **For the repositories** section, select **Matching** or **Excluding** as needed. Then, click **Add** to add the tag

<figure><img src="/files/TE1vWcMeVqrzWrVuHAwt" alt=""><figcaption></figcaption></figure>

Below are several explanations related to the rule input fields:

<table><thead><tr><th width="235.3333740234375">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>For the repositories</strong></td><td>This section is used to choose <strong>which repositories the rule will apply to</strong>.<br><br>- <strong>Matching :</strong> The rule is applied <strong>only to the repositories specified by the user</strong>.<br><br><strong>- Excluding :</strong> The rule is applied <strong>to all repositories, except those specified by the user</strong>.</td></tr><tr><td><strong>Tags</strong></td><td>This section allows you to define <strong>which image tags are protected from modification or overwrite</strong>.<br><br>- <strong>Matching :</strong> The rule is applied <strong>only to the tags specified by the user</strong>.<br><br><strong>- Excluding :</strong> The rule is applied <strong>to all tags, except those specified by the user</strong>.</td></tr></tbody></table>

After the tag is added successfully, the system displays the notification, **"Tags have been successfully created."**, indicating that the tag has been added successfully and is now listed in the tags table.

<figure><img src="/files/MByiWwqWo12oql4K6rG2" alt=""><figcaption></figcaption></figure>
