Skip to main content

zones

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

Overview​

Namezones
TypeResource
Idovh.ip_loadbalancing.zones

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringName of your zone
statestringState of your zone

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, service_nameGet a zone
listselectservice_namex_pagination_modeList zones
cancel_terminationexecname, serviceNameCancel a zone option termination
terminateexecname, serviceNameTerminate a zone option

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

SELECT
name,
state
FROM ovh.ip_loadbalancing.zones
WHERE name = '{{ name }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Cancel a zone option termination

EXEC ovh.ip_loadbalancing.zones.cancel_termination
@name='{{ name }}' --required,
@serviceName='{{ serviceName }}' --required
;