ipv6
Creates, updates, deletes, gets or lists an ipv6 resource.
Overview​
| Name | ipv6 |
| Type | Resource |
| Id | ovh.vrack.ipv6 |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
ipv_6 | string (ipv6-block) | Your IP v6 block (example: 2001:41d0::/128) (wire: ipv6) |
public_routing_type | string | Mode in which gateway is configured (wire: publicRoutingType) |
region | string | Where you want your block announced on the network |
IP v6 block in vrack
| Name | Datatype | Description |
|---|---|---|
ipv_6 | string (ipv6-block) | Your IP v6 block (example: 2001:41d0::/128) (wire: ipv6) |
public_routing_type | string | Mode in which gateway is configured (wire: publicRoutingType) |
region | string | Where you want your block announced on the network |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | ipv_6, service_name | Get a block. Returns the attached Additional IPv6 block. | |
list | select | service_name | x_pagination_mode | List blocks. Returns the Additional IPv6 blocks attached to the vRack. |
create | insert | service_name, block | Attach a block. Attaches an Additional IPv6 block to the vRack. Returns the task that performs it. | |
delete | delete | ipv_6, service_name | Detach 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_6 | string (ipv6-block) | Your IP v6 block (wire: ipv6) |
service_name | string | The internal name of your vrack (wire: serviceName) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
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
;
List blocks. Returns the Additional IPv6 blocks attached to the vRack.
SELECT
ipv_6,
public_routing_type,
region
FROM ovh.vrack.ipv6
WHERE service_name = '{{ service_name }}' -- required
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
INSERT examples​
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: ipv6
props:
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the ipv6 resource.
- name: block
value: "{{ block }}"
description: |
IPv6 CIDR notation (e.g., 2001:41d0::/128)
DELETE examples​
- delete
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
;