» alicloud_dns_domains

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

» Example Usage

data "alicloud_dns_domains" "domains_ds" {
  domain_name_regex = "^hegu"
  output_file       = "domains.txt"
}

output "first_domain_id" {
  value = "${data.alicloud_dns_domains.domains_ds.domains.0.domain_id}"
}

» Argument Reference

The following arguments are supported:

  • domain_name_regex - (Optional) A regex string to filter results by the domain name.
  • group_name_regex - (Optional) A regex string to filter results by the group name.
  • ali_domain - (Optional, type: bool) Specifies whether the domain is from Alibaba Cloud or not.
  • instance_id - (Optional) Cloud analysis product ID.
  • version_code - (Optional) Cloud analysis version code.
  • ids (Optional, Available in 1.53.0+) - A list of domain IDs.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).
  • resource_group_id - (Optional, ForceNew, Available in 1.59.0+) The Id of resource group which the dns belongs.
  • group_id - (Optional, ForceNew, Available in 1.87.0+) Domain group ID, if not filled, the default is all groups.
  • key_word - (Optional, ForceNew, Available in 1.87.0+) The keywords are searched according to the %KeyWord% mode, which is not case sensitive.
  • lang - (Optional, ForceNew, Available in 1.87.0+) User language.
  • search_mode - (Optional, ForceNew, Available in 1.87.0+) Search mode, LIKE fuzzy search, EXACT exact search.
  • starmark - (Optional, ForceNew, Available in 1.87.0+) Whether to query the domain name star.
  • tags - (Optional, ForceNew, Available in 1.87.0+) A mapping of tags to assign to the resource.

» Attributes Reference

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