Data Source: oci_objectstorage_objects

This data source provides the list of Objects in Oracle Cloud Infrastructure Object Storage service.

Lists the objects in a bucket. By default, ListObjects returns object names only. See the fields parameter for other fields that you can optionally include in ListObjects response.

ListObjects returns at most 1000 objects. To paginate through more objects, use the returned 'nextStartWith' value with the 'start' parameter. To filter which objects ListObjects returns, use the 'start' and 'end' parameters.

To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies.

Example Usage

data "oci_objectstorage_objects" "test_objects" {
    #Required
    bucket = var.object_bucket
    namespace = var.object_namespace

    #Optional
    delimiter = var.object_delimiter
    end = var.object_end
    fields = var.object_fields
    prefix = var.object_prefix
    start = var.object_start
    start_after = var.object_start_after
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Object Reference

The following attributes are exported: