文档

alicloud_dns_groups

更新时间:
一键部署

This data source provides a list of DNS Domain Groups in an Alibaba Cloud account according to the specified filters.

Example Usage

data "alicloud_dns_groups" "groups_ds" {
  name_regex  = "^y[A-Za-z]+"
  output_file = "groups.txt"
}

output "first_group_name" {
  value = "${data.alicloud_dns_groups.groups_ds.groups.0.group_name}"
}

Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter results by group name.
  • ids - (Optional, Available 1.52.2+) A list of group IDs.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Attributes Reference

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

  • ids - A list of group IDs.
  • names - A list of group names.
  • groups - A list of groups. Each element contains the following attributes:
    • group_id - Id of the group.
    • group_name - Name of the group.

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