Getting an Object Storage Object's ETag
Get the user-defined metadata and entity tag (ETag) for an object.
The ETag for the object is displayed. Use the oci os object head command and required parameters to get the details of an object in a bucket.
oci os object head --bucket-name bucket_name --name object_name [OPTIONS]Find the
etagattribute. For example:oci os object head --bucket-name MyBucket --name MyFile.txt { "accept-ranges": "bytes", "access-control-allow-credentials": "true", "access-control-allow-methods": "POST,PUT,GET,HEAD,DELETE,OPTIONS", "access-control-allow-origin": "*", "access-control-expose-headers": "accept-ranges,access-control-allow-credentials,access-control-allow-methods,access-control-allow-origin,content-length,content-md5,content-type,etag,last-modified,opc-client-info,opc-client-request-id,opc-request-id,x-api-id", "content-length": "823", "content-md5": "9P61OSaYe4fXxaeK8siuDw==", "content-type": "application/octet-stream", "date": "Fri, 11 Dec 2020 14:22:51 GMT", "etag": "cadb9f8a-3292-45e6-a1e8-f075699fb619", "last-modified": "Fri, 11 Dec 2020 14:04:19 GMT", "opc-client-request-id": "C732DB8E25BC406FBD359740D18C78D4", "opc-request-id": "phx-1:EzxtLDJJxPWDLUQ30AEYB8RX__EYrxKK2rEYq23k8EQd749g2YtKOlhx4jjDwVh3", "storage-tier": "InfrequentAccess", "version-id": "82d3a264-08c4-4732-a9b1-e246ee0e4fa1", "x-api-id": "native" }For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the HeadObject operation to get the details of an object in a bucket. Find the
etagattribute.