# `sc_crawler.vendors._vultr`

> Inventory of Vultr via its API: servers, storages, traffic, IPv4 addresses and managed PostgreSQL, with their prices.

# `sc_crawler.vendors._vultr`

**Functions:**

- [**inventory_compliance_frameworks**](#inventory_compliance_frameworks) – Manual list of known compliance frameworks at Vultr.
- [**inventory_regions**](#inventory_regions) – List all regions from Vultr API.
- [**inventory_zones**](#inventory_zones) – List all regions as availability zones.
- [**inventory_servers**](#inventory_servers) – List all servers from Vultr API.
- [**inventory_server_prices**](#inventory_server_prices) – List all on-demand server and bare metal prices in all regions from Vultr API.
- [**inventory_server_prices_spot**](#inventory_server_prices_spot) – List all preemptible server and bare metal prices in all regions from Vultr API.
- [**inventory_storages**](#inventory_storages) – Block storage types collected manually.
- [**inventory_storage_prices**](#inventory_storage_prices) – Block storage prices collected manually, in the regions offering them per Vultr API.
- [**inventory_traffic_prices**](#inventory_traffic_prices) – Public network traffic rates (flat worldwide).
- [**inventory_ipv4_prices**](#inventory_ipv4_prices) – Reserved / additional public IPv4 (flat worldwide).
- [**inventory_databases**](#inventory_databases) – List Vultr managed PostgreSQL plans.
- [**inventory_database_prices**](#inventory_database_prices) – List Vultr managed PostgreSQL plan prices in all regions.
- [**inventory_database_storages**](#inventory_database_storages) – Vultr managed PostgreSQL storage is bundled into DB plans.
- [**inventory_database_storage_prices**](#inventory_database_storage_prices) – No standalone Vultr managed DB storage price meters are exposed.

## func <code class="doc-name">inventory_compliance_frameworks</code> [_vultr.py:812–821](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L812-L821)

```python
inventory_compliance_frameworks(vendor)
```

Manual list of known compliance frameworks at Vultr.

## func <code class="doc-name">inventory_regions</code> [_vultr.py:824–850](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L824-L850)

```python
inventory_regions(vendor)
```

List all regions from Vultr API.

## func <code class="doc-name">inventory_zones</code> [_vultr.py:853–873](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L853-L873)

```python
inventory_zones(vendor)
```

List all regions as availability zones.

There is no concept of having multiple availability zones within
a region (virtual datacenter) at Vultr, so creating 1-1
dummy Zones reusing the Region id and name.

## func <code class="doc-name">inventory_servers</code> [_vultr.py:876–1052](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L876-L1052)

```python
inventory_servers(vendor)
```

List all servers from Vultr API.

Lifecycle: free plan or empty `locations` -> INACTIVE, otherwise ACTIVE.

## func <code class="doc-name">inventory_server_prices</code> [_vultr.py:1062–1105](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1062-L1105)

```python
inventory_server_prices(vendor)
```

List all on-demand server and bare metal prices in all regions from Vultr API.

Servers are billed hourly up to a monthly cap, described as tiered prices.

## func <code class="doc-name">inventory_server_prices_spot</code> [_vultr.py:1108–1155](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1108-L1155)

```python
inventory_server_prices_spot(vendor)
```

List all preemptible server and bare metal prices in all regions from Vultr API.

Servers are billed hourly up to a monthly cap, described as tiered prices.

## func <code class="doc-name">inventory_storages</code> [_vultr.py:1158–1175](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1158-L1175)

```python
inventory_storages(vendor)
```

Block storage types collected manually.

## func <code class="doc-name">inventory_storage_prices</code> [_vultr.py:1178–1197](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1178-L1197)

```python
inventory_storage_prices(vendor)
```

Block storage prices collected manually, in the regions offering them per Vultr API.

## func <code class="doc-name">inventory_traffic_prices</code> [_vultr.py:1200–1233](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1200-L1233)

```python
inventory_traffic_prices(vendor)
```

Public network traffic rates (flat worldwide).

Ingress is free. Outbound overage beyond pooled plan + account quota is
billed per GB; included allowances are on each server plan ``bandwidth`` field.

Source: <https://docs.vultr.com/support/platform/billing/what-is-the-bandwidth-overage-rate>

## func <code class="doc-name">inventory_ipv4_prices</code> [_vultr.py:1236–1256](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1236-L1256)

```python
inventory_ipv4_prices(vendor)
```

Reserved / additional public IPv4 (flat worldwide).

Primary instance IPv4 is included in compute pricing; this is the published
rate for reserved IPs (also used for extra addresses).

Source: <https://docs.vultr.com/support/products/network/are-reserved-ips-free>

## func <code class="doc-name">inventory_databases</code> [_vultr.py:1259–1385](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1259-L1385)

```python
inventory_databases(vendor)
```

List Vultr managed PostgreSQL plans.

- Provisioning uses POST /v2/databases with `plan` and `database_engine`.
- Plan ids come from GET /v2/databases/plans.
- Vultr Managed Databases are managed clusters, not plain VM images.
https://docs.vultr.com/products/storage/databases/postgresql/provisioning
https://docs.vultr.com/products/storage/databases

## func <code class="doc-name">inventory_database_prices</code> [_vultr.py:1388–1444](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1388-L1444)

```python
inventory_database_prices(vendor)
```

List Vultr managed PostgreSQL plan prices in all regions.

Plans with more than one node are highly available within a single zone.

## func <code class="doc-name">inventory_database_storages</code> [_vultr.py:1447–1454](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1447-L1454)

```python
inventory_database_storages(vendor)
```

Vultr managed PostgreSQL storage is bundled into DB plans.

Resizing storage is done by changing the database node plan; there is no
separate DB storage catalog product exposed by the public API.
https://docs.vultr.com/products/storage/databases/postgresql/management/resize-databases

## func <code class="doc-name">inventory_database_storage_prices</code> [_vultr.py:1457–1459](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/vendors/_vultr.py#L1457-L1459)

```python
inventory_database_storage_prices(vendor)
```

No standalone Vultr managed DB storage price meters are exposed.
