检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
01:50 Enabling SQL Audit Downloading a Full Backup 01:13 Downloading a Full Backup
audit logs will be reserved for some time when SQL audit is disabled. false: indicates that historical audit logs will be deleted immediately when SQL audit is disabled. audit_types No Array of strings This parameter applies only to RDS for MySQL.
Log Size Size of audit logs ≥ 0 GiB Monitored object: database Monitored instance type: RDS for PostgreSQL instance slave_replication_status Stream Replication Status of Standby Node Stream replication status of the standby node.
If you remove log streams for audit logs, you can specify a maximum of 10 instances at a time.
Obtaining Audit Logs Function This API is used to obtain audit logs. Before calling this API, learn how to authenticate it. Before calling this API, learn about request header parameters.
The value is 0 when SQL audit is disabled. audit_types Array of strings Actual operation types recorded in audit logs. If this parameter is left blank, no operation types are filtered out. all_audit_log_action String All operation types that can be recorded in audit logs.
Request Table 2 Parameters Parameter Mandatory Type Description ids Yes Array of strings Specifies the list of audit logs. A maximum of 50 audit log IDs are allowed in the list. Example Request Obtain the links for downloading audit logs.
logs PUT /v3/{project_id}/instances/{instance_id}/auditlog-policy rds:auditlog:operate √ √ Querying the policy for audit logs GET /v3/{project_id}/instances/{instance_id}/auditlog-policy rds:auditlog:list √ √ Obtaining audit logs GET /v3/{project_id}/instances/{instance_id}/auditlog
Querying the Policy for SQL Audit Logs Obtaining Audit Logs Obtaining the Links for Downloading Audit Logs Setting the Local Retention Period of Binlogs Obtaining the Local Retention Period of Binlogs Querying LTS Configurations Enabling Log Ingestion to LTS for Instances in Batches
For example, if audit logs have been configured for a log stream, slow query logs or error logs cannot be configured for this log stream. You cannot configure multiple log types for a given log stream in a single request.
log policy. permission_management instance g:EnterpriseProjectId g:ResourceTag/<tag-key> - rds:auditlog:list Grants permission to query the policy for audit logs. read instance g:EnterpriseProjectId g:ResourceTag/<tag-key> - rds:auditlog:list Grants permission to query audit logs
an RDS for MariaDB instance Change a DB instance class Configure a same-region backup policy for an RDS for MariaDB instance Restore a DB instance from a backup Enable DBA Assistant for problem diagnosis and SQL analysis Modify parameters of an RDS for MariaDB instance Enable SQL audit