文档

alicloud_mongodb_audit_policies

更新时间:
一键部署

This data source provides the Mongodb Audit Policies of the current Alibaba Cloud user.

-> NOTE: Available in v1.148.0+.

Example Usage

Basic Usage

data "alicloud_mongodb_audit_policies" "example" {
  db_instance_id = "example_value"
}
output "mongodb_audit_policy_id_1" {
  value = data.alicloud_mongodb_audit_policies.example.policies.0.id
}

Argument Reference

The following arguments are supported:

  • db_instance_id - (Request, ForceNew) The id of the db instance.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Argument Reference

The following attributes are exported in addition to the arguments listed above:

  • policies - A list of Mongodb Audit Policies. Each element contains the following attributes:
    • db_instance_id - The ID of the instance.
    • id - The ID of the Audit Policy.
    • audit_status - The status of the log audit feature.

  • 本页导读 (0)
文档反馈