---
title: Content Scanning
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Content Scanning

##### [Enable Content Scanning for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/methods/enable)

content\_scanning.enable(ContentScanningEnableParams\*\*kwargs) -> object

POST/zones/{zone\_id}/content-upload-scan/enable

##### [Disable Content Scanning for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/methods/disable)

content\_scanning.disable(ContentScanningDisableParams\*\*kwargs) -> object

POST/zones/{zone\_id}/content-upload-scan/disable

##### [Update the Content Scanning status for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/methods/create)

content\_scanning.create(ContentScanningCreateParams\*\*kwargs) -> [ContentScanningCreateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_create_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/content-upload-scan/settings

##### [Update the Content Scanning status for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/methods/update)

content\_scanning.update(ContentScanningUpdateParams\*\*kwargs) -> [ContentScanningUpdateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/content-upload-scan/settings

##### [Get the Content Scanning status for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/methods/get)

content\_scanning.get(ContentScanningGetParams\*\*kwargs) -> [ContentScanningGetResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/content-upload-scan/settings

##### ModelsExpand Collapse

<details>

<summary>

class ContentScanningCreateResponse: …

Defines the status for Content Scanning.

</summary>

modified: Optional\[str]

Defines the last modification date (ISO 8601) of the Content Scanning status.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_create_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

value: Optional\[str]

Defines the status of Content Scanning.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_create_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_create_response%20%3E%20(schema)>)

<details>

<summary>

class ContentScanningUpdateResponse: …

Defines the status for Content Scanning.

</summary>

modified: Optional\[str]

Defines the last modification date (ISO 8601) of the Content Scanning status.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_update_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

value: Optional\[str]

Defines the status of Content Scanning.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_update_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_update_response%20%3E%20(schema)>)

<details>

<summary>

class ContentScanningGetResponse: …

Defines the status for Content Scanning.

</summary>

modified: Optional\[str]

Defines the last modification date (ISO 8601) of the Content Scanning status.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_get_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

value: Optional\[str]

Defines the status of Content Scanning.

<a href="#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_get_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning%20%3E%20(model)%20content_scanning_get_response%20%3E%20(schema)>)

#### Content ScanningPayloads

##### [List the Content Scanning custom expressions of a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/list)

content\_scanning.payloads.list(PayloadListParams\*\*kwargs) -> SyncSinglePage\[[PayloadListResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)>)]

GET/zones/{zone\_id}/content-upload-scan/payloads

##### [Create Content Scanning custom expressions for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/create)

content\_scanning.payloads.create(PayloadCreateParams\*\*kwargs) -> SyncSinglePage\[[PayloadCreateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)>)]

POST/zones/{zone\_id}/content-upload-scan/payloads

##### [Delete a Content Scanning custom expression from a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/delete)

content\_scanning.payloads.delete(strexpression\_id, PayloadDeleteParams\*\*kwargs) -> SyncSinglePage\[[PayloadDeleteResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)>)]

DELETE/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

##### [Update a Content Scanning custom expression for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/payloads/methods/update)

content\_scanning.payloads.update(strexpression\_id, PayloadUpdateParams\*\*kwargs) -> SyncSinglePage\[[PayloadUpdateResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)>)]

PATCH/zones/{zone\_id}/content-upload-scan/payloads/{expression\_id}

##### ModelsExpand Collapse

<details>

<summary>

class PayloadListResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_list_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadCreateResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_create_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadDeleteResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_delete_response%20%3E%20(schema)>)

<details>

<summary>

class PayloadUpdateResponse: …

Defines a Content Scanning custom expression.

</summary>

id: Optional\[str]

Defines the unique ID for this Content Scanning custom expression.

maxLength32

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

payload: Optional\[str]

Defines the custom content extraction expression used to reach content objects in the request.

<a href="#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)%20%3E%20(property)%20payload">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.payloads%20%3E%20(model)%20payload_update_response%20%3E%20(schema)>)

#### Content ScanningSettings

##### [Get the Content Scanning status for a zone.](https://developers.cloudflare.com/api/python/resources/content_scanning/subresources/settings/methods/get)

content\_scanning.settings.get(SettingGetParams\*\*kwargs) -> [SettingGetResponse](<https://developers.cloudflare.com/api/python/resources/content_scanning#(resource)%20content_scanning.settings%20%3E%20(model)%20setting_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/content-upload-scan/settings

##### ModelsExpand Collapse

<details>

<summary>

class SettingGetResponse: …

Defines the status for Content Scanning.

</summary>

modified: Optional\[str]

Defines the last modification date (ISO 8601) of the Content Scanning status.

<a href="#(resource)%20content_scanning.settings%20%3E%20(model)%20setting_get_response%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

value: Optional\[str]

Defines the status of Content Scanning.

<a href="#(resource)%20content_scanning.settings%20%3E%20(model)%20setting_get_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20content_scanning.settings%20%3E%20(model)%20setting_get_response%20%3E%20(schema)>)