Skip to main content

udp_frontends

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

Overview​

Nameudp_frontends
TypeResource
Idovh.ip_loadbalancing.udp_frontends

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
default_farm_idintegerDefault UDP Farm of your frontend (wire: defaultFarmId)
frontend_idintegerId of your frontend (wire: frontendId)
display_namestringHuman readable name for your frontend, this field is for you (wire: displayName)
dedicated_ipfoarrayOnly attach frontend on these ip. No restriction if null (wire: dedicatedIpfo)
disabledbooleanDisable frontend. Default: 'false'
portstringListening port(s) on the server
zonestringZone of you frontend

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfrontend_id, service_nameGet a UDP frontend (Beta version)
listselectservice_namedefault_farm_id, port, zone, x_pagination_modeList UDP frontends (Beta version)
createinsertservice_name, port, zoneCreate a UDP frontend (Beta version)
updateupdatefrontend_id, service_nameUpdate a UDP frontend (Beta version)
deletedeletefrontend_id, service_nameDelete a UDP frontend (Beta version)

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"}})
frontend_idintegerId of your frontend (wire: frontendId)
service_namestringThe internal name of your IP load balancing (wire: serviceName)
default_farm_idintegerFilter the value of defaultFarmId property (=) (wire: defaultFarmId)
portstringFilter the value of port property (like)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)
zonestringFilter the value of zone property (=)

SELECT examples​

Get a UDP frontend (Beta version)

SELECT
default_farm_id,
frontend_id,
display_name,
dedicated_ipfo,
disabled,
port,
zone
FROM ovh.ip_loadbalancing.udp_frontends
WHERE frontend_id = '{{ frontend_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a UDP frontend (Beta version)

INSERT INTO ovh.ip_loadbalancing.udp_frontends (
dedicated_ipfo,
default_farm_id,
disabled,
display_name,
port,
zone,
service_name
)
SELECT
'{{ dedicated_ipfo }}',
{{ default_farm_id }},
{{ disabled }},
'{{ display_name }}',
'{{ port }}' /* required */,
'{{ zone }}' /* required */,
'{{ service_name }}'
RETURNING
default_farm_id,
frontend_id,
display_name,
dedicated_ipfo,
disabled,
port,
zone
;

UPDATE examples​

Update a UDP frontend (Beta version)

UPDATE ovh.ip_loadbalancing.udp_frontends
SET
dedicated_ipfo = '{{ dedicated_ipfo }}',
default_farm_id = {{ default_farm_id }},
disabled = {{ disabled }},
display_name = '{{ display_name }}',
port = '{{ port }}',
zone = '{{ zone }}'
WHERE
frontend_id = '{{ frontend_id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete a UDP frontend (Beta version)

DELETE FROM ovh.ip_loadbalancing.udp_frontends
WHERE frontend_id = '{{ frontend_id }}' --required
AND service_name = '{{ service_name }}' --required
;