# Security › Anti-DDoS › References API

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

> 2 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/security/anti-ddos/references/

OpenAPI v1: https://api.eu.ovhcloud.com/1.0/__schemas/developer-hub-navigation/security/anti-ddos/references.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/security/anti-ddos/references.json?format=openapi3

## Operations

- `GET /networkDefense/vac/reference/profile` — List VAC network traffic profiles
- `GET /networkDefense/vac/reference/profile/{profileId}` — Get a VAC network traffic profile

## List VAC network traffic profiles

`GET /v2/networkDefense/vac/reference/profile`

Link: https://developers.eu.ovhcloud.com/reference/security/anti-ddos/references/#get-networkdefense-vac-reference-profile

**Status:** Stable production version

Returns the list of VAC DDoS protection network traffic profiles available to the account. Every profile is an expert-curated configuration for a workload type, such as a VPN or a Web Server, with the sensitivity levels it offers. A RETIRED profile cannot be assigned to a policy.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Pagination-Cursor` | header | string |  | Pagination cursor |
| `X-Pagination-Size` | header | integer |  | Pagination size |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | networkDefense.Vac.Profile[] | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `description` | string | read-only | Human-readable description of the profile's intended use case |
| `id` | string | read-only | Unique identifier of the profile |
| `name` | string | read-only | Profile name, for example `DNS server` |
| `sensitivities` | networkDefense.Vac.SensitivityEnum[] | read-only | Sensitivity levels offered for this profile |
| `state` | networkDefense.Vac.ProfileStateEnum | read-only | Lifecycle state of the profile. Only RETIRED blocks new policy assignments. — one of `ACTIVE`, `BETA`, `DEPRECATED`, `RETIRED` |

```json
[
  {
    "description": "string",
    "id": "string",
    "name": "string",
    "sensitivities": [
      "HIGH"
    ],
    "state": "ACTIVE"
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/networkDefense/vac/reference/profile" \
  -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("/v2/networkDefense/vac/reference/profile")

# 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("/v2/networkDefense/vac/reference/profile");

print_r($result);
?>
```

## Get a VAC network traffic profile

`GET /v2/networkDefense/vac/reference/profile/{profileId}`

Link: https://developers.eu.ovhcloud.com/reference/security/anti-ddos/references/#get-networkdefense-vac-reference-profile-profileid

**Status:** Stable production version

Returns a VAC DDoS protection network traffic profile with its name, description, sensitivity levels and lifecycle state.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `profileId` | path | string | yes | Profile ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | networkDefense.Vac.Profile | successful operation |
| 404 | object | Error 404 response |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `description` | string | read-only | Human-readable description of the profile's intended use case |
| `id` | string | read-only | Unique identifier of the profile |
| `name` | string | read-only | Profile name, for example `DNS server` |
| `sensitivities` | networkDefense.Vac.SensitivityEnum[] | read-only | Sensitivity levels offered for this profile |
| `state` | networkDefense.Vac.ProfileStateEnum | read-only | Lifecycle state of the profile. Only RETIRED blocks new policy assignments. — one of `ACTIVE`, `BETA`, `DEPRECATED`, `RETIRED` |

```json
{
  "description": "string",
  "id": "string",
  "name": "string",
  "sensitivities": [
    "HIGH"
  ],
  "state": "ACTIVE"
}
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/networkDefense/vac/reference/profile/{profileId}" \
  -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("/v2/networkDefense/vac/reference/profile/{profileId}")

# 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("/v2/networkDefense/vac/reference/profile/{profileId}");

print_r($result);
?>
```
