Skip to Main Content
Status Future consideration
Workspace * IBM Cloud Ideas
Categories CLI
Created by Guest
Created on May 24, 2024

ibmcloud CLI cos plugin: add command to get bucket configuration / metadata

Currently the only way to get the bucket total number of objects and total size as is:

  1. In the IBM Cloud Portal web UI go to the bucket configuration

  2. Manually calling the API with curl https://config.cloud-object-storage.cloud.ibm.com/v1/b/{my-bucket} -H 'authorization: bearer <IAM_token>'

However the ibmcloud CLI tool already has a cos plugin that could be enhanced with this feature. I guess all it would have to do is call the API shown above in 2) .


This would make it a lot easier to get info for buckets using the CLI.

Idea priority Low
Needed By Yesterday (Let's go already!)
  • Guest
    May 26, 2024

    Per case CS3943317, client is suggesting the above "bucket metadata" GET to be added to the "ibmcloud cos" section of the IBM Cloud CLI.

    Currently, this "bucket metadata" information is only available in the IBM Cloud COS bucket UI as mentioned previously.
    The responses (object_count and object_size) for this GET update every 2-10 minutes (It varies).

    The ability to pull bucket object_count and object_size via the IBM Cloud CLI is needed by clients using the shell/cli in their automation.