» baiducloud_instances

Use this data source to query BCC Instance list.

» Example Usage

data "baiducloud_instances" "default" {}

output "instances" {
 value = "${data.baiducloud_instances.default.instances}"
}

» Argument Reference

The following arguments are supported:

  • dedicated_host_id - (Optional) Dedicated host id of the instance to retrieve.
  • filter - (Optional, ForceNew) only support filter string/int/bool value
  • internal_ip - (Optional) Internal ip address of the instance to retrieve.
  • output_file - (Optional, ForceNew) Output file of the instances search result
  • zone_name - (Optional) Name of the available zone to which the instance belongs.

The filter object supports the following:

  • name - (Required) filter variable name
  • values - (Required) filter variable value list

» Attributes Reference

In addition to all arguments above, the following attributes are exported: