Skip to main content

ipv6_bridged_subranges

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

Overview​

Nameipv6_bridged_subranges
TypeResource
Idovh.vrack.ipv6_bridged_subranges

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
bridged_subrangestring (ipv6-block)subrange bridged into your vrack (example: 2001:41d0::/128) (wire: bridgedSubrange)
gatewaystring (ipv6)Your gateway (example: 2001:41d0:1:1994::1)
slaacstringSlaac status (disabled, enabled)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbridged_subrange, ipv_6, service_nameGet a bridged subrange. Returns the subrange, its gateway and whether SLAAC is enabled.
listselectipv_6, service_namex_pagination_modeList bridged subranges. Returns the subranges of the block bridged in the vRack.
updateupdatebridged_subrange, ipv_6, service_nameUpdate the SLAAC status. Enables or disables SLAAC on the bridged subrange. Returns the task that performs it.

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"}})
bridged_subrangestring (ipv6-block)subrange bridged into your vrack (wire: bridgedSubrange)
ipv_6string (ipv6-block)Your IP v6 block (wire: ipv6)
service_namestringThe internal name of your vrack (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 bridged subrange. Returns the subrange, its gateway and whether SLAAC is enabled.

SELECT
bridged_subrange,
gateway,
slaac
FROM ovh.vrack.ipv6_bridged_subranges
WHERE bridged_subrange = '{{ bridged_subrange }}' -- required
AND ipv_6 = '{{ ipv_6 }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the SLAAC status. Enables or disables SLAAC on the bridged subrange. Returns the task that performs it.

UPDATE ovh.vrack.ipv6_bridged_subranges
SET
slaac = '{{ slaac }}'
WHERE
bridged_subrange = '{{ bridged_subrange }}' --required
AND ipv_6 = '{{ ipv_6 }}' --required
AND service_name = '{{ service_name }}' --required
RETURNING
id,
order_id,
service_name,
function,
last_update,
status,
target_domain,
todo_date;