Skip to main content

reference_loadbalancer_flavors

Creates, updates, deletes, gets or lists a reference_loadbalancer_flavors resource.

Overview​

Namereference_loadbalancer_flavors
TypeResource
Idovh.public_cloud.reference_loadbalancer_flavors

Fields​

The following fields are returned by SELECT queries:

A load balancer flavor and its performance in one region. A flavor sold in several regions appears once per region.

NameDatatypeDescription
namestringFlavor name, to use as the flavor name when creating a load balancer, for example SMALL (LARGE, MEDIUM, SMALL, XL)
bandwidthintegerBandwidth in Mbit/s
connections_per_secondintegerNumber of new connections per second the load balancer handles (wire: connectionsPerSecond)
locationobjectRegion where the flavor is sold to the project, whether that region is already activated on the project (regionActivated), and the availability zones of that region (availabilityZones), empty for a single-AZ region
requests_per_secondintegerNumber of HTTP requests per second the load balancer handles (wire: requestsPerSecond)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idx_pagination_cursor, x_pagination_size, regionReturns the load balancer flavors with their bandwidth in Mbit/s, new connections per second and HTTP requests per second, read from the OVHcloud commercial catalog of the project's billing country. The list holds one entry per flavor and region: a flavor sold in several regions appears once per region, with the figures of that region and the region in location. The regions already activated on the project and those the project can activate where a flavor is sold are both listed. location.regionActivated on each entry tells which regions must be activated on the project before use. location.availabilityZones lists the availability zones of the region, for example eu-west-par-a, eu-west-par-b and eu-west-par-c, and is empty for a single-AZ region. Flavors come smallest first, each sorted by region name. Use name as the flavor name when creating a load balancer.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
regionstringOptional region filter, case-insensitive. Keeps the entries of this region only. A region that does not exist is rejected. One the project can neither use nor activate returns an empty list.
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the load balancer flavors with their bandwidth in Mbit/s, new connections per second and HTTP requests per second, read from the OVHcloud commercial catalog of the project's billing country. The list holds one entry per flavor and region: a flavor sold in several regions appears once per region, with the figures of that region and the region in location. The regions already activated on the project and those the project can activate where a flavor is sold are both listed. location.regionActivated on each entry tells which regions must be activated on the project before use. location.availabilityZones lists the availability zones of the region, for example eu-west-par-a, eu-west-par-b and eu-west-par-c, and is empty for a single-AZ region. Flavors come smallest first, each sorted by region name. Use name as the flavor name when creating a load balancer.

SELECT
name,
bandwidth,
connections_per_second,
location,
requests_per_second
FROM ovh.public_cloud.reference_loadbalancer_flavors
WHERE project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
AND region = '{{ region }}'
;