Data Source: oci_objectstorage_object_head
This data source provides details about metadata of a specific Object resource in Oracle Cloud Infrastructure Object Storage service.
Gets the metadata of an object.
Example Usage
data "oci_objectstorage_object_head" "test_object_head" {
#Required
bucket = var.object_bucket
namespace = var.object_namespace
object = var.object_object
}
Argument Reference
The following arguments are supported:
bucket
- (Required) The name of the bucket. Avoid entering confidential information. Example:my-new-bucket1
namespace
- (Required) The top-level namespace used for the request.object
- (Required) The name of the object. Avoid entering confidential information. Example:test/object1.log
Attributes Reference
The following attributes are exported:
metadata
- The metadata of the objectcontent_type
- The content-type of the objectcontent_length
- The content-length of the objectetag
- The etag of the objectstorage_tier
- The storage tier that the object is stored in.archival-state
- Archival state of an object. This field is set only for objects in Archive tier.