Skip to main content

ipv6

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

Overview​

Nameipv6
TypeResource
Idovh.vrack.ipv6

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
ipv_6string (ipv6-block)Your IP v6 block (example: 2001:41d0::/128) (wire: ipv6)
public_routing_typestringMode in which gateway is configured (wire: publicRoutingType)
regionstringWhere you want your block announced on the network

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectipv_6, service_nameGet a block. Returns the attached Additional IPv6 block.
listselectservice_namex_pagination_modeList blocks. Returns the Additional IPv6 blocks attached to the vRack.
createinsertservice_name, blockAttach a block. Attaches an Additional IPv6 block to the vRack. Returns the task that performs it.
deletedeleteipv_6, service_nameDetach a block. Removes the Additional IPv6 block from the vRack. 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)
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 block. Returns the attached Additional IPv6 block.

SELECT
ipv_6,
public_routing_type,
region
FROM ovh.vrack.ipv6
WHERE ipv_6 = '{{ ipv_6 }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Attach a block. Attaches an Additional IPv6 block to the vRack. Returns the task that performs it.

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

DELETE examples​

Detach a block. Removes the Additional IPv6 block from the vRack. Returns the task that performs it.

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