Exclusions

The following examples show how to query and manage exclusions, which exclude resources from policies or change the severity of their findings. For the rules that decide when an exclusion applies and how long it lasts, see Exclusions and Finding Lifecycle in the Tenable Cloud Exposure User Guide.

List all exclusions

Return a summary of all exclusions currently configured in your environment.

query {
  RiskExclusions(filter:{}) {
    nodes {
      Id
      Action
      Name
      Status
      FindingType
    }
  }
}

Sample response

{
  "data": {
    "RiskExclusions": {
      "nodes": [
        {
          "Id": "18c900fa-f9ea-442d-8652-3290ba448e67",
          "Action": "IgnoreFinding",
          "Name": "I9",
          "Status": "Enabled",
          "FindingType": "Cloud"
        },
        {
          "Id": "1b31c131-0a07-44ad-86df-6207d365d78a",
          "Action": "ModifySeverity",
          "Name": "Test",
          "Status": "Enabled",
          "FindingType": "Cloud"
        },
        {
          "Id": "ecf70190-fbf2-41f1-84f0-faf3a98d7946",
          "Action": "IgnoreFinding",
          "Name": "Another Test",
          "Status": "Enabled",
          "FindingType": "Cloud"
        }
      ]
    }
  }
}

Query a single exclusion by ID

See the full profile of a specific exclusion, including its expiration time and the specific policies it targets.

query {
  RiskExclusions(filter:{Ids:["003fa3c3-41d1-4a56-8d1f-9343ca7a5d03"]}) {
    nodes {
      Id
      Action
      Name
      Status
      FindingType
      Policies {
        Id
        Name
        Category
      }
      ExpirationTime
      CreationTime
      ScopeId
    }
  }
}

Sample response

{
  "data": {
    "RiskExclusions": {
      "nodes": [
        {
          "Id": "18c900fa-f9ea-442d-8652-3290ba448e67",
          "Action": "IgnoreFinding",
          "Name": "I9",
          "Status": "Enabled",
          "FindingType": "Cloud",
          "Policies": [
            {
              "Id": "2a07b962-cf3d-4709-8951-9ecdcfd86ee3",
              "Name": "S3 Bucket encryption in transit is not enabled",
              "Category": "Data"
            }
          ],
          "ExpirationTime": "2026-04-21T21:00:00.000Z",
          "CreationTime": "2026-04-20T15:36:08.437Z",
          "ScopeId": "97200972-0972-0972-0972-111122223333"
        }
      ]
    }
  }
}

Delete an exclusion

Use this mutation to remove an exclusion from the system.

mutation {
  DeleteRiskExclusion(input: {Id: "b2e19f12-7958-43a7-85a5-23aa81c2317d"}) {
    Success
  }
}

Sample response

{
  "data": {
    "DeleteRiskExclusion": {
      "Success": true
    }
  }
}

Did this page help you?