Skip to main content

ips

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

Overview​

Nameips
TypeResource
Idovh.over_the_box.ips

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
geolocationstringIP geolocation (fr)
ipstring (ipv4)IP address (example: 192.0.2.0)
rangeintegerIP cidr prefix
statusstringIP status (active, free, pendingRelease, released, reserved)
versionstringIP version (v4, v6)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectip, service_nameReturns an IP address of the OverTheBox service with its version (v4 or v6), CIDR prefix, status and geolocation. (Beta version)
listselectservice_namex_pagination_modeReturns the IP addresses attached to the OverTheBox service. Get an IP for its version, prefix, status and geolocation. (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"}})
ipstring (ipv4)Ip
service_namestringService name (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​

Returns an IP address of the OverTheBox service with its version (v4 or v6), CIDR prefix, status and geolocation. (Beta version)

SELECT
geolocation,
ip,
range,
status,
version
FROM ovh.over_the_box.ips
WHERE ip = '{{ ip }}' -- required
AND service_name = '{{ service_name }}' -- required
;