---
title: Retrieves Security Center Insights
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Security Center](https://developers.cloudflare.com/api/python/resources/security_center)

[Insights](https://developers.cloudflare.com/api/python/resources/security_center/subresources/insights)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Retrieves Security Center Insights

security\_center.insights.list(InsightListParams\*\*kwargs) -> SyncV4PagePagination\[Optional\[InsightListResponse]]

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/security-center/insights

Lists all Security Center insights for the account or zone, showing security findings and recommendations.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### ParametersExpand Collapse

account\_id: Optional\[str]

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

zone\_id: Optional\[str]

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20zone_id%20%3E%20(schema)>)

dismissed: Optional\[[bool](<https://developers.cloudflare.com/api/python/resources/security_center/subresources/insights/methods/list#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20dismissed%20%3E%20(schema)>)]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20dismissed%20%3E%20(schema)>)

issue\_class: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20issue_class%20%3E%20(schema)>)

issue\_class\_neq: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20issue_class~neq%20%3E%20(schema)>)

<details>

<summary>

issue\_type: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/intel#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)">IssueType</a>]]

</summary>

One of the following:

"compliance\_violation"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"email\_security"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"exposed\_infrastructure"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"insecure\_configuration"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"weak\_authentication"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"configuration\_suggestion"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20issue_type%20%3E%20(schema)>)

<details>

<summary>

issue\_type\_neq: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/intel#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)">IssueType</a>]]

</summary>

One of the following:

"compliance\_violation"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"email\_security"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"exposed\_infrastructure"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"insecure\_configuration"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"weak\_authentication"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"configuration\_suggestion"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20issue_type~neq%20%3E%20(schema)>)

page: Optional\[int]

Specifies the current page within paginated list of results.

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20page%20%3E%20(schema)>)

per\_page: Optional\[int]

Sets the number of results per page of results.

maximum1000

minimum1

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20per_page%20%3E%20(schema)>)

product: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20product%20%3E%20(schema)>)

product\_neq: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20product~neq%20%3E%20(schema)>)

<details>

<summary>

severity: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/intel#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)">SeverityQueryParam</a>]]

</summary>

One of the following:

"low"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"moderate"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"critical"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20severity%20%3E%20(schema)>)

<details>

<summary>

severity\_neq: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/intel#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)">SeverityQueryParam</a>]]

</summary>

One of the following:

"low"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"moderate"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"critical"

<a href="#(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20severity_query_param%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20severity~neq%20%3E%20(schema)>)

<details>

<summary>

source: Optional\[List\[Literal\["cloudflare", "riskrecon"]]]

</summary>

One of the following:

"cloudflare"

<a href="#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"riskrecon"

<a href="#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20source%20%3E%20(schema)>)

subject: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20subject%20%3E%20(schema)>)

subject\_neq: Optional\[Sequence\[str]]

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20subject~neq%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class InsightListResponse: …

</summary>

count: Optional\[int]

Indicates the total number of results.

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

<details>

<summary>

issues: Optional\[List\[Issue]]

</summary>

id: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

dismissed: Optional\[bool]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20dismissed">Link to this property</a>

has\_extended\_context: Optional\[bool]

Indicates whether the insight has a large payload that requires fetching via the context endpoint.

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20has_extended_context">Link to this property</a>

issue\_class: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_class">Link to this property</a>

<details>

<summary>

issue\_type: Optional\[IssueType]

</summary>

One of the following:

"compliance\_violation"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"email\_security"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"exposed\_infrastructure"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"insecure\_configuration"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"weak\_authentication"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"configuration\_suggestion"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type%20%2B%20(resource)%20intel.attack_surface_report.issues%20%3E%20(model)%20issue_type%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20issue_type">Link to this property</a>

<details>

<summary>

payload: Optional\[IssuePayload]

</summary>

detection\_method: Optional\[str]

Describes the method used to detect insight.

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20payload%20%3E%20(property)%20detection_method">Link to this property</a>

zone\_tag: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20payload%20%3E%20(property)%20zone_tag">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20payload">Link to this property</a>

resolve\_link: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20resolve_link">Link to this property</a>

resolve\_text: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20resolve_text">Link to this property</a>

<details>

<summary>

severity: Optional\[Literal\["Low", "Moderate", "Critical"]]

</summary>

One of the following:

"Low"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20severity%20%3E%20(member)%200">Link to this property</a>

"Moderate"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20severity%20%3E%20(member)%201">Link to this property</a>

"Critical"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20severity%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20severity">Link to this property</a>

since: Optional\[datetime]

formatdate-time

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20since">Link to this property</a>

<details>

<summary>

status: Optional\[Literal\["active", "resolved"]]

The current status of the insight.

</summary>

One of the following:

"active"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"resolved"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

subject: Optional\[str]

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20subject">Link to this property</a>

timestamp: Optional\[datetime]

formatdate-time

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20timestamp">Link to this property</a>

<details>

<summary>

user\_classification: Optional\[Literal\["false\_positive", "accept\_risk", "other"]]

User-defined classification for the insight. Can be ‘false\_positive’, ‘accept\_risk’, ‘other’, or null.

</summary>

One of the following:

"false\_positive"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20user_classification%20%3E%20(member)%200">Link to this property</a>

"accept\_risk"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20user_classification%20%3E%20(member)%201">Link to this property</a>

"other"

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20user_classification%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues%20%3E%20(items)%20%3E%20(property)%20user_classification">Link to this property</a>

</details>

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20issues">Link to this property</a>

page: Optional\[int]

Specifies the current page within paginated list of results.

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20page">Link to this property</a>

per\_page: Optional\[int]

Sets the number of results per page of results.

maximum1000

minimum1

<a href="#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)%20%3E%20(property)%20per_page">Link to this property</a>

</details>

[Link to this property](<#(resource)%20security_center.insights%20%3E%20(model)%20insight_list_response%20%3E%20(schema)>)

### Retrieves Security Center Insights

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
page = client.security_center.insights.list(
    account_id="account_id",
)
page = page.result.items[0]
print(page.count)
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "count": 1,
    "issues": [
      {
        "id": "id",
        "dismissed": false,
        "has_extended_context": false,
        "issue_class": "always_use_https_not_enabled",
        "issue_type": "compliance_violation",
        "payload": {
          "detection_method": "We detected security rules referencing multiple IP addresses directly in the rules.",
          "zone_tag": "zone_tag"
        },
        "resolve_link": "resolve_link",
        "resolve_text": "resolve_text",
        "severity": "Low",
        "since": "2019-12-27T18:11:19.117Z",
        "status": "active",
        "subject": "example.com",
        "timestamp": "2019-12-27T18:11:19.117Z",
        "user_classification": "false_positive"
      }
    ],
    "page": 1,
    "per_page": 25
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "count": 1,
    "issues": [
      {
        "id": "id",
        "dismissed": false,
        "has_extended_context": false,
        "issue_class": "always_use_https_not_enabled",
        "issue_type": "compliance_violation",
        "payload": {
          "detection_method": "We detected security rules referencing multiple IP addresses directly in the rules.",
          "zone_tag": "zone_tag"
        },
        "resolve_link": "resolve_link",
        "resolve_text": "resolve_text",
        "severity": "Low",
        "since": "2019-12-27T18:11:19.117Z",
        "status": "active",
        "subject": "example.com",
        "timestamp": "2019-12-27T18:11:19.117Z",
        "user_classification": "false_positive"
      }
    ],
    "page": 1,
    "per_page": 25
  }
}
```