Skip to main content

sc_crawler.vendors._gcp

Functions:

func inventory_compliance_frameworks​

inventory_compliance_frameworks(vendor)

Manual list of compliance frameworks known for GCP.

Resources: https://cloud.google.com/compliance?hl=en

func inventory_regions​

inventory_regions(vendor)

List all available GCP regions via API calls.

Some data sources are not available from APIs, and were collected manually:

Note that many GCP regions use more than 90% green energy, but the related flag in our database is set to False as not being 100%.

func inventory_zones​

inventory_zones(vendor)

List all available GCP zones via API calls.

func inventory_servers​

inventory_servers(vendor)

List all available GCP servers available in all zones.

Lifecycle (machineTypes.deprecated.state): DEPRECATED -> PLANNED_FOR_RETIREMENT, OBSOLETE / DELETED -> RETIRED, empty / ACTIVE -> ACTIVE. See _gcp_machine_type_status.

func inventory_server_prices​

inventory_server_prices(vendor)

List all available GCP server ondemand prices in all regions.

Prices cover the predefined vCPU, memory, attached GPUs, and bundled Local SSD (from machineTypes.bundledLocalSsds).

func inventory_server_prices_spot​

inventory_server_prices_spot(vendor)

List all available GCP server spot prices in all regions.

Same components as inventory_server_prices (including bundled Local SSD).

func inventory_storages​

inventory_storages(vendor)

List GCP disk types for the storage catalog.

Allowlisted zonal types (PD + Hyperdisk) share the same name/specs in every zone, so one zone is enough. Hyperdisk Balanced HA is regional-only (regionDiskTypes) and is not a zonal type. See https://cloud.google.com/compute/docs/disks#disk-types and https://cloud.google.com/compute/docs/disks/hyperdisks.

func inventory_storage_prices​

inventory_storage_prices(vendor)

List all available GCP disk storage prices in all regions.

func inventory_traffic_prices​

inventory_traffic_prices(vendor)

List inbound and outbound network traffic prices in all GCP regions.

func inventory_ipv4_prices​

inventory_ipv4_prices(vendor)

List the price of an attached IPv4 address in all GCP regions.

Note that this data was not found using the APIs (only unattached static IPs), so the values are recorded manually from https://cloud.google.com/vpc/network-pricing#ipaddress.

func inventory_databases​

inventory_databases(vendor)

List all available GCP Cloud SQL for PostgreSQL database types via API calls.

func inventory_database_prices​

inventory_database_prices(vendor)

List all available GCP Cloud SQL for PostgreSQL on-demand prices in all regions.

func inventory_database_storages​

inventory_database_storages(vendor)

List all available GCP Cloud SQL for PostgreSQL storage options.

func inventory_database_storage_prices​

inventory_database_storage_prices(vendor)

List all available GCP Cloud SQL for PostgreSQL storage prices in all regions.