---
title: pydo.security.create_suppression()
description: Create Suppression
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/security/create_suppression/
last_updated: "2026-11-06"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.security.create_suppression()

Generated on 6 Nov 2026 from `pydo` version [`v0.45.0`](https://github.com/digitalocean/pydo/releases/tag/v0.45.0)

## Usage

```python
client.security.create_suppression(
    body={
        "rule_uuid": "your_rule_uuid",
        "resources": [...],
    },
)
```

Returns `JSON` Raises `HttpResponseError`

## Description

To suppress scan findings, send a POST request to [`/v2/security/settings/suppressions`](https://docs.digitalocean.com/reference/api/reference/security/index.html.md#security_create_suppression).

## Parameters

`rule_uuid` string optional

The rule UUID to suppress for the listed resources.

`resources` array of strings optional

Example: `['do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d']`

The URNs of resources to suppress for the rule.

## Request Sample

## Show Request Sample

```python
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "rule_uuid": "string",
  "resources": [
    "do:droplet:fe3a2fd7-903d-46e6-ada3-3e4f285fb89d"
  ]
}

resp = client.security.create_suppression(body=req)
```

## Response Example

## Show Response Example

```json
{
  "resources": [
    {
      "id": "760e09ef-dc84-11e8-981e-3cfdfeaae000",
      "rule_uuid": "460e09ef-dc84-11e8-981e-3cfdfeaae000",
      "rule_name": "Droplet Backups Not Enabled",
      "resource_id": "123",
      "resource_type": "Droplet"
    }
  ],
  "meta": {
    "page": 1,
    "pages": 3,
    "total": 25
  },
  "links": {
    "pages": {
      "first": "https://api.digitalocean.com/v2/security/settings/suppressions?page=1",
      "prev": "https://api.digitalocean.com/v2/security/settings/suppressions?page=1",
      "next": "https://api.digitalocean.com/v2/security/settings/suppressions?page=2",
      "last": "https://api.digitalocean.com/v2/security/settings/suppressions?page=3"
    }
  }
}
```

## More Information

See [`/v2/security/settings/suppressions`](https://docs.digitalocean.com/reference/api/reference/security/index.html.md#security_create_suppression) in the API reference for additional detail on responses, headers, parameters, and more.