cli icon indicating copy to clipboard operation
cli copied to clipboard

[FEATURE REQUEST] Filter `fastly objectstore list` by name

Open JakeChampion opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. After creating a new Object Store, I need to find the ID of the new store to use in HTTP API calls. Currently fastly objectstore list returns all Object Stores in an account.

Describe the solution you'd like I would like to be able to run fastly objectstore list --name=<my-store-name> --json and for that to return information about the store named <my-store-name> in JSON format

Describe alternatives you've considered I currently use this to get the Object Store ID - fastly objectstore list | grep -A 3 'my-store' | tail -n 1 | grep -o '[a-z0-9]*'

Additional context fastly objectstore insert,fastly objectstore get, and fastly objectstore delete all currently require an Object Store ID, it would be really useful if they accepted an Object Store name, it would remove the need for a customer to need to know the ID

JakeChampion avatar Jan 16 '23 17:01 JakeChampion