Help Center/ Cloud Bastion Host/ User Guide/ Policy/ Database Rules/ Querying and Editing a Database Rule
Updated on 2024-09-24 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 your bastion host.
  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.

  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.
  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.

  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.

  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.

  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.

  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.

  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.