Skip to main content

available_route_rules

Creates, updates, deletes, gets or lists an available_route_rules resource.

Overview​

Nameavailable_route_rules
TypeResource
Idovh.ip_loadbalancing.available_route_rules

Fields​

The following fields are returned by SELECT queries:

Match rule to combine to build routes

NameDatatypeDescription
namestringRule name
enumarrayIf pattern is "enum", list of available options
has_sub_fieldbooleanIf true, this rule needs a subfield. Typically a cookie or header name (wire: hasSubField)
matchesarrayList of match operators compatible with this rule
patternstringExpected type for the pattern. Like "enum", "backend", "cidr", ...
typestringProtocol supported by this action

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameList available route match rules

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"}})
service_namestringThe internal name of your IP load balancing (wire: serviceName)

SELECT examples​

List available route match rules

SELECT
name,
enum,
has_sub_field,
matches,
pattern,
type
FROM ovh.ip_loadbalancing.available_route_rules
WHERE service_name = '{{ service_name }}' -- required
;