文档

alicloud_log_projects

更新时间:
一键部署

This data source provides the Log Projects of the current Alibaba Cloud user.

-> NOTE: Available in v1.126.0+.

Example Usage

Basic Usage

data "alicloud_log_projects" "example" {
  ids = ["the_project_name"]
}

output "first_log_project_id" {
  value = data.alicloud_log_projects.example.project.0.id
}

Argument Reference

The following arguments are supported:

  • ids - (Optional, ForceNew, Computed) A list of project IDs.
  • name_regex - (Optional, ForceNew) A regex string to filter results by project name.
  • status - (Optional, ForceNew) The status of log project. Valid values Normal and Disable.
  • 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:

  • names - A list of project names.
  • projects - A list of Log Project. Each element contains the following attributes:
    • description - The description of the project.
    • id - The ID of the project.
    • project_name - The name of the project.
    • last_modify_time - The last modify time of project.
    • owner - The owner of project.
    • region - The region of project.
    • status - The status of project.
    • policy - (Available in 1.198.0+) The policy of project.

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