softlayer / softlayer-cli

This repository houses the code that powers the ibmcloud-cli sl command
2 stars 0 forks source link

Filter volumes based on the notes via cli #3

Closed akashrajkn closed 2 years ago

akashrajkn commented 2 years ago

At the moment, for getting a list of volumes, we can give username, datacenter, storage-type as parameters for the filter. It is quite handy to filter based on the user notes. Will it be supported in the future?

Relevant commands:

ibmcloud sl file volume-list [OPTIONS]
ibmcloud sl block volume-list [OPTIONS]

Request: Add --notes to OPTIONS

Workaround for now: Note, this is possible using the call-api:

ibmcloud sl call-api SoftLayer_Account getNetworkStorage --filter '{"networkStorage":{"notes":{"operation":"a-fancy-volume"}}}'
allmightyspiff commented 2 years ago

This is added in https://github.ibm.com/SoftLayer/softlayer-cli/pull/221 and will be in the next release