Updated on 2024-10-15 GMT+08:00

Viewing a Rule

Scenario

After you add a rule, you can view all rules in the rule list and view evaluation results, tags, remediation, and configurations of a rule on the rule details page.

You can export all evaluation results. On the upper right corner of the rule details page, multiple buttons are provided for you to trigger, modify, enable, disable, or delete a rule. On the remediation tab, you can check remediation configurations. On the tag tab, you can edit rule tags.

The resource recorder must be enabled for adding, modifying, enabling, or triggering a rule. If the resource recorder is disabled, you can only view, disable, and delete rules.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner. Under Management & Governance, click Config.
  3. In the navigation pane on the left, choose Resource Compliance.
  4. On the Rules tab, view rules, rule status, and evaluation results.
  5. Click the name of the target rule to go to the Rule Details page.

    On the left of the Basic Information tab, evaluation results are displayed, and on the right, rule details are displayed. By default, noncompliant resources are displayed. Above the list, you can filter the resources by evaluation result, resource name, and resource ID. You can also export all evaluation results.

    On the Remediation Management tab, you can view, edit, and delete remediation configurations and execute the remediation. You can also add and delete remediation exceptions.

    On the tag tab, you can view and modify tags of a rule.

    Figure 1 Rule details page

    A rule may be in one of the following statuses:

    • Enabled: The rule is available.
    • Disabled: The rule is disabled.
    • Evaluating: The rule is evaluating resources.
    • Submitting: The rule is submitting an evaluation task to the associated FunctionGraph function.

    During the evaluation, the rule is in the Evaluating state. After the evaluation is complete, the rule status changes to Enabled, and then, you can view the evaluation results.