I am trying to run gcloud compute instances list on a project and only get a list of instances using a specific boot disk or image.
What I am currently running is:
gcloud compute instances list --project=my-project --filter="disks.initializeParams.sourceImage='image-name'"
However this is returning 0 items, moreover any filter I run into initializeParams returns 0 items. Am I doing something wrong with my filtering? Or is there a better way to get a list of instances using a specific image?