Help Center/ Organizations/ User Guide/ Managing Tag Policies/ Viewing the Effective Tag Policy
Updated on 2024-07-24 GMT+08:00

Viewing the Effective Tag Policy

You can attach tag policies to the root OU, other OUs, and accounts within your organization. When you attach a tag policy to the root OU and other OUs, all their child OUs and member accounts inherit that tag policy. The effective tag policy for an account specifies the tagging rules that apply to the account. It is the combination of tag policies that account inherits and tag policies directly attached to that account.

The following describes how a tag policy is prioritized as the effective tag policy:

  • Tag policies attached to entities at the same hierarchy level:
    • Single-valued operators: If you attach multiple tag policies, the first policy using the @@assign operator will be considered to be the effective tag policy.
    • Multi-valued operators: If you attach multiple tag policies, the first policy using the @@assign operator will be considered to be the effective tag policy, and the @@append and @@remove operators used by other policies still take effect.
  • Tag policies attached to entities at the different hierarchy levels:

    If the upper- and lower-level entities use the same tag key, tag policies are calculated from the upper-level entities to the lower-level entities based on the types of child control operators to comprise the effective tag policy. If the upper and lower levels use different tag keys, the combination of their tag policies comprises the effective tag policy.

To view the effective tag policy for the root OU, other OUs, and accounts of an organization on the management console, use the following procedure:

Procedure

  1. Log in to the Organizations console on Huawei Cloud and access the Organization page.
  2. Choose Organization in the navigation pane.
  3. Click the root OU, specific OU, or account of your organization. You can view its details on the right of the organization tree.
  4. Click the Policies tab.
  5. Expand the tag policy list and click View the effective tag policy above the list. The effective tag policy is presented in JSON.

    Figure 1 Viewing the effective tag policy