_oci
sc_crawler.vendors._oci
#
Inventory of Oracle Cloud Infrastructure via its API and the public price list: servers, storages, traffic, IPv4 addresses and managed PostgreSQL, with their prices.
Functions:
| Name | Description |
|---|---|
inventory_compliance_frameworks |
Manual list of known compliance frameworks at Oracle Cloud Infrastructure. |
inventory_regions |
List all regions of the commercial realm. |
inventory_zones |
List the availability domains of the subscribed regions as zones. |
inventory_servers |
List all shapes of the active zones as servers. |
inventory_server_prices |
List the on-demand price of the servers in all active zones. |
inventory_server_prices_spot |
List the preemptible price of the servers in all active zones. |
inventory_storages |
List the performance levels of the Block Volume service as storages. |
inventory_storage_prices |
List the Block Volume prices in all regions. |
inventory_traffic_prices |
List the inbound and outbound traffic prices in all regions. |
inventory_ipv4_prices |
Public IPv4 addresses are free of charge at OCI. |
inventory_databases |
List the shapes of OCI Database with PostgreSQL as databases. |
inventory_database_prices |
List the compute prices of the databases in all active regions. |
inventory_database_storages |
List the performance tiers of the database optimized storage. |
inventory_database_storage_prices |
List the database storage prices in all active regions. |
inventory_compliance_frameworks
#
Manual list of known compliance frameworks at Oracle Cloud Infrastructure.
Data sources:
- https://www.oracle.com/corporate/cloud-compliance/
- https://blogs.oracle.com/cloud-infrastructure/fall-2022-compliance-attestations
Source code in sc_crawler/vendors/_oci.py
inventory_regions
#
List all regions of the commercial realm.
The API returns the identifier and key of the regions only, so the location is looked up from a manual mapping based on https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm.
Availability domains and shapes can be listed only in the regions the tenancy is subscribed to, so the other regions are stored as INACTIVE.
Source code in sc_crawler/vendors/_oci.py
inventory_zones
#
List the availability domains of the subscribed regions as zones.
The availability domain names (e.g. Uocm:EU-FRANKFURT-1-AD-1) are specific
to the tenancy, so the zone id is built from the region and the number of
the availability domain, and the name is stored without the prefix of the
tenancy (see _availability_domain for looking up the full name).
Note that the numbers are also mapped to the datacenters per tenancy, so
e.g. AD-1 can be a different datacenter in another tenancy.
Fault domains are not listed as zones.
Source code in sc_crawler/vendors/_oci.py
inventory_servers
#
List all shapes of the active zones as servers.
Shapes are listed per availability domain, as the offers differ. Fixed
shapes are stored as a server, while flexible shapes are expanded to a
grid of OCPU and memory configurations, each stored as a separate server
(see _shape_configs). Burstable configurations (a baseline of 12.5% or
50% of the OCPUs) are not listed.
Lifecycle: shapes listed in any of the active zones -> ACTIVE, except for
the Always Free micro shape (limited to two instances per tenancy) ->
INACTIVE. There is no lifecycle field or retirement date in the API. The
previous generation shapes are still fully supported and can be ordered
despite being past their "end of orderability" date as per
https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#previous-generation-shapes,
so those are PLANNED_FOR_RETIREMENT with that date, see
_OCI_RETIREMENT_RULES.
Source code in sc_crawler/vendors/_oci.py
inventory_server_prices
#
List the on-demand price of the servers in all active zones.
The availability of the shapes is from the API (per availability domain),
while the prices are from the public price list, which is the same in all
commercial regions and has no reference to the shapes, so the related parts
are looked up from a manual mapping (see _SHAPE_PRICE_PARTS). Shapes
without known parts are logged and listed without prices.
Notes:
- The monthly free tier of the Arm-based A1 shapes (3,000 OCPU and 18,000 GB hours) is per tenancy, so it is not applied.
- Only Linux prices are listed (no license fee for Oracle Linux and the other free images).
Source code in sc_crawler/vendors/_oci.py
inventory_server_prices_spot
#
List the preemptible price of the servers in all active zones.
There is no spot market at OCI: preemptible capacity has a fixed 50%
discount on the on-demand price in all regions, and is available only for
the VM shapes listed in _PREEMPTIBLE_SERIES, as per
https://docs.oracle.com/en-us/iaas/Content/Compute/Concepts/preemptible.htm.
Source code in sc_crawler/vendors/_oci.py
inventory_storages
#
List the performance levels of the Block Volume service as storages.
There is no API to list the performance levels, so these are from a
manual list (see _BLOCK_VOLUMES).
Data sources:
- https://docs.oracle.com/en-us/iaas/Content/Block/Concepts/blockvolumeperformance.htm
- https://www.oracle.com/cloud/storage/block-volumes/faq/
Sizes are in GB, and throughput values are in MB/s as per the documentation.
Source code in sc_crawler/vendors/_oci.py
inventory_storage_prices
#
List the Block Volume prices in all regions.
The monthly price of a GB is the storage price plus the price of the Volume Performance Units (VPU) of the performance level, both from the public price list, which is the same in all commercial regions.
Source code in sc_crawler/vendors/_oci.py
inventory_traffic_prices
#
List the inbound and outbound traffic prices in all regions.
Inbound traffic is free. The first 10 TB of outbound traffic is free per
month and tenancy, then priced per GB depending on the location of the
region (see _EGRESS_PARTS), as per the public price list.
Source code in sc_crawler/vendors/_oci.py
inventory_ipv4_prices
#
Public IPv4 addresses are free of charge at OCI.
Neither ephemeral, nor reserved public IP addresses are charged: there is no related part in the public price list, and "there is no charge to use this feature" as per the announcement of the reserved public IPs at https://blogs.oracle.com/cloud-infrastructure/release-announcement-reserved-public-ips-are-now-available-on-oracle-cloud-infrastructure.
Source code in sc_crawler/vendors/_oci.py
inventory_databases
#
List the shapes of OCI Database with PostgreSQL as databases.
The shapes are listed per region (see _database_configs on the sizes), and
the supported PostgreSQL versions are from the active default
configurations of the service. The features are from the documentation.
A database system has a primary node and up to 7 read replica nodes on shared
storage. With multiple nodes, a read replica is promoted on the failure of
the primary node, with the nodes placed in different fault domains of an
availability domain, or in different availability domains (with the storage
replicated across the availability domains). Note that the latter is
available only in the regions with multiple availability domains, see
inventory_database_prices.
Lifecycle: shapes listed in any of the active regions -> ACTIVE. There is no lifecycle field in the API.
Data sources:
- https://docs.oracle.com/en-us/iaas/Content/postgresql/overview.htm
- https://docs.oracle.com/en-us/iaas/Content/postgresql/high-availability.htm
- https://docs.oracle.com/en-us/iaas/Content/postgresql/manage-databases.htm
- https://docs.oracle.com/en-us/iaas/releasenotes/services/postgresql/
Source code in sc_crawler/vendors/_oci.py
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 | |
inventory_database_prices
#
List the compute prices of the databases in all active regions.
The hourly price of a node is the price of the compute shape (OCPUs and
memory, as for the servers) plus the PostgreSQL fee per OCPU, both from the
public price list, which is the same in all commercial regions. Storage is
billed separately, see inventory_database_storage_prices.
Price rows per region:
- no high availability: a single node,
- single-zone readable cluster: a primary and a read replica node in different fault domains of an availability domain,
- multi-zone readable cluster: a primary and a read replica node in different availability domains, only in the regions with multiple zones.
Source code in sc_crawler/vendors/_oci.py
inventory_database_storages
#
List the performance tiers of the database optimized storage.
Storage is decoupled from the compute nodes, shared by the nodes of a
database system, and scales automatically up to 32 TB. There is no API to
list the performance tiers, so these are from a manual list (see
_DATABASE_STORAGE_IOPS).
Data sources:
- https://docs.oracle.com/en-us/iaas/Content/postgresql/performance-tiers.htm
- https://docs.oracle.com/en-us/iaas/Content/postgresql/manage-databases.htm
Source code in sc_crawler/vendors/_oci.py
inventory_database_storage_prices
#
List the database storage prices in all active regions.
The monthly price of a used GB is the Database Optimized Storage price plus
the price of the Volume Performance Units (VPU) of the performance tier (see
_DATABASE_OCPU_PART). Both from the public price list, which is the same
in all commercial regions.