---
title: TCP Flow Protection
---

[Skip to content](#_top)

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

[DDoS Protection](https://developers.cloudflare.com/api/go/resources/ddos_protection)

[Advanced TCP Protection](https://developers.cloudflare.com/api/go/resources/ddos_protection/subresources/advanced_tcp_protection)

Copy Markdown

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

---

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

# TCP Flow Protection

#### TCP Flow ProtectionFilters

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionTCPFlowProtectionFilterListResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterListResponse%20%3E%20(schema)>)], error)

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

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.New(ctx, params) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse%20%3E%20(schema)>), error)

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

#### TCP Flow ProtectionFiltersItems

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Get(ctx, filterID, query) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse%20%3E%20(schema)>), error)

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/go/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/subresources/items/methods/edit)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Edit(ctx, filterID, params) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse%20%3E%20(schema)>), error)

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/go/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/filters/subresources/items/methods/delete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Delete(ctx, filterID, body) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse%20%3E%20(schema)>), error)

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

#### TCP Flow ProtectionRules

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionTCPFlowProtectionRuleListResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleListResponse%20%3E%20(schema)>)], error)

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

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.New(ctx, params) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse%20%3E%20(schema)>), error)

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

#### TCP Flow ProtectionRulesItems

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

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Get(ctx, ruleID, query) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse%20%3E%20(schema)>), error)

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/go/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/subresources/items/methods/edit)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Edit(ctx, ruleID, params) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse%20%3E%20(schema)>), error)

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/go/resources/ddos_protection/subresources/advanced_tcp_protection/subresources/tcp_flow_protection/subresources/rules/subresources/items/methods/delete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Delete(ctx, ruleID, body) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.tcp_flow_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse%20%3E%20(schema)>), error)

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