Getting an Object Storage Object's Details

View the details for an object in an Object Storage bucket.

    1. Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
    2. Select the compartment from the list under List Scope. All buckets in that compartment are listed in tabular form.
    3. Click the bucket whose object's details you want to get. The bucket's Details page appears.
    4. Click Objects under Resources. The Objects list appears. All folders and objects are listed in tabular form.
    5. Click the Actions menu (Actions Menu) next to the object name, and select View Object Details. The Object Details dialog box appears. Object details include basic information, response headers, metadata, and a preview of object contents, if applicable.
    6. (Optional) Click Download to download the selected object.
  • 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]

    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"
                }

    If the object resides in an Archive tier bucket, the output also includes archival-state.

    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.

    Object Storage prepends the Object Storage namespace string and bucket name to the object name when constructing a URL for use with the API:

    /n/object_storage_namespace/b/bucket/o/object_name

    The object name is everything after the /o/, which could include hierarchy levels and prefix strings.