云数据库 GAUSSDB-ALTER AUDIT POLICY:语法格式

时间:2024-11-02 18:53:39

语法格式

ALTER AUDIT POLICY [ IF EXISTS ] policy_name { ADD | REMOVE } { [ privilege_audit_clause ] [ access_audit_clause ] };
ALTER AUDIT POLICY [ IF EXISTS ] policy_name MODIFY ( filter_group_clause );
ALTER AUDIT POLICY [ IF EXISTS ] policy_name DROP FILTER; 
ALTER AUDIT POLICY [ IF EXISTS ] policy_name COMMENTS policy_comments;
ALTER AUDIT POLICY [ IF EXISTS ] policy_name { ENABLE | DISABLE };
  • privilege_audit_clause:
    1
    PRIVILEGES ({ DDL | ALL } [ ON LABEL ( resource_label_name [, ... ] ) ])
    
  • access_audit_clause:
    AC CES S ({ DML | ALL } [ ON LABEL ( resource_label_name [, ... ] ) ])
support.huaweicloud.com/distributed-devg-v2-gaussdb/gaussdb-12-0315.html