sc_crawler.vendors._upcloud
Inventory of UpCloud via its 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: 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, with their prices.
Functions:
- inventory_compliance_frameworks – Manual list of known compliance frameworks at UpCloud.
- inventory_regions – List all 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 API call. - inventory_zones – List all regions as availability zonesavailability zoneOne or more isolated data centers within a cloud region, with their own power, cooling and network. A server runs in one zone; spreading servers over several zones of a region keeps a service up when one zone fails. Prices and the server types on offer can differ by zone.AWS docsGlossary.
- inventory_servers – List all server plans from UpCloud API.
- inventory_server_prices – List all on-demandon-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 server prices in all zones from the UpCloud price list.
- inventory_server_prices_spot – List all spot server prices in all zones from the UpCloud price list.
- inventory_storages – Block storage tiers collected manually.
- inventory_storage_prices – List block storage prices in all zones from the UpCloud price list.
- inventory_traffic_prices – List outbound trafficegressThe network traffic leaving a cloud vendor's network, e.g. to the internet. Vendors usually charge for it per GB beyond an included amount, while incoming (ingress) traffic is usually free, so it can make up a large part of the costs of a service that sends a lot of data.Glossary prices in all zones from the UpCloud price list.
- inventory_ipv4_prices – List IPv4 address prices in all zones from the UpCloud price list.
- inventory_databases – List UpCloud managed PostgreSQL service plans.
- inventory_database_prices – List UpCloud managed PostgreSQL compute prices.
- inventory_database_storages – List managed PostgreSQL disk tiers (Standard 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 and MaxIOPS).
- inventory_database_storage_prices – List managed PostgreSQL disk tier prices from the UpCloud zone price list.
func inventory_compliance_frameworks _upcloud.py:687–695
inventory_compliance_frameworks(vendor)
Manual list of known compliance frameworks at UpCloud.
Data collected from their Security and Standards docs at https://upcloud.com/security-privacy.
func inventory_regions _upcloud.py:698–871
inventory_regions(vendor)
List all regions via API call.
Data manually enriched from https://upcloud.com/data-centres.
func inventory_zones _upcloud.py:874–893
inventory_zones(vendor)
List all regions as availability zones.
There is no concept of having multiple availability zones withing a region (virtual datacenter) at UpCloud, so creating 1-1 dummy Zones reusing the Region id and name.
func inventory_servers _upcloud.py:896–996
inventory_servers(vendor)
List all server plans from UpCloud API.
Lifecycle: current_offering == "no" -> RETIRED; GPUGPU: Graphics Processing UnitA processor with thousands of simple cores that run the same operation on many data elements in parallel. It was built to render graphics, and is now also used for general-purpose parallel work such as machine learning training and inference, scientific simulation, and video encoding. Cloud providers rent GPUs attached to virtual machines, with their own dedicated GPU memory.WikipediaGlossary plans with zero stock
in /device/availability across all regions -> INACTIVE; otherwise ACTIVE.
See _upcloud_server_status.
func inventory_server_prices _upcloud.py:999–1043
inventory_server_prices(vendor)
List all on-demand server prices in all zones from the UpCloud price list.
GPU plans are listed only in the zones where they are available. Servers are billed hourly up to a monthly cap of 672 hours, described as tiered prices.
func inventory_server_prices_spot _upcloud.py:1046–1080
inventory_server_prices_spot(vendor)
List all spot server prices in all zones from the UpCloud price list.
GPU plans are listed only in the zones where they are available.
func inventory_storages _upcloud.py:1083–1100
inventory_storages(vendor)
Block storage tiers collected manually.
func inventory_storage_prices _upcloud.py:1103–1124
inventory_storage_prices(vendor)
List block storage prices in all zones from the UpCloud price list.
UpCloud charges storage per hour, converted to monthly prices as at other vendors.
func inventory_traffic_prices _upcloud.py:1127–1152
inventory_traffic_prices(vendor)
List outbound traffic prices in all zones from the UpCloud price list.
Inbound traffic is free.
func inventory_ipv4_prices _upcloud.py:1155–1171
inventory_ipv4_prices(vendor)
List IPv4 address prices in all zones from the UpCloud price list.
func inventory_databases _upcloud.py:1282–1535
inventory_databases(vendor)
List UpCloud managed PostgreSQL service plans.
- Flexible Developer/Standard/High Memory shapes from GET /1.3/database/plans.
- Legacy bundled plans from GET /1.3/database/service-types/pg.
- Supported versions come from service-types/pg
properties.version.enum. https://developers.upcloud.com/1.3/16-managed-database/ https://upcloud.com/docs/products/managed-postgresql/configurations/ https://upcloud.com/global/pricing/
func inventory_database_prices _upcloud.py:1538–1622
inventory_database_prices(vendor)
List UpCloud managed PostgreSQL compute prices.
Legacy plans bill the full cluster under managed_database_{plan}.
Flexible plans bill per-node compute under
managed_database_compute_{plan_compute}. Node topology maps to:
1 node NONE/NONE, 2-node package SINGLE_ZONE/PASSIVE_STANDBY (1.9x),
3-node package SINGLE_ZONE/READABLE_CLUSTER (2.6x) with published
multi-node discounts (PASSIVE is only a price key when both 2 and 3
are orderable on the same compute shape).
https://upcloud.com/global/pricing/
func inventory_database_storages _upcloud.py:1717–1746
inventory_database_storages(vendor)
List managed PostgreSQL disk tiers (Standard 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 and MaxIOPS).
Flexible plans bill all disk via these meters; legacy plans also use Standard tiered storage for additional disk above the bundled size. Size bounds are per tier (Developer/legacy → Standard; Std/HM → MaxIOPS). https://upcloud.com/global/pricing/ https://upcloud.com/docs/products/block-storage/tiers/ https://developers.upcloud.com/1.3/16-managed-database/
func inventory_database_storage_prices _upcloud.py:1749–1784
inventory_database_storage_prices(vendor)
List managed PostgreSQL disk tier prices from the UpCloud zone price list.