# Rules

## Lists

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#HostnameParam">HostnameParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#RedirectParam">RedirectParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#Hostname">Hostname</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListsList">ListsList</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#Redirect">Redirect</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListNewResponse">ListNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListUpdateResponse">ListUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListDeleteResponse">ListDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListGetResponse">ListGetResponse</a>

Methods:

- <code title="post /accounts/{account_id}/rules/lists">client.Rules.Lists.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListService.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/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListNewParams">ListNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListNewResponse">ListNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/rules/lists/{list_id}">client.Rules.Lists.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListUpdateParams">ListUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListUpdateResponse">ListUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/rules/lists">client.Rules.Lists.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListListParams">ListListParams</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/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListsList">ListsList</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/rules/lists/{list_id}">client.Rules.Lists.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListDeleteParams">ListDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListDeleteResponse">ListDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/rules/lists/{list_id}">client.Rules.Lists.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListGetParams">ListGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListGetResponse">ListGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### BulkOperations

Response Types:

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

Methods:

- <code title="get /accounts/{account_id}/rules/lists/bulk_operations/{operation_id}">client.Rules.Lists.BulkOperations.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListBulkOperationService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, operationID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListBulkOperationGetParams">ListBulkOperationGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListBulkOperationGetResponse">ListBulkOperationGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Items

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListCursor">ListCursor</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemNewResponse">ListItemNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemUpdateResponse">ListItemUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemListResponse">ListItemListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemDeleteResponse">ListItemDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemGetResponse">ListItemGetResponse</a>

Methods:

- <code title="post /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemNewParams">ListItemNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemNewResponse">ListItemNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemUpdateParams">ListItemUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemUpdateResponse">ListItemUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemListParams">ListItemListParams</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#CursorPaginationAfter">CursorPaginationAfter</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemListResponse">ListItemListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/rules/lists/{list_id}/items">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemDeleteParams">ListItemDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemDeleteResponse">ListItemDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/rules/lists/{list_id}/items/{item_id}">client.Rules.Lists.Items.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, listID <a href="https://pkg.go.dev/builtin#string">string</a>, itemID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemGetParams">ListItemGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules">rules</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/rules#ListItemGetResponse">ListItemGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
