sc_crawler.vendors._gcp
Inventory of Google Cloud Platform via its APIs: servers, storages, traffic, IPv4 addresses and managed PostgreSQLPostgreSQLAn open-source object-relational database system, developed by a global community and descended from the POSTGRES project at UC Berkeley in 1986. It uses and extends SQL, with transactions, many index types, extensions, and JSON data.PostgreSQL docsGlossary (Cloud SQL), with their prices.
Functions:
- inventory_compliance_frameworks – Manual list of compliance frameworks known for GCP.
- inventory_regions – List all available GCP regionsregionA geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as
eu-central-1, is unique only within its vendor.Glossary via APIAPI: Application Programming InterfaceA defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions.WikipediaGlossary 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 ondemandon-demandA pricing model of cloud servers that charges for the time a server runs, without a commitment, typically per second or hour. The server runs until you stop it, unlike a spot instance, but it costs more than spot or reserved capacity.Glossary prices in all regions.
- inventory_server_prices_spot – List all available GCP server spot pricesspot instanceA cloud server that runs on the vendor's spare capacity, at a large discount from its on-demand price, but which the vendor can stop or take back at short notice when it needs the capacity. Spot prices change with the demand, e.g. several times a day.AWS docsGlossary 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 _gcp.py:1643–1649
inventory_compliance_frameworks(vendor)
Manual list of compliance frameworks known for GCP.
Resources: https://cloud.google.com/compliance?hl=en
func inventory_regions _gcp.py:1652–2080
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 _gcp.py:2083–2100
inventory_zones(vendor)
List all available GCP zones via API calls.
func inventory_servers _gcp.py:2103–2129
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 _gcp.py:2132–2138
inventory_server_prices(vendor)
List all available GCP server ondemand prices in all regions.
Prices cover the predefined vCPUvCPU: virtual CPUA CPU of a virtual machine, the unit in which cloud vendors sell compute. It is usually one hardware thread of a physical core with SMT, so two vCPUs may share one physical core.WikipediaGlossary, memory, attached GPUs, and bundled Local
SSDSSD: Solid-State DriveA storage device that keeps data in flash memory instead of on spinning disks, so it reads and writes much faster than an HDD, especially at random locations. A controller with its own firmware maps logical blocks to flash pages, and many SSDs write incoming data to a fast cache first, then move it to slower flash. Cloud servers use SSDs as local disks and behind network block storage.WikipediaGlossary (from machineTypes.bundledLocalSsds).
func inventory_server_prices_spot _gcp.py:2141–2146
inventory_server_prices_spot(vendor)
List all available GCP server spot prices in all regions.
Same components as inventory_server_prices (including bundled Local SSDSSD: Solid-State DriveA storage device that keeps data in flash memory instead of on spinning disks, so it reads and writes much faster than an HDD, especially at random locations. A controller with its own firmware maps logical blocks to flash pages, and many SSDs write incoming data to a fast cache first, then move it to slower flash. Cloud servers use SSDs as local disks and behind network block storage.WikipediaGlossary).
func inventory_storages _gcp.py:2149–2200
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 _gcp.py:2203–2238
inventory_storage_prices(vendor)
List all available GCP disk storage prices in all regions.
func inventory_traffic_prices _gcp.py:2241–2295
inventory_traffic_prices(vendor)
List inbound and outbound network traffic prices in all GCP regions.
func inventory_ipv4_prices _gcp.py:2298–2321
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 _gcp.py:2760–2967
inventory_databases(vendor)
List all available GCP Cloud SQL for PostgreSQL database types via API calls.
func inventory_database_prices _gcp.py:2970–3072
inventory_database_prices(vendor)
List all available GCP Cloud SQL for PostgreSQL on-demand prices in all regions.
func inventory_database_storages _gcp.py:3075–3106
inventory_database_storages(vendor)
List all available GCP Cloud SQL for PostgreSQL storage options.
func inventory_database_storage_prices _gcp.py:3109–3166
inventory_database_storage_prices(vendor)
List all available GCP Cloud SQL for PostgreSQL storage prices in all regions.