» baiducloud_bos_bucket_objects

Use this data source to query BOS bucket object list.

» Example Usage

data "baiducloud_bos_bucket_objects" "default" {
  bucket = "my-bucket"
}

output "objects" {
  value = "${data.baiducloud_bos_bucket_objects.default.objects}"
}

» Argument Reference

The following arguments are supported:

  • bucket - (Required) Bucket name of the objects to retrieve.
  • filter - (Optional, ForceNew) only support filter string/int/bool value
  • output_file - (Optional, ForceNew) Output file for saving result.
  • prefix - (Optional) Prefix of the objects.

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: