# Filters

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilterParam">FirewallFilterParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterDeleteResponse">FilterDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterBulkDeleteResponse">FilterBulkDeleteResponse</a>

Methods:

- <code title="post /zones/{zone_id}/filters">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterNewParams">FilterNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/filters/{filter_id}">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, filterID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterUpdateParams">FilterUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/filters">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterListParams">FilterListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/filters/{filter_id}">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, filterID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterDeleteParams">FilterDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterDeleteResponse">FilterDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/filters">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.BulkDelete">BulkDelete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterBulkDeleteParams">FilterBulkDeleteParams</a>) (\*[]<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterBulkDeleteResponse">FilterBulkDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/filters">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.BulkUpdate">BulkUpdate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterBulkUpdateParams">FilterBulkUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/filters/{filter_id}">client.Filters.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, filterID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FilterGetParams">FilterGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters">filters</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/filters#FirewallFilter">FirewallFilter</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
