Help Center> Cloud Bastion Host> User Guide> Policy> Database Rules> Querying and Editing a Database Rule
Updated on 2023-09-22 GMT+08:00

Querying and Editing a Database Rule

This topic describes how to view and edit a database rule. You can view and edit rule configurations, including basic settings, related regulation sets, users, user groups, accounts, and account groups.

  • A modified database rule takes effect the instant its status changes to Enabled.
  • If related users have logged in to resources before the modification, those users need to log out and log in again for the modified database rule to take effect.

Prerequisites

You have the operation permissions for the DB Rules module.

Querying and Editing Database Rule Configurations

  1. Log in to the CBH system.
  2. Choose Policy > DB Rules to go to the DB Rules page.
  3. Query database rules.

    • Quick search

      Enter a keyword in the search box to quickly query database rules by rule name, user, resource name, host IP address, resource account, and regulation set name.

    • Advanced search

      Enter keywords in the corresponding attribute search boxes to search for database rules in exact mode.

      Figure 1 Advanced search

  4. Click the name of the database rule that you want to edit or click Manage in the row of the rule in the Operation column. The details page of the rule is displayed.

    Figure 2 Viewing rule details

  5. View and edit basic information.

    In the Basic Info area, click Edit. In the displayed dialog box, edit the database rule details.

    You can edit Rule Name, Period of validity, Action, and Time Limit.

    Figure 3 Viewing the basic information

  6. View and edit regulation sets related to the rule.

    • To relate a regulation set to the rule or remove a related regulation set, click Edit in the RegSet area and complete modifications in the displayed dialog box.
    • To only delete a related regulation set, click Remove in the row of the related regulation set.
    Figure 4 Viewing related regulation sets

  7. View and edit users related to the rule.

    • To relate a user to the rule or remove a related user, click Edit in the Users area and complete modifications in the displayed dialog box.
    • To only remove a related user, click Remove in the row of the related user.
    Figure 5 Viewing related users

  8. View and edit user groups related to the rule.

    • To relate a user group to the rule or remove a related user group, click Edit in the User Group area and complete modifications in the displayed dialog box.
    • To only remove a related user group, click Remove in the row of the related user group.
    Figure 6 Viewing related user groups

  9. View and edit accounts related to the database rule.

    • To relate an account to the rule or remove a related account, click Edit in the Account area and complete modifications in the displayed dialog box.
    • To only remove a related account, click Remove in the row of the related account.
    Figure 7 Viewing related accounts

  10. View and edit account groups related to the rule.

    • To relate an account group to the rule or remove a related account group, click Edit in the Account Group area and complete modifications in the displayed dialog box.
    • To only remove a related account group, click Remove in the row of the related account group.
    Figure 8 Viewing related account groups