Skip to main content

Sample GCP Cloud Storage RQL Queries#


The following guide will walk you through GCP Cloud Storage RQL Examples

List storage buckets set to "private" with object ACLs set to "public"#

config from cloud.resource where cloud.type = 'gcp' AND = 'gcloud-storage-buckets-list' AND json.rule = 'iam.bindings[*] size greater than 0 and iam.bindings[*].members[*] any equal allUsers and acl[*].entity contains "allUsers"'

List storage buckets not located in EU region#

config from cloud.resource where = 'gcloud-storage-buckets-list' AND json.rule = location does not contain eu and location does not contain EU
Last updated on by csestito