Skip to main content

service_bring_your_own_ip_sub_ranges

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

Overview​

Nameservice_bring_your_own_ip_sub_ranges
TypeResource
Idovh.ip.service_bring_your_own_ip_sub_ranges

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
descriptionstringCustom description on your ip
ipstring (ip-block)IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24) (example: 192.0.2.0/24)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectip, service_nameGet a sub-range. Returns the IPv4 or IPv6 sub-range, as an IP block, and the custom description set when it was created. (Beta version)
listselectservice_namex_pagination_modeList sub-ranges. Returns the IPv4 and IPv6 sub-ranges of the imported range, as IP blocks in CIDR notation. (Beta version)
createinsertservice_name, ipCreate an IPv6 sub-range. Creates an IPv6 /56 sub-range of the imported range, with an optional description. (Beta version)
deletedeleteip, service_nameDelete an IPv6 sub-range. Deletes the IPv6 sub-range from the imported range. The call returns no content. (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 (ip-block)
service_namestringThe internal name of your IP services (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 sub-range. Returns the IPv4 or IPv6 sub-range, as an IP block, and the custom description set when it was created. (Beta version)

SELECT
description,
ip
FROM ovh.ip.service_bring_your_own_ip_sub_ranges
WHERE ip = '{{ ip }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create an IPv6 sub-range. Creates an IPv6 /56 sub-range of the imported range, with an optional description. (Beta version)

INSERT INTO ovh.ip.service_bring_your_own_ip_sub_ranges (
description,
ip,
service_name
)
SELECT
'{{ description }}',
'{{ ip }}' /* required */,
'{{ service_name }}'
RETURNING
description,
ip
;

DELETE examples​

Delete an IPv6 sub-range. Deletes the IPv6 sub-range from the imported range. The call returns no content. (Beta version)

DELETE FROM ovh.ip.service_bring_your_own_ip_sub_ranges
WHERE ip = '{{ ip }}' --required
AND service_name = '{{ service_name }}' --required
;