Listing Object Versions in an Object Storage Bucket

View a list the versions of 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 versions you want to list. 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 down arrow (Show Object Versions) next to the object entry. The list of versions of the object appears. The latest version appears at the top of the list. The version ID appears and you can copy it your clipboard by clicking 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.