---
title: Advanced TCP Protection
---

[Skip to content](#_top)

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

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

Copy Markdown

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

---

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

# Advanced TCP Protection

#### Advanced TCP ProtectionAllowlist

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

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

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

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

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

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

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

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

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

#### Advanced TCP ProtectionAllowlistItems

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

client.DDoSProtection.AdvancedTCPProtection.Allowlist.Items.Get(ctx, prefixID, query) (\*[AdvancedTCPProtectionAllowlistItemGetResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20AdvancedTCPProtectionAllowlistItemGetResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.Allowlist.Items.Edit(ctx, prefixID, params) (\*[AdvancedTCPProtectionAllowlistItemEditResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20AdvancedTCPProtectionAllowlistItemEditResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.Allowlist.Items.Delete(ctx, prefixID, body) (\*[AdvancedTCPProtectionAllowlistItemDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.allowlist.items%20%3E%20(model)%20AdvancedTCPProtectionAllowlistItemDeleteResponse%20%3E%20(schema)>), error)

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

#### Advanced TCP ProtectionPrefixes

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

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

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

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

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

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

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

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

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

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

client.DDoSProtection.AdvancedTCPProtection.Prefixes.BulkNew(ctx, params) (\*SinglePage\[[AdvancedTCPProtectionPrefixBulkNewResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes%20%3E%20(model)%20AdvancedTCPProtectionPrefixBulkNewResponse%20%3E%20(schema)>)], error)

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

#### Advanced TCP ProtectionPrefixesItems

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

client.DDoSProtection.AdvancedTCPProtection.Prefixes.Items.Get(ctx, prefixID, query) (\*[AdvancedTCPProtectionPrefixItemGetResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20AdvancedTCPProtectionPrefixItemGetResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.Prefixes.Items.Edit(ctx, prefixID, params) (\*[AdvancedTCPProtectionPrefixItemEditResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20AdvancedTCPProtectionPrefixItemEditResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.Prefixes.Items.Delete(ctx, prefixID, body) (\*[AdvancedTCPProtectionPrefixItemDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.prefixes.items%20%3E%20(model)%20AdvancedTCPProtectionPrefixItemDeleteResponse%20%3E%20(schema)>), error)

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

#### Advanced TCP ProtectionSYN Protection

#### Advanced TCP ProtectionSYN ProtectionFilters

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

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

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

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

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

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

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

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

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

#### Advanced TCP ProtectionSYN ProtectionFiltersItems

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

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

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

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

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

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

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

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

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

#### Advanced TCP ProtectionSYN ProtectionRules

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

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

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

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

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

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

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

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

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

#### Advanced TCP ProtectionSYN ProtectionRulesItems

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

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

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

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

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

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

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

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

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

#### Advanced TCP ProtectionTCP Flow Protection

#### Advanced TCP ProtectionTCP 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

#### Advanced TCP ProtectionTCP 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}

#### Advanced TCP ProtectionTCP 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

#### Advanced TCP ProtectionTCP 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}

#### Advanced TCP ProtectionStatus

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

client.DDoSProtection.AdvancedTCPProtection.Status.Get(ctx, query) (\*[AdvancedTCPProtectionStatusGetResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20AdvancedTCPProtectionStatusGetResponse%20%3E%20(schema)>), error)

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

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

client.DDoSProtection.AdvancedTCPProtection.Status.Edit(ctx, params) (\*[AdvancedTCPProtectionStatusEditResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.status%20%3E%20(model)%20AdvancedTCPProtectionStatusEditResponse%20%3E%20(schema)>), error)

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