# Rulesets

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Kind">Kind</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Kind">Kind</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetNewResponse">RulesetNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetUpdateResponse">RulesetUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetListResponse">RulesetListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetGetResponse">RulesetGetResponse</a>

Methods:

- <code title="post /{accounts_or_zones}/{account_or_zone_id}/rulesets">client.Rulesets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetService.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/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetNewParams">RulesetNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetNewResponse">RulesetNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}">client.Rulesets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetUpdateParams">RulesetUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetUpdateResponse">RulesetUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets">client.Rulesets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetService.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/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetListParams">RulesetListParams</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#CursorPagination">CursorPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetListResponse">RulesetListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}">client.Rulesets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetDeleteParams">RulesetDeleteParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}">client.Rulesets.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetGetParams">RulesetGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RulesetGetResponse">RulesetGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Phases

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseUpdateResponse">PhaseUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseGetResponse">PhaseGetResponse</a>

Methods:

- <code title="put /{accounts_or_zones}/{account_or_zone_id}/rulesets/phases/{ruleset_phase}/entrypoint">client.Rulesets.Phases.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetPhase <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseUpdateParams">PhaseUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseUpdateResponse">PhaseUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/phases/{ruleset_phase}/entrypoint">client.Rulesets.Phases.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetPhase <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseGetParams">PhaseGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseGetResponse">PhaseGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Versions

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionListResponse">PhaseVersionListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionGetResponse">PhaseVersionGetResponse</a>

Methods:

- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions">client.Rulesets.Phases.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetPhase <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionListParams">PhaseVersionListParams</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/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionListResponse">PhaseVersionListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions/{ruleset_version}">client.Rulesets.Phases.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetPhase <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Phase">Phase</a>, rulesetVersion <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionGetParams">PhaseVersionGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#PhaseVersionGetResponse">PhaseVersionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Rules

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#BlockRuleParam">BlockRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#CompressResponseRuleParam">CompressResponseRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#DDoSDynamicRuleParam">DDoSDynamicRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ExecuteRuleParam">ExecuteRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ForceConnectionCloseRuleParam">ForceConnectionCloseRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#LogCustomFieldRuleParam">LogCustomFieldRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#LogRuleParam">LogRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#LoggingParam">LoggingParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ManagedChallengeRuleParam">ManagedChallengeRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RedirectRuleParam">RedirectRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RewriteRuleParam">RewriteRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RouteRuleParam">RouteRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ScoreRuleParam">ScoreRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ServeErrorRuleParam">ServeErrorRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SetCacheSettingsRuleParam">SetCacheSettingsRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SetConfigRuleParam">SetConfigRuleParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SkipRuleParam">SkipRuleParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#BlockRule">BlockRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#CompressResponseRule">CompressResponseRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#DDoSDynamicRule">DDoSDynamicRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ExecuteRule">ExecuteRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ForceConnectionCloseRule">ForceConnectionCloseRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#LogCustomFieldRule">LogCustomFieldRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#LogRule">LogRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#Logging">Logging</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ManagedChallengeRule">ManagedChallengeRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RedirectRule">RedirectRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RewriteRule">RewriteRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RouteRule">RouteRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ScoreRule">ScoreRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#ServeErrorRule">ServeErrorRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SetCacheSettingsRule">SetCacheSettingsRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SetConfigRule">SetConfigRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#SkipRule">SkipRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleNewResponse">RuleNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleDeleteResponse">RuleDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleEditResponse">RuleEditResponse</a>

Methods:

- <code title="post /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/rules">client.Rulesets.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleNewParams">RuleNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleNewResponse">RuleNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/rules/{rule_id}">client.Rulesets.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, ruleID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleDeleteParams">RuleDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleDeleteResponse">RuleDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/rules/{rule_id}">client.Rulesets.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, ruleID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleEditParams">RuleEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#RuleEditResponse">RuleEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Versions

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionListResponse">VersionListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionGetResponse">VersionGetResponse</a>

Methods:

- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions">client.Rulesets.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionListParams">VersionListParams</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/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionListResponse">VersionListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions/{ruleset_version}">client.Rulesets.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, rulesetVersion <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionDeleteParams">VersionDeleteParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/rulesets/{ruleset_id}/versions/{ruleset_version}">client.Rulesets.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, rulesetID <a href="https://pkg.go.dev/builtin#string">string</a>, rulesetVersion <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionGetParams">VersionGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets">rulesets</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rulesets#VersionGetResponse">VersionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
