Skip to main content

ipv6_routed_subranges

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

Overview​

Nameipv6_routed_subranges
TypeResource
Idovh.vrack.ipv6_routed_subranges

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
nexthopstring (ipv6)nexthop used as a gateway for your routed subrange (example: 2001:41d0:1:1994::1)
routed_subrangestring (ipv6-block)subrange routed into your vrack (example: 2001:41d0::/128) (wire: routedSubrange)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectipv_6, routed_subrange, service_nameGet a routed subrange. Returns the subrange and its next hop.
listselectipv_6, service_namex_pagination_modeList routed subranges. Returns the subranges of the block routed in the vRack.
createinsertipv_6, service_name, nexthop, routed_subrangeRoute a subrange. Routes a subrange of the block to a next hop. The next hop must belong to a bridged subrange. Returns the task that performs it.
deletedeleteipv_6, routed_subrange, service_nameUnroute a subrange. Removes the route of the 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"}})
ipv_6string (ipv6-block)Your IP v6 block (wire: ipv6)
routed_subrangestring (ipv6-block)subrange routed into your vrack (wire: routedSubrange)
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 routed subrange. Returns the subrange and its next hop.

SELECT
nexthop,
routed_subrange
FROM ovh.vrack.ipv6_routed_subranges
WHERE ipv_6 = '{{ ipv_6 }}' -- required
AND routed_subrange = '{{ routed_subrange }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Route a subrange. Routes a subrange of the block to a next hop. The next hop must belong to a bridged subrange. Returns the task that performs it.

INSERT INTO ovh.vrack.ipv6_routed_subranges (
nexthop,
routed_subrange,
ipv_6,
service_name
)
SELECT
'{{ nexthop }}' /* required */,
'{{ routed_subrange }}' /* required */,
'{{ ipv_6 }}',
'{{ service_name }}'
RETURNING
id,
order_id,
service_name,
function,
last_update,
status,
target_domain,
todo_date
;

DELETE examples​

Unroute a subrange. Removes the route of the subrange. Returns the task that performs it.

DELETE FROM ovh.vrack.ipv6_routed_subranges
WHERE ipv_6 = '{{ ipv_6 }}' --required
AND routed_subrange = '{{ routed_subrange }}' --required
AND service_name = '{{ service_name }}' --required
;