Listing Object Versions in an Object Storage Bucket

View a list the versions of an object in an Object Storage bucket.

    1. On the Buckets list page, select the Object Storage bucket that you want to work with. If you need help finding the list page or the bucket, see Listing Buckets.
    2. On the bucket's details page, select Objects.
      The Objects tab opens. All objects in the selected bucket are displayed in a table.
    3. Find the object you want to work with. For more information, see Listing Objects in a Bucket.
    4. From the Actions menu (three dots) of the object, select View versions.
    The Object versions panel opens. The latest version appears at the top of the list. The version ID appears and you can copy it your clipboard by selecting Copy.
  • Use the oci os object list-object-versions command and required parameters to list all the objects and their versions in a bucket:

    
    oci os object list-object-versions --bucket-name bucket_name
                        

    For example:

    
    oci os object list-object-versions MyStandardBucket
    {
      "data": {
        "items": [
          {
            "etag": null,
            "is-delete-marker": false,
            "md5": null,
            "name": "MyTextDocument.txt",
            "size": null,
            "time-created": null,
            "time-modified": "2020-04-14T22:18:08.777000+00:00",
            "version-id": "2d528a44-5b15-40dc-b303-20993d1ade66"
          },
          {
            "etag": null,
            "is-delete-marker": false,
            "md5": null,
            "name": "MyTextDocument.txt",
            "size": null,
            "time-created": null,
            "time-modified": "2020-04-14T22:17:10.371000+00:00",
            "version-id": "a175ddc0-cc86-425f-bc2e-9b9bcb9bff92"
          },
          {
            "etag": null,
            "is-delete-marker": false,
            "md5": null,
            "name": "MyTextDocument.txt",
            "size": null,
            "time-created": null,
            "time-modified": "2020-04-14T22:14:47.675000+00:00",
            "version-id": "8d8f06ef-e0c2-4435-bea6-f7c3ec80a444"
          }
        ],
        "prefixes": null
      }
    }

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ListObjectVersions operation to list all the objects and their versions in a bucket.