Google Cloud Platform
Step to Generate Credentials for Google Cloud
- Login to Google Cloud Console
- Select the project that you want to monitor.
- From the left navigation pane, select IAM & admin and then Service Accounts.
- Select CREATE SERVICE ACCOUNT.
- Fill in the Service Account ID, and then click Create and Continue
- Select the role Basic -> Viewer, and then click Done
- On the rightmost column, click on Actions, and then Manage Keys
- Click Add Keypair, and then Create New Key
- Select JSON as your key Type and click create to download the JSON key
Existing Functionalities
info
Go to API Reference to see the list of APIs.
- List all GCP information (
POST /api/v1/gcp
)- Includes: regions, zones, networks, subnets, firewalls, disks, instances, keypairs, buckets, and clusters
- List GCP Compute Engine Resource (
POST /api/v1/gcp/ce
) Includes: Regions, Zones, Network, Firewall, Disks, Instances - List GCP Buckets (
POST /api/v1/gcp/buckets
) - List GCP k8s clusters (
POST /api/v1/gcp/k8s
)
Required Permissions
warning
Not tested yet.
The following perimissions are required:
compute.disks.list
compute.firewalls.list
compute.globalOperations.get
compute.instances.list
compute.networks.list
compute.projects.get
compute.regions.list
compute.subnetworks.list
compute.zones.list
iam.serviceAccounts.get
storage.buckets.list
Vulnerability Scan Permission
The following permissions are required:
compute.firewalls.create
compute.firewalls.delete
compute.networks.updatePolicy
compute.projects.setCommonInstanceMetadata
iam.serviceAccounts.actAs
To Create a custom role with these permissions, see this page. Then you can assign the role to the service account following this page.