79491827

Date: 2025-03-07 09:42:14
Score: 1.5
Natty:
Report link

There is a "one-liner" (after you do know your organizationID) that solves this.

1. Get your orgid:
gcloud organizations list

2. run the command below, adding your orgid (you need permissions to read all objects in the org)
gcloud asset search-all-resources --scope=organizations/<your orgID> --asset-types='compute.googleapis.com/Address' --read-mask='Versioned_resources' --format="csv[separator=', '](versionedResources.resource.address,versionedResources.resource.addressType)"

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andreh HYOR