---
title: DDoS Protection
summary: >-
  These endpoints allow you to enable, disable, configure, and check the
  enablement and configuration status of the DDoS Protection product on your
  services.
url: https://www.fastly.com/documentation/reference/api/products/ddos_protection
---

These endpoints allow you to enable, disable, configure, and check the enablement and configuration status of the DDoS Protection product on your services.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `_links` | object |  |
| `customer` | object |  |
| `product` | object |  |
| `services` | array | A list of services with DDoS Protection enabled. |
| `configuration` | object |  |
| `service` | object |  |

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `mode` | string | Operation mode. |

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `mode` | string | Operation mode. |

## API endpoints

### Get product enablement status

**GET** `/enabled-products/v1/ddos_protection/services/{service_id}`

Get the enablement status of the DDoS Protection product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Enable product

**PUT** `/enabled-products/v1/ddos_protection/services/{service_id}`

Enable the DDoS Protection product on a service in default 'log' mode unless otherwise specified in the request body.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Disable product

**DELETE** `/enabled-products/v1/ddos_protection/services/{service_id}`

Disable the DDoS Protection product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Get configuration

**GET** `/enabled-products/v1/ddos_protection/services/{service_id}/configuration`

Get configuration of the DDoS Protection product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Update configuration

**PATCH** `/enabled-products/v1/ddos_protection/services/{service_id}/configuration`

Update configuration of the DDoS Protection product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Get services with product enabled

**GET** `/enabled-products/v1/ddos_protection/services`

Get all the services which have the DDoS Protection product enabled.
