文档

alicloud_dns_instances

更新时间:
一键部署

-> DEPRECATED: This resource has been renamed to alicloud_alidns_instances from version 1.95.0.

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

-> NOTE: Available in 1.84.0+.

Example Usage

data "alicloud_dns_instances" "example" {
  ids = ["dns-cn-oew1npk****"]
}
output "first_instance_id" {
  value = "${data.alicloud_dns_instances.example.instances.0.id}"
}

Argument Reference

The following arguments are supported:

  • ids - (Optional) A list of instance 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 instance IDs.
  • instances - A list of instances. Each element contains the following attributes:
    • id - Id of the instance.
    • domain_numbers - Number of domain names bound.
    • dns_security - DNS security level.
    • instance_id - Id of the instance resource.
    • version_code - Paid package version.
    • version_name - Paid package version name.

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