Create a Google Cloud Platform (GCP) cloud action to automatically discover assets from your Google Cloud Platform environment. This lets Lansweeper collect inventory data across your GCP projects and workloads—such as Compute Engine instances, Cloud SQL databases, and storage resources—ensuring your cloud assets are always visible and up to date in a unified inventory.
Prerequisities
Create a GCP cloud action
In your Lansweeper Site, go to Discovery > Actions.
Select Create action > Cloud > Add action.
Enter a Name and Description for the action.
Under Cloud sources, select Cloud provider - Google Cloud Platform (GCP).
Enter your Workload Identity Pool ID, Workload Identity Provider, Project Number, and Service Account Email.
Select List projects.
Choose the GCP projects you want to add to the discovery action.
Under Asset Types, select which types of assets to scan.
Optionally, select Add a label include or exclude specific labels.
Select Create trigger.
Select either:
Instant to run at a scheduled time on select days. Enter the name, time, and days you prefer.
Recurring to run at repeated hourly intervals. Enter a name and specify how often you want your discovery to run.
Select Create trigger.
Select Create action.