Dynamicly finding a disk

Hi,

I’m trying to dynamically identify a disk based on the device Ids

{“ids”: {
“sda”: [“google-persistent-disk-0”, “scsi-0Google_PersistentDisk_persistent-disk-0”],
“sda1”: [“google-persistent-disk-0-part1”,“scsi-0Google_PersistentDisk_persistent-disk-0-part1”],
“sdb”: [“google-mongodb”,“scsi-0Google_PersistentDisk_mongodb”]
}
}

I can’t seem to work out how to set up a jmespath query to pull back sdb from searching for ‘mongobd’. It might not be possible.

Any suggestions? Is this the right approach?