Currently the only way to get the bucket total number of objects and total size as is:
In the IBM Cloud Portal web UI go to the bucket configuration
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!) |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
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.