---
title: DDoS Protection
---

[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**

# DDoS Protection

#### DDoS ProtectionAdvanced TCP Protection

#### DDoS ProtectionAdvanced TCP ProtectionAllowlist

##### [List all allowlist prefixes.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/methods/list)

ddos\_protection.advanced\_tcp\_protection.allowlist.list(AllowlistListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[AllowlistListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist

##### [Create allowlist prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/methods/create)

ddos\_protection.advanced\_tcp\_protection.allowlist.create(AllowlistCreateParams\*\*kwargs) -> [AllowlistCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist

##### [Delete all allowlist prefixes.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.allowlist.bulk\_delete(AllowlistBulkDeleteParams\*\*kwargs) -> [AllowlistBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist

##### ModelsExpand Collapse

<details>

<summary>

class AllowlistListResponse: …

</summary>

id: str

The unique ID of the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

An optional comment describing the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

enabled: bool

Whether to enable the allowlist prefix into effect. Defaults to false.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The allowlist prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_list_response%20%3E%20(schema)>)

<details>

<summary>

class AllowlistCreateResponse: …

</summary>

id: str

The unique ID of the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

An optional comment describing the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

enabled: bool

Whether to enable the allowlist prefix into effect. Defaults to false.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The allowlist prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_create_response%20%3E%20(schema)>)

<details>

<summary>

class AllowlistBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist%20%3E%20(model)%20allowlist_bulk_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionAllowlistItems

##### [Get allowlist prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.allowlist.items.get(strprefix\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist/{prefix\_id}

##### [Update allowlist prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.allowlist.items.edit(strprefix\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist/{prefix\_id}

##### [Delete allowlist prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/allowlist/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.allowlist.items.delete(strprefix\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/allowlist/{prefix\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

An optional comment describing the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

enabled: bool

Whether to enable the allowlist prefix into effect. Defaults to false.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The allowlist prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

An optional comment describing the allowlist prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

enabled: bool

Whether to enable the allowlist prefix into effect. Defaults to false.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the allowlist prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The allowlist prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionPrefixes

##### [List all prefixes.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/methods/list)

ddos\_protection.advanced\_tcp\_protection.prefixes.list(PrefixListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[PrefixListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes

##### [Create prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/methods/create)

ddos\_protection.advanced\_tcp\_protection.prefixes.create(PrefixCreateParams\*\*kwargs) -> [PrefixCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes

##### [Delete all prefixes.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.prefixes.bulk\_delete(PrefixBulkDeleteParams\*\*kwargs) -> [PrefixBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes

##### [Create multiple prefixes.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/methods/bulk_create)

ddos\_protection.advanced\_tcp\_protection.prefixes.bulk\_create(PrefixBulkCreateParams\*\*kwargs) -> SyncSinglePage\[[PrefixBulkCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)>)]

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes/bulk

##### ModelsExpand Collapse

<details>

<summary>

class PrefixListResponse: …

</summary>

id: str

The unique ID of the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

A comment describing the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

excluded: bool

Whether to exclude the prefix from protection.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20excluded">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_list_response%20%3E%20(schema)>)

<details>

<summary>

class PrefixCreateResponse: …

</summary>

id: str

The unique ID of the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

A comment describing the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

excluded: bool

Whether to exclude the prefix from protection.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20excluded">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_create_response%20%3E%20(schema)>)

<details>

<summary>

class PrefixBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_delete_response%20%3E%20(schema)>)

<details>

<summary>

class PrefixBulkCreateResponse: …

</summary>

id: str

The unique ID of the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

A comment describing the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

excluded: bool

Whether to exclude the prefix from protection.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20excluded">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20prefix_bulk_create_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionPrefixesItems

##### [Get prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.prefixes.items.get(strprefix\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes/{prefix\_id}

##### [Update prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.prefixes.items.edit(strprefix\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes/{prefix\_id}

##### [Delete prefix.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/prefixes/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.prefixes.items.delete(strprefix\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/prefixes/{prefix\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

A comment describing the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

excluded: bool

Whether to exclude the prefix from protection.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20excluded">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

comment: str

A comment describing the prefix.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20comment">Link to this property</a>

created\_on: datetime

The creation timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

excluded: bool

Whether to exclude the prefix from protection.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20excluded">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the prefix.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

prefix: str

The prefix in CIDR format.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20prefix">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionSYN Protection

#### DDoS ProtectionAdvanced TCP ProtectionSYN ProtectionFilters

##### [List all SYN Protection filters.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/list)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.list(FilterListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[FilterListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters

##### [Create a SYN Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/create)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.create(FilterCreateParams\*\*kwargs) -> [FilterCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters

##### [Delete all SYN Protection filters.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.bulk\_delete(FilterBulkDeleteParams\*\*kwargs) -> [FilterBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters

##### ModelsExpand Collapse

<details>

<summary>

class FilterListResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)>)

<details>

<summary>

class FilterCreateResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)>)

<details>

<summary>

class FilterBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionSYN ProtectionFiltersItems

##### [Get SYN Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.items.get(strfilter\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters/{filter\_id}

##### [Update SYN Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.items.edit(strfilter\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters/{filter\_id}

##### [Delete SYN Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.filters.items.delete(strfilter\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/filters/{filter\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionSYN ProtectionRules

##### [List all SYN Protection rules.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/list)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.list(RuleListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[RuleListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules

##### [Create SYN Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/create)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.create(RuleCreateParams\*\*kwargs) -> [RuleCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules

##### [Delete all SYN Protection rules.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.bulk\_delete(RuleBulkDeleteParams\*\*kwargs) -> [RuleBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules

##### ModelsExpand Collapse

<details>

<summary>

class RuleListResponse: …

</summary>

id: str

The unique ID of the SYN Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mitigation\_type: str

The type of mitigation for SYN Protection. Must be one of ‘challenge’ or ‘retransmit’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20mitigation_type">Link to this property</a>

mode: str

The mode for SYN Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the SYN Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the SYN Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>)

<details>

<summary>

class RuleCreateResponse: …

</summary>

id: str

The unique ID of the SYN Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mitigation\_type: str

The type of mitigation for SYN Protection. Must be one of ‘challenge’ or ‘retransmit’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20mitigation_type">Link to this property</a>

mode: str

The mode for SYN Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the SYN Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the SYN Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

<details>

<summary>

class RuleBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionSYN ProtectionRulesItems

##### [Get SYN Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.items.get(strrule\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules/{rule\_id}

##### [Update SYN Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.items.edit(strrule\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules/{rule\_id}

##### [Delete SYN Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.syn\_protection.rules.items.delete(strrule\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/syn\_protection/rules/{rule\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the SYN Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mitigation\_type: str

The type of mitigation for SYN Protection. Must be one of ‘challenge’ or ‘retransmit’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20mitigation_type">Link to this property</a>

mode: str

The mode for SYN Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the SYN Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the SYN Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the SYN Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mitigation\_type: str

The type of mitigation for SYN Protection. Must be one of ‘challenge’ or ‘retransmit’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20mitigation_type">Link to this property</a>

mode: str

The mode for SYN Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the SYN Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the SYN Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the SYN Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionTCP Flow Protection

#### DDoS ProtectionAdvanced TCP ProtectionTCP Flow ProtectionFilters

##### [List all TCP Flow Protection filters.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/methods/list)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.list(FilterListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[FilterListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

##### [Create a TCP Flow Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/methods/create)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.create(FilterCreateParams\*\*kwargs) -> [FilterCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

##### [Delete all TCP Flow Protection filters.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.bulk\_delete(FilterBulkDeleteParams\*\*kwargs) -> [FilterBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

##### ModelsExpand Collapse

<details>

<summary>

class FilterListResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_list_response%20%3E%20(schema)>)

<details>

<summary>

class FilterCreateResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_create_response%20%3E%20(schema)>)

<details>

<summary>

class FilterBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20filter_bulk_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionTCP Flow ProtectionFiltersItems

##### [Get TCP Flow Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.items.get(strfilter\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

##### [Update TCP Flow Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.items.edit(strfilter\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

##### [Delete TCP Flow Protection filter.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.filters.items.delete(strfilter\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the expression filter.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_on: datetime

The creation timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

expression: str

The filter expression.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

mode: str

The filter’s mode. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the expression filter.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionTCP Flow ProtectionRules

##### [List all TCP Flow Protection rules.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/methods/list)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.list(RuleListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[RuleListResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

##### [Create TCP Flow Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/methods/create)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.create(RuleCreateParams\*\*kwargs) -> [RuleCreateResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

##### [Delete all TCP Flow Protection rules.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/methods/bulk_delete)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.bulk\_delete(RuleBulkDeleteParams\*\*kwargs) -> [RuleBulkDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

##### ModelsExpand Collapse

<details>

<summary>

class RuleListResponse: …

</summary>

id: str

The unique ID of the TCP Flow Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mode: str

The mode for TCP Flow Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the TCP Flow Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the TCP Flow Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_list_response%20%3E%20(schema)>)

<details>

<summary>

class RuleCreateResponse: …

</summary>

id: str

The unique ID of the TCP Flow Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mode: str

The mode for TCP Flow Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the TCP Flow Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the TCP Flow Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

<details>

<summary>

class RuleBulkDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20rule_bulk_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionTCP Flow ProtectionRulesItems

##### [Get TCP Flow Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/subresources/items/methods/get)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.items.get(strrule\_id, ItemGetParams\*\*kwargs) -> [ItemGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}

##### [Update TCP Flow Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/subresources/items/methods/edit)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.items.edit(strrule\_id, ItemEditParams\*\*kwargs) -> [ItemEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}

##### [Delete TCP Flow Protection rule.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/subresources/items/methods/delete)

ddos\_protection.advanced\_tcp\_protection.tcp\_flow\_protection.rules.items.delete(strrule\_id, ItemDeleteParams\*\*kwargs) -> [ItemDeleteResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}

##### ModelsExpand Collapse

<details>

<summary>

class ItemGetResponse: …

</summary>

id: str

The unique ID of the TCP Flow Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mode: str

The mode for TCP Flow Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the TCP Flow Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the TCP Flow Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_get_response%20%3E%20(schema)>)

<details>

<summary>

class ItemEditResponse: …

</summary>

id: str

The unique ID of the TCP Flow Protection rule.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

burst\_sensitivity: str

The burst sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20burst_sensitivity">Link to this property</a>

created\_on: datetime

The creation timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

mode: str

The mode for TCP Flow Protection. Must be one of ‘enabled’, ‘disabled’, ‘monitoring’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

modified\_on: datetime

The last modification timestamp of the TCP Flow Protection rule.

formatdate-time

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name: str

The name of the TCP Flow Protection rule. Value is relative to the ‘scope’ setting. For ‘global’ scope, name should be ‘global’. For either the ‘region’ or ‘datacenter’ scope, name should be the actual name of the region or datacenter, e.g., ‘wnam’ or ‘lax’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

rate\_sensitivity: str

The rate sensitivity. Must be one of ‘low’, ‘medium’, ‘high’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20rate_sensitivity">Link to this property</a>

scope: str

The scope for the TCP Flow Protection rule. Must be one of ‘global’, ‘region’, or ‘datacenter’.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_edit_response%20%3E%20(schema)>)

<details>

<summary>

class ItemDeleteResponse: …

</summary>

<details>

<summary>

errors: List\[Error]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[ErrorSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

messages: List\[Message]

</summary>

code: int

minimum1000

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: str

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: Optional\[MessageSource]

</summary>

pointer: Optional\[str]

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: Literal\[true]

Whether the API call was successful.

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20item_delete_response%20%3E%20(schema)>)

#### DDoS ProtectionAdvanced TCP ProtectionStatus

##### [Get protection status.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/status/methods/get)

ddos\_protection.advanced\_tcp\_protection.status.get(StatusGetParams\*\*kwargs) -> [StatusGetResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_protection\_status

##### [Update protection status.](https://developers.cloudflare.com/api/python/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/status/methods/edit)

ddos\_protection.advanced\_tcp\_protection.status.edit(StatusEditParams\*\*kwargs) -> [StatusEditResponse](<https://developers.cloudflare.com/api/python/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_protection\_status

##### ModelsExpand Collapse

<details>

<summary>

class StatusGetResponse: …

</summary>

enabled: bool

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_get_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_get_response%20%3E%20(schema)>)

<details>

<summary>

class StatusEditResponse: …

</summary>

enabled: bool

<a href="#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_edit_response%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20status_edit_response%20%3E%20(schema)>)