# Network › vRack › Public IP connectivity › Additional IPv6 blocks API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Network product's sections: https://developers.eu.ovhcloud.com/reference/network/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 11 operations of the OVHcloud API. Calls carry `authorization: Bearer $OVH_TOKEN`; the EU host is shown, Canada and the United States answer on api.ca.ovhcloud.com and api.us.ovhcloud.com.

Page: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/

OpenAPI v1: https://api.eu.ovhcloud.com/1.0/__schemas/developer-hub-navigation/network/vrack/public-ip-connectivity/additional-ipv6-blocks.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/network/vrack/public-ip-connectivity/additional-ipv6-blocks.json?format=openapi3

## Operations

- `GET /vrack/{serviceName}/ipv6` — List blocks. Returns the Additional IPv6 blocks attached to the vRack.
- `GET /vrack/{serviceName}/ipv6/{ipv6}` — Get a block. Returns the attached Additional IPv6 block.
- `POST /vrack/{serviceName}/ipv6` — Attach a block. Attaches an Additional IPv6 block to the vRack. Returns the task that performs it.
- `DELETE /vrack/{serviceName}/ipv6/{ipv6}` — Detach a block. Removes the Additional IPv6 block from the vRack. Returns the task that performs it.
- `GET /vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange` — List bridged subranges. Returns the subranges of the block bridged in the vRack.
- `GET /vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}` — Get a bridged subrange. Returns the subrange, its gateway and whether SLAAC is enabled.
- `PUT /vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}` — Update the SLAAC status
- `GET /vrack/{serviceName}/ipv6/{ipv6}/routedSubrange` — List routed subranges. Returns the subranges of the block routed in the vRack.
- `GET /vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}` — Get a routed subrange. Returns the subrange and its next hop.
- `POST /vrack/{serviceName}/ipv6/{ipv6}/routedSubrange` — Route a subrange
- `DELETE /vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}` — Unroute a subrange. Removes the route of the subrange. Returns the task that performs it.

## List blocks. Returns the Additional IPv6 blocks attached to the vRack.

`GET /1.0/vrack/{serviceName}/ipv6`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ipv6Block[] | successful operation |

```json
[
  "2001:41d0::/128"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6");

print_r($result);
?>
```

## Get a block. Returns the attached Additional IPv6 block.

`GET /1.0/vrack/{serviceName}/ipv6/{ipv6}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6-ipv6

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.ipv6 | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ipv6` | ipv6Block | read-only | Your IP v6 block |
| `publicRoutingType` | string | read-only | Mode in which gateway is configured |
| `region` | string | read-only | Where you want your block announced on the network |

```json
{
  "ipv6": "2001:41d0::/128",
  "publicRoutingType": "string",
  "region": "string"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6/{ipv6}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6/{ipv6}");

print_r($result);
?>
```

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

`POST /1.0/vrack/{serviceName}/ipv6`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#post-vrack-servicename-ipv6

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/attach`, `ip:apiovh:vrack/attach`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `block` | ipv6Block | yes | Your IP v6 block |

```json
{
  "block": "2001:41d0::/128"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `function` | string | read-only |  |
| `id` | integer | read-only |  |
| `lastUpdate` | string (date-time) | read-only |  |
| `orderId` | integer | read-only |  |
| `serviceName` | string | read-only |  |
| `status` | vrack.TaskStatusEnum | read-only | Task status — one of `cancelled`, `doing`, `done`, `init`, `todo` |
| `targetDomain` | string | read-only |  |
| `todoDate` | string (date-time) | read-only |  |

```json
{
  "function": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "orderId": 0,
  "serviceName": "string",
  "status": "cancelled",
  "targetDomain": "string",
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: ipv6Block
result = client.post("/vrack/{serviceName}/ipv6",
	block = None, # Your IP v6 block (type: ipv6Block)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: ipv6Block
$result = $ovh->post("/vrack/{serviceName}/ipv6", array(
	block => null, // Your IP v6 block (type: ipv6Block)
));

print_r($result);
?>
```

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

`DELETE /1.0/vrack/{serviceName}/ipv6/{ipv6}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#delete-vrack-servicename-ipv6-ipv6

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/detach`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `function` | string | read-only |  |
| `id` | integer | read-only |  |
| `lastUpdate` | string (date-time) | read-only |  |
| `orderId` | integer | read-only |  |
| `serviceName` | string | read-only |  |
| `status` | vrack.TaskStatusEnum | read-only | Task status — one of `cancelled`, `doing`, `done`, `init`, `todo` |
| `targetDomain` | string | read-only |  |
| `todoDate` | string (date-time) | read-only |  |

```json
{
  "function": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "orderId": 0,
  "serviceName": "string",
  "status": "cancelled",
  "targetDomain": "string",
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/vrack/{serviceName}/ipv6/{ipv6}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/vrack/{serviceName}/ipv6/{ipv6}");

print_r($result);
?>
```

## List bridged subranges. Returns the subranges of the block bridged in the vRack.

`GET /1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6-ipv6-bridgedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ipv6Block[] | successful operation |

```json
[
  "2001:41d0::/128"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange");

print_r($result);
?>
```

## Get a bridged subrange. Returns the subrange, its gateway and whether SLAAC is enabled.

`GET /1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6-ipv6-bridgedsubrange-bridgedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bridgedSubrange` | path | ipv6Block | yes | subrange bridged into your vrack |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.bridgedSubrange | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bridgedSubrange` | ipv6Block | read-only | subrange bridged into your vrack |
| `gateway` | ipv6 | read-only | Your gateway |
| `slaac` | vrack.SlaacEnum |  | Slaac status — one of `disabled`, `enabled` |

```json
{
  "bridgedSubrange": "2001:41d0::/128",
  "gateway": "2001:41d0:1:1994::1",
  "slaac": "disabled"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}");

print_r($result);
?>
```

## Update the SLAAC status

`PUT /1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#put-vrack-servicename-ipv6-ipv6-bridgedsubrange-bridgedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/bridgedSubrange/edit`

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bridgedSubrange` | path | ipv6Block | yes | subrange bridged into your vrack |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Request body (required)

Type: `vrack.bridgedSubrange`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bridgedSubrange` | ipv6Block | read-only | subrange bridged into your vrack |
| `gateway` | ipv6 | read-only | Your gateway |
| `slaac` | vrack.SlaacEnum |  | Slaac status — one of `disabled`, `enabled` |

```json
{
  "slaac": "disabled"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `function` | string | read-only |  |
| `id` | integer | read-only |  |
| `lastUpdate` | string (date-time) | read-only |  |
| `orderId` | integer | read-only |  |
| `serviceName` | string | read-only |  |
| `status` | vrack.TaskStatusEnum | read-only | Task status — one of `cancelled`, `doing`, `done`, `init`, `todo` |
| `targetDomain` | string | read-only |  |
| `todoDate` | string (date-time) | read-only |  |

```json
{
  "function": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "orderId": 0,
  "serviceName": "string",
  "status": "cancelled",
  "targetDomain": "string",
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X PUT \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

# Request body type: vrack.bridgedSubrange
result = client.put("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}",
	slaac = None, # Slaac status (type: vrack.SlaacEnum)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

// Request body type: vrack.bridgedSubrange
$result = $ovh->put("/vrack/{serviceName}/ipv6/{ipv6}/bridgedSubrange/{bridgedSubrange}", array(
	slaac => null, // Slaac status (type: vrack.SlaacEnum)
));

print_r($result);
?>
```

## List routed subranges. Returns the subranges of the block routed in the vRack.

`GET /1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6-ipv6-routedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | ipv6Block[] | successful operation |

```json
[
  "2001:41d0::/128"
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange");

print_r($result);
?>
```

## Get a routed subrange. Returns the subrange and its next hop.

`GET /1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#get-vrack-servicename-ipv6-ipv6-routedsubrange-routedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/get`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `routedSubrange` | path | ipv6Block | yes | subrange routed into your vrack |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.routedSubrange | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nexthop` | ipv6 | read-only | nexthop used as a gateway for your routed subrange |
| `routedSubrange` | ipv6Block | read-only | subrange routed into your vrack |

```json
{
  "nexthop": "2001:41d0:1:1994::1",
  "routedSubrange": "2001:41d0::/128"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}");

print_r($result);
?>
```

## Route a subrange

`POST /1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#post-vrack-servicename-ipv6-ipv6-routedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/routedSubrange/create`, `ip:apiovh:vrack/routedSubrange/create`

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.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Request body (required)

Type: `object`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `nexthop` | ipv6 | yes | nexthop to configure for your routed subrange (must be part of bridged subrange) |
| `routedSubrange` | ipv6Block | yes | subrange to route into your vrack |

```json
{
  "nexthop": "2001:41d0:1:1994::1",
  "routedSubrange": "2001:41d0::/128"
}
```

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `function` | string | read-only |  |
| `id` | integer | read-only |  |
| `lastUpdate` | string (date-time) | read-only |  |
| `orderId` | integer | read-only |  |
| `serviceName` | string | read-only |  |
| `status` | vrack.TaskStatusEnum | read-only | Task status — one of `cancelled`, `doing`, `done`, `init`, `todo` |
| `targetDomain` | string | read-only |  |
| `todoDate` | string (date-time) | read-only |  |

```json
{
  "function": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "orderId": 0,
  "serviceName": "string",
  "status": "cancelled",
  "targetDomain": "string",
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X POST \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN" \
  -H "content-type: application/json" \
  -d '{ }'
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.post("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange",
	nexthop = None, # nexthop to configure for your routed subrange (must be part of bridged subrange) (type: ipv6)
	routedSubrange = None, # subrange to route into your vrack (type: ipv6Block)
)

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->post("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange", array(
	nexthop => null, // nexthop to configure for your routed subrange (must be part of bridged subrange) (type: ipv6)
	routedSubrange => null, // subrange to route into your vrack (type: ipv6Block)
));

print_r($result);
?>
```

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

`DELETE /1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack/public-ip-connectivity/additional-ipv6-blocks/#delete-vrack-servicename-ipv6-ipv6-routedsubrange-routedsubrange

**Status:** Stable production version  
**IAM actions:** `vrack:apiovh:ipv6/routedSubrange/delete`, `ip:apiovh:vrack/routedSubrange/delete`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ipv6` | path | ipv6Block | yes | Your IP v6 block |
| `routedSubrange` | path | ipv6Block | yes | subrange routed into your vrack |
| `serviceName` | path | string | yes | The internal name of your vrack |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrack.Task | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `function` | string | read-only |  |
| `id` | integer | read-only |  |
| `lastUpdate` | string (date-time) | read-only |  |
| `orderId` | integer | read-only |  |
| `serviceName` | string | read-only |  |
| `status` | vrack.TaskStatusEnum | read-only | Task status — one of `cancelled`, `doing`, `done`, `init`, `todo` |
| `targetDomain` | string | read-only |  |
| `todoDate` | string (date-time) | read-only |  |

```json
{
  "function": "string",
  "id": 0,
  "lastUpdate": "2024-01-01T12:00:00Z",
  "orderId": 0,
  "serviceName": "string",
  "status": "cancelled",
  "targetDomain": "string",
  "todoDate": "2024-01-01T12:00:00Z"
}
```

### Example

```bash
curl -X DELETE \
  "https://api.eu.ovhcloud.com/1.0/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.delete("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->delete("/vrack/{serviceName}/ipv6/{ipv6}/routedSubrange/{routedSubrange}");

print_r($result);
?>
```
