sc_crawler.vendors._gcp
Functions:
- inventory_compliance_frameworks – Manual list of compliance frameworks known for GCP.
- inventory_regions – List all available GCP regions via API calls.
- inventory_zones – List all available GCP zones via API calls.
- inventory_servers – List all available GCP servers available in all zones.
- inventory_server_prices – List all available GCP server ondemand prices in all regions.
- inventory_server_prices_spot – List all available GCP server spot prices in all regions.
- inventory_storages – List GCP disk types for the storage catalog.
- inventory_storage_prices – List all available GCP disk storage prices in all regions.
- inventory_traffic_prices – List inbound and outbound network traffic prices in all GCP regions.
- inventory_ipv4_prices – List the price of an attached IPv4 address in all GCP regions.
- inventory_databases – List all available GCP Cloud SQL for PostgreSQL database types via API calls.
- inventory_database_prices – List all available GCP Cloud SQL for PostgreSQL on-demand prices in all regions.
- inventory_database_storages – List all available GCP Cloud SQL for PostgreSQL storage options.
- inventory_database_storage_prices – List all available GCP Cloud SQL for PostgreSQL storage prices in all regions.
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:
- location: https://cloud.google.com/compute/docs/regions-zones#available and https://en.wikipedia.org/wiki/Google_data_centers,
- lon/lat coordinates: https://en.wikipedia.org/wiki/Google_data_centers#Locations and approximation based on the city when no more accurate data was available.
- energy carbon data: https://cloud.google.com/sustainability/region-carbon#data and https://github.com/GoogleCloudPlatform/region-carbon-info,
- launch dates were collected from Wikipedia and GCP blog posts, such as https://medium.com/@retomeier/an-annotated-history-of-googles-cloud-platform-90b90f948920 and https://cloud.google.com/blog/products/infrastructure/introducing-new-google-cloud-regions.
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.