--- title: "GCP Resource Discovery Tool" slug: "gcp-resource-discovery-tool" updated: 2026-09-09T16:09:40Z published: 2026-09-09T16:09:40Z canonical: "docs.redcanary.com/gcp-resource-discovery-tool" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.redcanary.com/llms.txt > Use this file to discover all available pages before exploring further. # GCP Resource Discovery Tool The GCP Resource Discovery Tool is essential for customers who want to assess which of their GCP resources can be integrated with Zscaler MDR. By using this tool, users can enumerate all resources within their GCP tenant, providing a clear picture of what assets are available for integration so that a Zscaler MDR sales representative can provide quoting information. ### Prerequisites - You must have `cloudasset.assets.searchAllResources` permissions within a GCP Project or Organization name. ### Bash Zscaler MDR uses Bash to accomplish this task, particularly the gcloud command line interface (CLI), which searches asset resources for a specified Project or Organization. GCP users will likely have at least one person skilled in Bash. Additionally, GCP CloudShell may be used to run the Bash script directly within the GCP Management Console. ### Step 1: Run the script 1. Navigate to your [GCP cloud console](https://console.cloud.google.com/iam-admin/audit). 2. From the menu bar, click **Activate Cloud Shell**. ![](https://cdn.document360.io/75147bee-bf0d-444c-8afb-6e83b11ec0ef/Images/Documentation/image(80).png?sv=2026-02-06&spr=https&st=2026-11-09T11%3A54%3A17Z&se=2026-11-09T12%3A54%3A17Z&sr=c&sp=r&sig=EHp7Vob%2FD6%2BVAKirRAmU4ujULmr2UHkbp1KxUu1Ns3M%3D) 3. From the CloudShell Menu, click the **extended menu** and then click **Upload**. ![](https://cdn.document360.io/75147bee-bf0d-444c-8afb-6e83b11ec0ef/Images/Documentation/image(88).png?sv=2026-02-06&spr=https&st=2026-11-09T11%3A54%3A17Z&se=2026-11-09T12%3A54%3A17Z&sr=c&sp=r&sig=EHp7Vob%2FD6%2BVAKirRAmU4ujULmr2UHkbp1KxUu1Ns3M%3D) 4. Navigate to the location of the script, which you will have received from a Zscaler MDR representative. You can also [click here to download the script](https://rc-customer-tools.s3.us-east-2.amazonaws.com/gcp/gcp_enumerate_resources.sh). 5. Select the script from the previous step (cont_billable_resources.sh). 6. At the prompt, enter **ls -l**. 7. The count_billable_resources.sh should appear in the listing. ![](https://cdn.document360.io/75147bee-bf0d-444c-8afb-6e83b11ec0ef/Images/Documentation/image(89).png?sv=2026-02-06&spr=https&st=2026-11-09T11%3A54%3A17Z&se=2026-11-09T12%3A54%3A17Z&sr=c&sp=r&sig=EHp7Vob%2FD6%2BVAKirRAmU4ujULmr2UHkbp1KxUu1Ns3M%3D) 8. At the prompt, enter **chmod +x count_billable_resources.sh** to assign the correct permissions so the script can be executed. ![](https://cdn.document360.io/75147bee-bf0d-444c-8afb-6e83b11ec0ef/Images/Documentation/image(90).png?sv=2026-02-06&spr=https&st=2026-11-09T11%3A54%3A17Z&se=2026-11-09T12%3A54%3A17Z&sr=c&sp=r&sig=EHp7Vob%2FD6%2BVAKirRAmU4ujULmr2UHkbp1KxUu1Ns3M%3D) 9. Once you’ve identified the Organization or Project the script should be run for, enter the following at the bash prompt: `./count_billable_resources.sh organizations/<ORGANIZATION_ID> or ./count_billable_resources.sh projects/<PROJECT_ID>` ![](https://cdn.document360.io/75147bee-bf0d-444c-8afb-6e83b11ec0ef/Images/Documentation/image(91).png?sv=2026-02-06&spr=https&st=2026-11-09T11%3A54%3A17Z&se=2026-11-09T12%3A54%3A17Z&sr=c&sp=r&sig=EHp7Vob%2FD6%2BVAKirRAmU4ujULmr2UHkbp1KxUu1Ns3M%3D)