Skip to main content

loadbalancers

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

Overview​

Nameloadbalancers
TypeResource
Idovh.ip_loadbalancing.loadbalancers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
display_namestringSet the name displayed in ManagerV6 for your iplb (max 50 chars) (wire: displayName)
service_namestringThe internal name of your IP load balancing (wire: serviceName)
vrack_namestringName of the vRack on which the current Load Balancer is attached to, as it is named on vRack product (wire: vrackName)
iamobjectIAM resource metadata
ip_loadbalancingstring (ipv4)Your IP load balancing (example: 192.0.2.0) (wire: ipLoadbalancing)
ipv_4string (ipv4)The IPV4 associated to your IP load balancing (example: 192.0.2.0) (wire: ipv4)
ipv_6string (ipv6)The IPV6 associated to your IP load balancing (example: 2001:41d0:1:1994::1) (wire: ipv6)
metrics_tokenstringThe metrics token associated with your IP load balancing (wire: metricsToken)
offerstringThe offer of your IP load balancing
orderable_zonearrayAvailable additional zone for your Load Balancer (wire: orderableZone)
ssl_configurationstringModern oldest compatible clients : Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8. Intermediate oldest compatible clients : Firefox 1, Chrome 1, IE 7, Opera 5, Safari 1, Windows XP IE8, Android 2.3, Java 7. Intermediate if null. (intermediate, modern) (wire: sslConfiguration)
statestringCurrent state of your IP (blacklisted, deleted, free, ok, quarantined, suspended)
vrack_eligibilitybooleanVrack eligibility (wire: vrackEligibility)
zonearrayLocation where your service is

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet a Load Balancer service
listselectiam_tags, x_pagination_modeList Load Balancer services
updateupdateservice_nameUpdate a Load Balancer service
change_contactexecserviceNameChange service contacts. Starts a procedure to change the admin, tech or billing contact of the service.
confirm_terminationexecserviceName, tokenConfirm service termination. Terminates the service with the token sent by email to the admin contact. A reason, a future use and a comment can be given.
free_certificateexecserviceName, fqdnOrder a free certificate
log_urlexecserviceName, kindGenerate a temporary log URL
refreshexecserviceNameApply the configuration
terminateexecserviceNameRequest service termination. Starts the termination of the service. The admin contact receives a token by email, to confirm with the confirmTermination call.

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"}})
serviceNamestringThe internal name of your IP load balancing
service_namestringThe internal name of your IP load balancing (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a Load Balancer service

SELECT
display_name,
service_name,
vrack_name,
iam,
ip_loadbalancing,
ipv_4,
ipv_6,
metrics_token,
offer,
orderable_zone,
ssl_configuration,
state,
vrack_eligibility,
zone
FROM ovh.ip_loadbalancing.loadbalancers
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update a Load Balancer service

UPDATE ovh.ip_loadbalancing.loadbalancers
SET
display_name = '{{ display_name }}',
ssl_configuration = '{{ ssl_configuration }}'
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change service contacts. Starts a procedure to change the admin, tech or billing contact of the service.

EXEC ovh.ip_loadbalancing.loadbalancers.change_contact
@serviceName='{{ serviceName }}' --required
@@json=
'{
"contactAdmin": "{{ contactAdmin }}",
"contactBilling": "{{ contactBilling }}",
"contactTech": "{{ contactTech }}"
}'
;