Skip to main content

sc_crawler.vendors._alicloud

Inventory of Alibaba Cloud via its APIs: servers, storages, traffic and IPv4 addresses, with their prices.

Functions:

  • inventory_compliance_frameworks – Manual list of compliance frameworks known for Alibaba Cloud.
  • inventory_regions – List all available Alibaba Cloud 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.
  • inventory_zones – List all 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 types at Alibaba Cloud using the DescribeInstanceTypes 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 endpoint.
  • inventory_server_prices – Fetch server pricing and regional availability using the QuerySkuPriceListRequest API endpoint.
  • inventory_server_prices_spot – Fetch spot instancespot 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 pricing by time-based sampling of 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 instances per region.
  • inventory_storages – List all block storage offerings.
  • inventory_storage_prices – Fetch server prices using the QuerySkuPriceListRequest API endpoint.
  • inventory_traffic_prices – Collect inbound and 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 of Alibaba Cloud regions.
  • inventory_ipv4_prices – Static IPv4 pricing of Alibaba Cloud regions.

func inventory_compliance_frameworks _alicloud.py:1683–1690⁠ (opens in a new tab)​

inventory_compliance_frameworks(vendor)

Manual list of compliance frameworks known for Alibaba Cloud.

Resources: https://www.alibabacloud.com/en/trust-center/compliance⁠ (opens in a new tab)

func inventory_regions _alicloud.py:1693–1730⁠ (opens in a new tab)​

inventory_regions(vendor)

List all available Alibaba Cloud regions.

Data sources:

func inventory_zones _alicloud.py:1733–1776⁠ (opens in a new tab)​

inventory_zones(vendor)

List all availability zones.

func inventory_servers _alicloud.py:1779–2034⁠ (opens in a new tab)​

inventory_servers(vendor)

List all server types at Alibaba Cloud using the DescribeInstanceTypes API endpoint.

Lifecycle (DescribeAvailableResource StatusCategory): WithStock and WithoutStock (out of stock, but replenished) -> ACTIVE, ClosedWithStock -> PLANNED_FOR_RETIREMENT, ClosedWithoutStock -> RETIRED; missing in availability response -> INACTIVE. The retirement date of the PLANNED_FOR_RETIREMENT and RETIRED ones is from _ALICLOUD_RETIREMENT_RULES.

func inventory_server_prices _alicloud.py:2037–2105⁠ (opens in a new tab)​

inventory_server_prices(vendor)

Fetch server pricing and regional availability using the QuerySkuPriceListRequest API endpoint.

Alternative approach could be looking at https://g.alicdn.com/aliyun/ecs-price-info-intl/2.0.375/price/download/instancePrice.json⁠ (opens in a new tab).

func inventory_server_prices_spot _alicloud.py:2108–2235⁠ (opens in a new tab)​

inventory_server_prices_spot(vendor)

Fetch spot instance pricing by time-based sampling of on-demand instances per region.

Each region worker fetches spot prices for a random sample of instances within sample_time, adapting to different response times, parallelized across regions.

func inventory_storages _alicloud.py:2238–2329⁠ (opens in a new tab)​

inventory_storages(vendor)

List all block storage offerings.

Data sources:

Capacity ranges are specified in GiB in the Alibaba Cloud documentation and are converted to GB here. Throughput values are in MB/s as per the documentation.

func inventory_storage_prices _alicloud.py:2332–2371⁠ (opens in a new tab)​

inventory_storage_prices(vendor)

Fetch server prices using the QuerySkuPriceListRequest API endpoint.

func inventory_traffic_prices _alicloud.py:2374–2417⁠ (opens in a new tab)​

inventory_traffic_prices(vendor)

Collect inbound and outbound traffic prices of Alibaba Cloud regions.

Inbound is free as per https://www.alibabacloud.com/help/en/ecs/public-bandwidth⁠ (opens in a new tab). Outbound traffic pricing collected from the QuerySkuPriceListRequest API endpoint.

Account level tiering information can be found at https://www.alibabacloud.com/help/en/cdt/internet-data-transfers/#4a98c9ee8eemn⁠ (opens in a new tab).

func inventory_ipv4_prices _alicloud.py:2420–2437⁠ (opens in a new tab)​

inventory_ipv4_prices(vendor)

Static IPv4 pricing of Alibaba Cloud regions.

Static (not Elastic) IP addresses are free, you only pay for bandwidth or traffic as per https://www.alibabacloud.com/help/en/ecs/user-guide/public-ip-address?spm=a2c63.p38356.0.i1#52c0fa8bbcee6⁠ (opens in a new tab).