Is there a way to list CMEK's attached to GCP VM's, Images and Snapshots using python api?

Viewed 54

I am referring this link - https://cloud.google.com/compute/docs/reference/rest/v1/instances/list to capture CMEK's attached to a VM, But in the response I see inside disks, I see kmskeyname attribute defined couple of times, not sure what to pick for a VM, VM Image, and VM snapshot

let's say to capture CMEK attached to a snapshot, do I need to use this - sourceSnapshotEncryptionKey - > kmsKeyName

for VM Image - sourceImageEncryptionKey - > kmsKeyName and for VM - diskEncryptionKey - > kmsKeyName

Am I assuming it right?

0 Answers
Related