Skip to main content

region_loadbalancing_l7_policy_l7_rules

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

Overview​

Nameregion_loadbalancing_l7_policy_l7_rules
TypeResource
Idovh.cloud_network.region_loadbalancing_l7_policy_l7_rules

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)The ID of the L7 rule
compare_typestringThe comparison type for the L7 rule (contains, endsWith, equalTo, regex, startsWith) (wire: compareType)
invertbooleanWhen true the logic of the rule is inverted. For example, with invert set to true, equal to would become not equal to
keystringThe key to use for the comparison. For example, the name of the cookie to evaluate
operating_statusstringOperating status of the resource (degraded, draining, error, noMonitor, offline, online) (wire: operatingStatus)
provisioning_statusstringprovisioning status of the resource (active, creating, deleted, deleting, error, updating) (wire: provisioningStatus)
rule_typestringThe L7 rule type (cookie, fileType, header, hostName, path, sslConnHasCert, sslDNField, sslVerifyResult) (wire: ruleType)
valuestringThe value to use for the comparison. For example, the file type to compare

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectl_7_policy_id, l_7_rule_id, region_name, service_name
listselectl_7_policy_id, region_name, service_name
createinsertl_7_policy_id, region_name, service_name, compare_type, rule_type, value
updateupdatel_7_policy_id, l_7_rule_id, region_name, service_name, compare_type, rule_type, value
deletedeletel_7_policy_id, l_7_rule_id, region_name, service_name

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"}})
l_7_policy_idstring (uuid)L7 policy ID (wire: l7PolicyId)
l_7_rule_idstring (uuid)L7 rule ID (wire: l7RuleId)
region_namestringRegion name (wire: regionName)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

successful operation

SELECT
id,
compare_type,
invert,
key,
operating_status,
provisioning_status,
rule_type,
value
FROM ovh.cloud_network.region_loadbalancing_l7_policy_l7_rules
WHERE l_7_policy_id = '{{ l_7_policy_id }}' -- required
AND l_7_rule_id = '{{ l_7_rule_id }}' -- required
AND region_name = '{{ region_name }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

INSERT examples​

No description available.

INSERT INTO ovh.cloud_network.region_loadbalancing_l7_policy_l7_rules (
compare_type,
invert,
key,
rule_type,
value,
l_7_policy_id,
region_name,
service_name
)
SELECT
'{{ compare_type }}' /* required */,
{{ invert }},
'{{ key }}',
'{{ rule_type }}' /* required */,
'{{ value }}' /* required */,
'{{ l_7_policy_id }}',
'{{ region_name }}',
'{{ service_name }}'
RETURNING
id,
compare_type,
invert,
key,
operating_status,
provisioning_status,
rule_type,
value
;

UPDATE examples​

No description available.

UPDATE ovh.cloud_network.region_loadbalancing_l7_policy_l7_rules
SET
compare_type = '{{ compare_type }}',
invert = {{ invert }},
key = '{{ key }}',
rule_type = '{{ rule_type }}',
value = '{{ value }}'
WHERE
l_7_policy_id = '{{ l_7_policy_id }}' --required
AND l_7_rule_id = '{{ l_7_rule_id }}' --required
AND region_name = '{{ region_name }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
AND compare_type = '{{ compare_type }}' --required
AND rule_type = '{{ rule_type }}' --required
AND value = '{{ value }}' --required
RETURNING
id,
compare_type,
invert,
key,
operating_status,
provisioning_status,
rule_type,
value;

DELETE examples​

No description available.

DELETE FROM ovh.cloud_network.region_loadbalancing_l7_policy_l7_rules
WHERE l_7_policy_id = '{{ l_7_policy_id }}' --required
AND l_7_rule_id = '{{ l_7_rule_id }}' --required
AND region_name = '{{ region_name }}' --required
AND service_name = '{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;