Data Source: oci_objectstorage_object_versions

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

Lists the object versions in a bucket.

ListObjectVersions returns an ObjectVersionCollection containing at most 1000 object versions. To paginate through more object versions, use the returned opc-next-page value with the page request parameter.

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_object_versions" "test_object_versions" {
	#Required
	bucket = var.object_version_bucket
	namespace = var.object_version_namespace

	#Optional
	delimiter = var.object_version_delimiter
	end = var.object_version_end
	fields = var.object_version_fields
	prefix = var.object_version_prefix
	start = var.object_version_start
	start_after = var.object_version_start_after
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

ObjectVersion Reference

The following attributes are exported: