# TokenValidation

## Configuration

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenConfig">TokenConfig</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationDeleteResponse">ConfigurationDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationEditResponse">ConfigurationEditResponse</a>

Methods:

- <code title="post /zones/{zone_id}/token_validation/config">client.TokenValidation.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationService.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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationNewParams">ConfigurationNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenConfig">TokenConfig</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/token_validation/config">client.TokenValidation.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationService.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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationListParams">ConfigurationListParams</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenConfig">TokenConfig</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/token_validation/config/{config_id}">client.TokenValidation.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, configID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationDeleteParams">ConfigurationDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationDeleteResponse">ConfigurationDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/token_validation/config/{config_id}">client.TokenValidation.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, configID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationEditParams">ConfigurationEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationEditResponse">ConfigurationEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/token_validation/config/{config_id}">client.TokenValidation.Configuration.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, configID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationGetParams">ConfigurationGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenConfig">TokenConfig</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Credentials

Response Types:

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

Methods:

- <code title="put /zones/{zone_id}/token_validation/config/{config_id}/credentials">client.TokenValidation.Configuration.Credentials.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationCredentialService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, configID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationCredentialUpdateParams">ConfigurationCredentialUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#ConfigurationCredentialUpdateResponse">ConfigurationCredentialUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Rules

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleDeleteResponse">RuleDeleteResponse</a>

Methods:

- <code title="post /zones/{zone_id}/token_validation/rules">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleNewParams">RuleNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/token_validation/rules">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleListParams">RuleListParams</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/token_validation/rules/{rule_id}">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleDeleteParams">RuleDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleDeleteResponse">RuleDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /zones/{zone_id}/token_validation/rules/bulk">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.BulkNew">BulkNew</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleBulkNewParams">RuleBulkNewParams</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/token_validation/rules/bulk">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.BulkEdit">BulkEdit</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleBulkEditParams">RuleBulkEditParams</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/token_validation/rules/{rule_id}">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</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/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleEditParams">RuleEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/token_validation/rules/{rule_id}">client.TokenValidation.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, ruleID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#RuleGetParams">RuleGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation">token_validation</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/token_validation#TokenValidationRule">TokenValidationRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
