_gcp
sc_crawler.vendors._gcp
#
Inventory of Google Cloud Platform via its APIs: servers, storages, traffic, IPv4 addresses and managed PostgreSQL (Cloud SQL), with their prices.
Functions:
| Name | Description |
|---|---|
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. |
inventory_compliance_frameworks
#
Manual list of compliance frameworks known for GCP.
Resources: https://cloud.google.com/compliance?hl=en
Source code in sc_crawler/vendors/_gcp.py
inventory_regions
#
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%.
Source code in sc_crawler/vendors/_gcp.py
1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 | |
inventory_zones
#
List all available GCP zones via API calls.
Source code in sc_crawler/vendors/_gcp.py
inventory_servers
#
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.
Source code in sc_crawler/vendors/_gcp.py
inventory_server_prices
#
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).
Source code in sc_crawler/vendors/_gcp.py
inventory_server_prices_spot
#
List all available GCP server spot prices in all regions.
Same components as inventory_server_prices (including bundled Local SSD).
Source code in sc_crawler/vendors/_gcp.py
inventory_storages
#
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.
Source code in sc_crawler/vendors/_gcp.py
inventory_storage_prices
#
List all available GCP disk storage prices in all regions.
Source code in sc_crawler/vendors/_gcp.py
inventory_traffic_prices
#
List inbound and outbound network traffic prices in all GCP regions.
Source code in sc_crawler/vendors/_gcp.py
inventory_ipv4_prices
#
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.
Source code in sc_crawler/vendors/_gcp.py
inventory_databases
#
List all available GCP Cloud SQL for PostgreSQL database types via API calls.
Source code in sc_crawler/vendors/_gcp.py
2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 | |
inventory_database_prices
#
List all available GCP Cloud SQL for PostgreSQL on-demand prices in all regions.
Source code in sc_crawler/vendors/_gcp.py
2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 | |
inventory_database_storages
#
List all available GCP Cloud SQL for PostgreSQL storage options.
Source code in sc_crawler/vendors/_gcp.py
inventory_database_storage_prices
#
List all available GCP Cloud SQL for PostgreSQL storage prices in all regions.