---
title: Gateway
---

[Skip to content](#_top)

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

[Zero Trust](https://developers.cloudflare.com/api/go/resources/zero_trust)

Copy Markdown

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

---

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

# Gateway

##### [Get Zero Trust account information](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/methods/list)

client.ZeroTrust.Gateway.List(ctx, query) (\*[GatewayListResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway%20%3E%20(model)%20GatewayListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway

##### [Create Zero Trust account](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/methods/create)

client.ZeroTrust.Gateway.New(ctx, body) (\*[GatewayNewResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway%20%3E%20(model)%20GatewayNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway

#### GatewayAudit SSH Settings

##### [Get Zero Trust SSH settings](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/audit_ssh_settings/methods/get)

client.ZeroTrust.Gateway.AuditSSHSettings.Get(ctx, query) (\*[GatewaySettings](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/audit\_ssh\_settings

##### [Update Zero Trust SSH settings](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/audit_ssh_settings/methods/update)

client.ZeroTrust.Gateway.AuditSSHSettings.Update(ctx, params) (\*[GatewaySettings](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/audit\_ssh\_settings

##### [Rotate Zero Trust SSH account seed](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/audit_ssh_settings/methods/rotate_seed)

client.ZeroTrust.Gateway.AuditSSHSettings.RotateSeed(ctx, body) (\*[GatewaySettings](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/audit\_ssh\_settings/rotate\_seed

##### ModelsExpand Collapse

<details>

<summary>

type GatewaySettings struct{…}

</summary>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

PublicKey stringOptional

Provide the Base64-encoded HPKE public key that encrypts SSH session logs. See <a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/#enable-ssh-command-logging">https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/#enable-ssh-command-logging</a>.

<a href="#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)%20%3E%20(property)%20public_key">Link to this property</a>

SeedID stringOptional

Identify the seed ID.

maxLength36

<a href="#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)%20%3E%20(property)%20seed_id">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>)

#### GatewayCategories

##### [List categories](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/categories/methods/list)

client.ZeroTrust.Gateway.Categories.List(ctx, query) (\*SinglePage\[[Category](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/categories

##### ModelsExpand Collapse

<details>

<summary>

type Category struct{…}

</summary>

ID int64Optional

Identify this category. Only one category per ID.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Beta boolOptional

Indicate whether the category is in beta and subject to change.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20beta">Link to this property</a>

<details>

<summary>

Class CategoryClassOptional

Specify which account types can create policies for this category. <code>blocked</code> Blocks unconditionally for all accounts. <code>removalPending</code> Allows removal from policies but disables addition. <code>noBlock</code> Prevents blocking.

</summary>

One of the following:

const CategoryClassFree CategoryClass = "free"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class%20%3E%20(member)%200">Link to this property</a>

const CategoryClassPremium CategoryClass = "premium"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class%20%3E%20(member)%201">Link to this property</a>

const CategoryClassBlocked CategoryClass = "blocked"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class%20%3E%20(member)%202">Link to this property</a>

const CategoryClassRemovalPending CategoryClass = "removalPending"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class%20%3E%20(member)%203">Link to this property</a>

const CategoryClassNoBlock CategoryClass = "noBlock"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20class">Link to this property</a>

Description stringOptional

Provide a short summary of domains in the category.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Name stringOptional

Specify the category name.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Subcategories \[]CategorySubcategoryOptional

Provide all subcategories for this category.

</summary>

ID int64Optional

Identify this category. Only one category per ID.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Beta boolOptional

Indicate whether the category is in beta and subject to change.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20beta">Link to this property</a>

<details>

<summary>

Class CategorySubcategoriesClassOptional

Specify which account types can create policies for this category. <code>blocked</code> Blocks unconditionally for all accounts. <code>removalPending</code> Allows removal from policies but disables addition. <code>noBlock</code> Prevents blocking.

</summary>

One of the following:

const CategorySubcategoriesClassFree CategorySubcategoriesClass = "free"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class%20%3E%20(member)%200">Link to this property</a>

const CategorySubcategoriesClassPremium CategorySubcategoriesClass = "premium"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class%20%3E%20(member)%201">Link to this property</a>

const CategorySubcategoriesClassBlocked CategorySubcategoriesClass = "blocked"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class%20%3E%20(member)%202">Link to this property</a>

const CategorySubcategoriesClassRemovalPending CategorySubcategoriesClass = "removalPending"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class%20%3E%20(member)%203">Link to this property</a>

const CategorySubcategoriesClassNoBlock CategorySubcategoriesClass = "noBlock"

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20class">Link to this property</a>

Description stringOptional

Provide a short summary of domains in the category.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20description">Link to this property</a>

Name stringOptional

Specify the category name.

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)%20%3E%20(property)%20subcategories">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)>)

#### GatewayApp Types

##### [List application and application type mappings](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/app_types/methods/list)

client.ZeroTrust.Gateway.AppTypes.List(ctx, query) (\*SinglePage\[[AppType](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/app\_types

##### ModelsExpand Collapse

<details>

<summary>

type AppType interface{…}

</summary>

One of the following:

<details>

<summary>

type AppTypeZeroTrustGatewayApplication struct{…}

</summary>

ID int64Optional

Identify this application. Only one application per ID.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

ApplicationTypeID int64Optional

Identify the type of this application. Multiple applications can share the same type. Refers to the <code>id</code> of a returned application type.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20application_type_id">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_at">Link to this property</a>

Name stringOptional

Specify the name of the application or application type.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type AppTypeZeroTrustGatewayApplicationType struct{…}

</summary>

ID int64Optional

Identify the type of this application. Multiple applications can share the same type. Refers to the <code>id</code> of a returned application type.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_at">Link to this property</a>

Description stringOptional

Provide a short summary of applications with this type.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20description">Link to this property</a>

Name stringOptional

Specify the name of the application or application type.

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)>)

#### GatewayConfigurations

##### [Get Zero Trust account configuration](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/configurations/methods/get)

client.ZeroTrust.Gateway.Configurations.Get(ctx, query) (\*[GatewayConfigurationGetResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20GatewayConfigurationGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/configuration

##### [Update Zero Trust account configuration](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/configurations/methods/update)

client.ZeroTrust.Gateway.Configurations.Update(ctx, params) (\*[GatewayConfigurationUpdateResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20GatewayConfigurationUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/configuration

##### [Patch Zero Trust account configuration](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/configurations/methods/edit)

client.ZeroTrust.Gateway.Configurations.Edit(ctx, params) (\*[GatewayConfigurationEditResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20GatewayConfigurationEditResponse%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/gateway/configuration

##### ModelsExpand Collapse

<details>

<summary>

type ActivityLogSettings struct{…}

Specify activity log settings.

</summary>

Enabled boolOptional

Specify whether to log activity.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20activity_log_settings%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20activity_log_settings%20%3E%20(schema)>)

<details>

<summary>

type AntiVirusSettings struct{…}

Specify anti-virus settings.

</summary>

EnabledDownloadPhase boolOptional

Specify whether to enable anti-virus scanning on downloads.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)%20%3E%20(property)%20enabled_download_phase">Link to this property</a>

EnabledUploadPhase boolOptional

Specify whether to enable anti-virus scanning on uploads.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)%20%3E%20(property)%20enabled_upload_phase">Link to this property</a>

FailClosed boolOptional

Specify whether to block requests for unscannable files.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)%20%3E%20(property)%20fail_closed">Link to this property</a>

NotificationSettings <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)">NotificationSettings</a>Optional

Configure the message the user’s device shows during an antivirus scan.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)%20%3E%20(property)%20notification_settings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)>)

<details>

<summary>

type BlockPageSettings struct{…}

Specify block page layout settings.

</summary>

BackgroundColor stringOptional

Specify the block page background color in <code>#rrggbb</code> format when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20background_color">Link to this property</a>

Enabled boolOptional

Specify whether to enable the custom block page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

FooterText stringOptional

Specify the block page footer text when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20footer_text">Link to this property</a>

HeaderText stringOptional

Specify the block page header text when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20header_text">Link to this property</a>

IncludeContext boolOptional

Specify whether to append context to target\_uri as query parameters. This applies only when the mode is redirect\_uri.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20include_context">Link to this property</a>

LogoPath stringOptional

Specify the full URL to the logo file when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20logo_path">Link to this property</a>

MailtoAddress stringOptional

Specify the admin email for users to contact when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mailto_address">Link to this property</a>

MailtoSubject stringOptional

Specify the subject line for emails created from the block page when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mailto_subject">Link to this property</a>

<details>

<summary>

Mode BlockPageSettingsModeOptional

Specify whether to redirect users to a Cloudflare-hosted block page or a customer-provided URI.

</summary>

One of the following:

const BlockPageSettingsModeEmpty BlockPageSettingsMode = ""

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const BlockPageSettingsModeCustomizedBlockPage BlockPageSettingsMode = "customized\_block\_page"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

const BlockPageSettingsModeRedirectURI BlockPageSettingsMode = "redirect\_uri"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20mode">Link to this property</a>

Name stringOptional

Specify the block page title when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

ReadOnly boolOptional

Indicate that this setting was shared via the Orgs API and read only for the current account.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20read_only">Link to this property</a>

SourceAccount stringOptional

Indicate the account tag of the account that shared this setting.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20source_account">Link to this property</a>

SuppressFooter boolOptional

Specify whether to suppress detailed information at the bottom of the block page when the mode is customized\_block\_page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20suppress_footer">Link to this property</a>

TargetURI stringOptional

Specify the URI to redirect users to when the mode is redirect\_uri.

formaturi

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20target_uri">Link to this property</a>

Version int64Optional

Indicate the version number of the setting.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)>)

<details>

<summary>

type BodyScanningSettings struct{…}

Specify the DLP inspection mode.

</summary>

<details>

<summary>

InspectionMode BodyScanningSettingsInspectionModeOptional

Specify the inspection mode as either <code>deep</code> or <code>shallow</code>.

</summary>

One of the following:

const BodyScanningSettingsInspectionModeDeep BodyScanningSettingsInspectionMode = "deep"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)%20%3E%20(property)%20inspection_mode%20%3E%20(member)%200">Link to this property</a>

const BodyScanningSettingsInspectionModeShallow BodyScanningSettingsInspectionMode = "shallow"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)%20%3E%20(property)%20inspection_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)%20%3E%20(property)%20inspection_mode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)>)

<details>

<summary>

type BrowserIsolationSettings struct{…}

Specify Clientless Browser Isolation settings.

</summary>

NonIdentityEnabled boolOptional

Specify whether to enable non-identity onramp support for Browser Isolation.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20browser_isolation_settings%20%3E%20(schema)%20%3E%20(property)%20non_identity_enabled">Link to this property</a>

URLBrowserIsolationEnabled boolOptional

Specify whether to enable Clientless Browser Isolation.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20browser_isolation_settings%20%3E%20(schema)%20%3E%20(property)%20url_browser_isolation_enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20browser_isolation_settings%20%3E%20(schema)>)

<details>

<summary>

type CustomCertificateSettings struct{…}

Specify custom certificate settings for BYO-PKI. This field is deprecated; use <code>certificate</code> instead.

</summary>

Enabled bool

Specify whether to enable a custom certificate authority for signing Gateway traffic.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

ID stringOptional

Specify the UUID of the certificate (ID from MTLS certificate store).

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

BindingStatus stringOptional

Indicate the internal certificate status.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)%20%3E%20(property)%20binding_status">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)>)

<details>

<summary>

type ExtendedEmailMatching struct{…}

Configures user email settings for firewall policies. When you enable this, the system standardizes email addresses in the identity portion of the rule to match extended email variants in firewall policies. When you disable this setting, the system matches email addresses exactly as you provide them. Enable this setting if your email uses <code>.</code> or <code>+</code> modifiers.

</summary>

Enabled boolOptional

Specify whether to match all variants of user emails (with + or . modifiers) used as criteria in Firewall policies.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

ReadOnly boolOptional

Indicate that this setting was shared via the Orgs API and read only for the current account.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)%20%3E%20(property)%20read_only">Link to this property</a>

SourceAccount stringOptional

Indicate the account tag of the account that shared this setting.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)%20%3E%20(property)%20source_account">Link to this property</a>

Version int64Optional

Indicate the version number of the setting.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)>)

<details>

<summary>

type FipsSettings struct{…}

Specify FIPS settings.

</summary>

TLS boolOptional

Enforce cipher suites and TLS versions compliant with FIPS 140-2.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20fips_settings%20%3E%20(schema)%20%3E%20(property)%20tls">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20fips_settings%20%3E%20(schema)>)

<details>

<summary>

type GatewayConfigurationSettings struct{…}

Specify account settings.

</summary>

ActivityLog <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20activity_log_settings%20%3E%20(schema)">ActivityLogSettings</a>Optional

Specify activity log settings.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20activity_log">Link to this property</a>

Antivirus <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)">AntiVirusSettings</a>Optional

Specify anti-virus settings.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20antivirus">Link to this property</a>

BlockPage <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)">BlockPageSettings</a>Optional

Specify block page layout settings.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20block_page">Link to this property</a>

BodyScanning <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)">BodyScanningSettings</a>Optional

Specify the DLP inspection mode.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20body_scanning">Link to this property</a>

BrowserIsolation <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20browser_isolation_settings%20%3E%20(schema)">BrowserIsolationSettings</a>Optional

Specify Clientless Browser Isolation settings.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20browser_isolation">Link to this property</a>

<details>

<summary>

Certificate GatewayConfigurationSettingsCertificateOptional

Specify certificate settings for Gateway TLS interception. If unset, the Cloudflare Root CA handles interception.

</summary>

ID string

Specify the UUID of the certificate used for interception. Ensure the certificate is available at the edge(previously called ‘active’). A nil UUID directs Cloudflare to use the Root CA.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20certificate%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20certificate">Link to this property</a>

DeprecatedCustomCertificate <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)">CustomCertificateSettings</a>Optional

Specify custom certificate settings for BYO-PKI. This field is deprecated; use <code>certificate</code> instead.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20custom_certificate">Link to this property</a>

ExtendedEmailMatching <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)">ExtendedEmailMatching</a>Optional

Configures user email settings for firewall policies. When you enable this, the system standardizes email addresses in the identity portion of the rule to match extended email variants in firewall policies. When you disable this setting, the system matches email addresses exactly as you provide them. Enable this setting if your email uses <code>.</code> or <code>+</code> modifiers.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20extended_email_matching">Link to this property</a>

Fips <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20fips_settings%20%3E%20(schema)">FipsSettings</a>Optional

Specify FIPS settings.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20fips">Link to this property</a>

<details>

<summary>

HostSelector GatewayConfigurationSettingsHostSelectorOptional

Enable host selection in egress policies.

</summary>

Enabled boolOptional

Specify whether to enable filtering via hosts for egress policies.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20host_selector%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20host_selector">Link to this property</a>

<details>

<summary>

Inspection GatewayConfigurationSettingsInspectionOptional

Define the proxy inspection mode.

</summary>

<details>

<summary>

Mode GatewayConfigurationSettingsInspectionModeOptional

Define the proxy inspection mode. 1. static: Gateway applies static inspection to HTTP on TCP(80). With TLS decryption on, Gateway inspects HTTPS traffic on TCP(443) and UDP(443). 2. dynamic: Gateway applies protocol detection to inspect HTTP and HTTPS traffic on any port. TLS decryption must remain on to inspect HTTPS traffic.

</summary>

One of the following:

const GatewayConfigurationSettingsInspectionModeStatic GatewayConfigurationSettingsInspectionMode = "static"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20inspection%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const GatewayConfigurationSettingsInspectionModeDynamic GatewayConfigurationSettingsInspectionMode = "dynamic"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20inspection%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20inspection%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20inspection">Link to this property</a>

MaxTTLSecs int64Optional

Account-level cap on DNS response TTLs, in seconds. Gateway rewrites DNS responses so returned record TTLs do not exceed this value. Null means no cap. Each DNS location can inherit, override, or disable it through the location <code>max_ttl</code> setting.

maximum36000

minimum60

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20max_ttl_secs">Link to this property</a>

ProtocolDetection <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20protocol_detection%20%3E%20(schema)">ProtocolDetection</a>Optional

Specify whether to detect protocols from the initial bytes of client traffic.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20protocol_detection">Link to this property</a>

<details>

<summary>

Sandbox GatewayConfigurationSettingsSandboxOptional

Specify whether to enable the sandbox.

</summary>

Enabled boolOptional

Specify whether to enable the sandbox.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20sandbox%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

FallbackAction GatewayConfigurationSettingsSandboxFallbackActionOptional

Specify the action to take when the system cannot scan the file.

</summary>

One of the following:

const GatewayConfigurationSettingsSandboxFallbackActionAllow GatewayConfigurationSettingsSandboxFallbackAction = "allow"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20sandbox%20%3E%20(property)%20fallback_action%20%3E%20(member)%200">Link to this property</a>

const GatewayConfigurationSettingsSandboxFallbackActionBlock GatewayConfigurationSettingsSandboxFallbackAction = "block"

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20sandbox%20%3E%20(property)%20fallback_action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20sandbox%20%3E%20(property)%20fallback_action">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20sandbox">Link to this property</a>

TLSDecrypt <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20tls_settings%20%3E%20(schema)">TLSSettings</a>Optional

Specify whether to inspect encrypted HTTP traffic.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)%20%3E%20(property)%20tls_decrypt">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)>)

<details>

<summary>

type NotificationSettings struct{…}

Configure the message the user’s device shows during an antivirus scan.

</summary>

Enabled boolOptional

Specify whether to enable notifications.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

IncludeContext boolOptional

Specify whether to include context information as query parameters.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)%20%3E%20(property)%20include_context">Link to this property</a>

Msg stringOptional

Specify the message to show in the notification.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)%20%3E%20(property)%20msg">Link to this property</a>

SupportURL stringOptional

Specify a URL that directs users to more information. If unset, the notification opens a block page.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)%20%3E%20(property)%20support_url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)>)

<details>

<summary>

type ProtocolDetection struct{…}

Specify whether to detect protocols from the initial bytes of client traffic.

</summary>

Enabled boolOptional

Specify whether to detect protocols from the initial bytes of client traffic.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20protocol_detection%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20protocol_detection%20%3E%20(schema)>)

<details>

<summary>

type TLSSettings struct{…}

Specify whether to inspect encrypted HTTP traffic.

</summary>

Enabled boolOptional

Specify whether to inspect encrypted HTTP traffic.

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20tls_settings%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20tls_settings%20%3E%20(schema)>)

#### GatewayConfigurationsCustom Certificate

##### [Get Zero Trust certificate configuration](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/configurations/subresources/custom_certificate/methods/get)

Deprecated

client.ZeroTrust.Gateway.Configurations.CustomCertificate.Get(ctx, query) (\*[CustomCertificateSettings](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/configuration/custom\_certificate

#### GatewayLists

##### [List Zero Trust lists](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/list)

client.ZeroTrust.Gateway.Lists.List(ctx, params) (\*SinglePage\[[GatewayList](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/lists

##### [Get Zero Trust list details](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/get)

client.ZeroTrust.Gateway.Lists.Get(ctx, listID, query) (\*[GatewayList](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/lists/{list\_id}

##### [Create Zero Trust list](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/create)

client.ZeroTrust.Gateway.Lists.New(ctx, params) (\*[GatewayListNewResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20GatewayListNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/lists

##### [Update Zero Trust list](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/update)

client.ZeroTrust.Gateway.Lists.Update(ctx, listID, params) (\*[GatewayList](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/lists/{list\_id}

##### [Patch Zero Trust list.](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/edit)

client.ZeroTrust.Gateway.Lists.Edit(ctx, listID, params) (\*[GatewayList](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/gateway/lists/{list\_id}

##### [Delete Zero Trust list](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/methods/delete)

client.ZeroTrust.Gateway.Lists.Delete(ctx, listID, body) (\*[GatewayListDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20GatewayListDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/lists/{list\_id}

##### ModelsExpand Collapse

<details>

<summary>

type GatewayItem struct{…}

</summary>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

Description stringOptional

Provide the list item description (optional).

minimum0

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Value stringOptional

Specify the item value.

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)>)

<details>

<summary>

type GatewayList struct{…}

</summary>

ID stringOptional

Identify the API resource with a UUID.

maxLength36

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Count float64Optional

Indicate the number of items in the list.

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

Description stringOptional

Provide the list description.

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

Items \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)">GatewayItem</a>Optional

Provide the list items.

</summary>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

Description stringOptional

Provide the list item description (optional).

minimum0

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Value stringOptional

Specify the item value.

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20items">Link to this property</a>

Name stringOptional

Specify the list name.

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Type GatewayListTypeOptional

Specify the list type.

</summary>

One of the following:

const GatewayListTypeSerial GatewayListType = "SERIAL"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const GatewayListTypeURL GatewayListType = "URL"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const GatewayListTypeDomain GatewayListType = "DOMAIN"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

const GatewayListTypeEmail GatewayListType = "EMAIL"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

const GatewayListTypeIP GatewayListType = "IP"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

const GatewayListTypeCategory GatewayListType = "CATEGORY"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%205">Link to this property</a>

const GatewayListTypeLocation GatewayListType = "LOCATION"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%206">Link to this property</a>

const GatewayListTypeDevice GatewayListType = "DEVICE"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%207">Link to this property</a>

const GatewayListTypeAaguid GatewayListType = "AAGUID"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%208">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>)

#### GatewayListsItems

##### [Get Zero Trust list items](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/lists/subresources/items/methods/list)

client.ZeroTrust.Gateway.Lists.Items.List(ctx, listID, params) (\*V4PagePaginationArray\[[GatewayItem](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/lists/{list\_id}/items

#### GatewayLocations

##### [List Zero Trust Gateway locations](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/locations/methods/list)

client.ZeroTrust.Gateway.Locations.List(ctx, params) (\*SinglePage\[[Location](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/locations

##### [Get Zero Trust Gateway location details](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/locations/methods/get)

client.ZeroTrust.Gateway.Locations.Get(ctx, locationID, query) (\*[Location](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/locations/{location\_id}

##### [Create a Zero Trust Gateway location](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/locations/methods/create)

client.ZeroTrust.Gateway.Locations.New(ctx, params) (\*[Location](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/locations

##### [Update a Zero Trust Gateway location](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/locations/methods/update)

client.ZeroTrust.Gateway.Locations.Update(ctx, locationID, params) (\*[Location](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/locations/{location\_id}

##### [Delete a Zero Trust Gateway location](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/locations/methods/delete)

client.ZeroTrust.Gateway.Locations.Delete(ctx, locationID, body) (\*[GatewayLocationDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20GatewayLocationDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/locations/{location\_id}

##### ModelsExpand Collapse

<details>

<summary>

type DOHEndpoint struct{…}

</summary>

Enabled boolOptional

Indicate whether the DOH endpoint is enabled for this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Networks \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)">IPNetwork</a>Optional

Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.

</summary>

Network string

Specify the IP address or IP CIDR.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

RequireToken boolOptional

Specify whether the DOH endpoint requires user identity authentication.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)%20%3E%20(property)%20require_token">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)>)

<details>

<summary>

type DOTEndpoint struct{…}

</summary>

Enabled boolOptional

Indicate whether the DOT endpoint is enabled for this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20dot_endpoint%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Networks \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)">IPNetwork</a>Optional

Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.

</summary>

Network string

Specify the IP address or IP CIDR.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20dot_endpoint%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20dot_endpoint%20%3E%20(schema)>)

<details>

<summary>

type Endpoint struct{…}

Configure the destination endpoints for this location.

</summary>

DOH <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)">DOHEndpoint</a>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)%20%3E%20(property)%20doh">Link to this property</a>

DOT <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20dot_endpoint%20%3E%20(schema)">DOTEndpoint</a>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)%20%3E%20(property)%20dot">Link to this property</a>

IPV4 <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv4_endpoint%20%3E%20(schema)">IPV4Endpoint</a>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)%20%3E%20(property)%20ipv4">Link to this property</a>

IPV6 <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_endpoint%20%3E%20(schema)">IPV6Endpoint</a>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)%20%3E%20(property)%20ipv6">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)>)

<details>

<summary>

type IPNetwork struct{…}

</summary>

Network string

Specify the IP address or IP CIDR.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)>)

<details>

<summary>

type IPV4Endpoint struct{…}

</summary>

Enabled boolOptional

Indicate whether the IPv4 endpoint is enabled for this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv4_endpoint%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv4_endpoint%20%3E%20(schema)>)

<details>

<summary>

type IPV6Endpoint struct{…}

</summary>

Enabled boolOptional

Indicate whether the IPV6 endpoint is enabled for this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_endpoint%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Networks \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_network%20%3E%20(schema)">IPV6Network</a>Optional

Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.

</summary>

Network string

Specify the IPv6 address or IPv6 CIDR.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_network%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_endpoint%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_endpoint%20%3E%20(schema)>)

<details>

<summary>

type IPV6Network struct{…}

</summary>

Network string

Specify the IPv6 address or IPv6 CIDR.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_network%20%3E%20(schema)%20%3E%20(property)%20network">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_network%20%3E%20(schema)>)

<details>

<summary>

type Location struct{…}

</summary>

ID stringOptional

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

ClientDefault boolOptional

Indicate whether this location is the default location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20client_default">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

DNSDestinationIPsID stringOptional

Indicate the identifier of the pair of IPv4 addresses assigned to this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20dns_destination_ips_id">Link to this property</a>

DNSDestinationIPV6BlockID stringOptional

Specify the UUID of the IPv6 block brought to the gateway so that this location’s IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20dns_destination_ipv6_block_id">Link to this property</a>

DOHSubdomain stringOptional

Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20doh_subdomain">Link to this property</a>

ECSSupport boolOptional

Indicate whether the location must resolve EDNS queries.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20ecs_support">Link to this property</a>

Endpoints <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)">Endpoint</a>Optional

Configure the destination endpoints for this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20endpoints">Link to this property</a>

IP stringOptional

Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20ip">Link to this property</a>

IPV4Destination stringOptional

Show the primary destination IPv4 address from the pair identified dns\_destination\_ips\_id. This field read-only.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20ipv4_destination">Link to this property</a>

IPV4DestinationBackup stringOptional

Show the backup destination IPv4 address from the pair identified dns\_destination\_ips\_id. This field read-only.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20ipv4_destination_backup">Link to this property</a>

<details>

<summary>

MaxTTL LocationMaxTTLOptional

Controls how DNS response TTLs are capped for this location relative to the account <code>max_ttl_secs</code> setting. Omitting <code>max_ttl</code> on update resets it to <code>inherit</code>.

</summary>

<details>

<summary>

Mode LocationMaxTTLMode

<code>inherit</code> uses the account <code>max_ttl_secs</code>. <code>override</code> uses this location’s <code>ttl_secs</code>. <code>disabled</code> leaves returned TTLs unchanged.

</summary>

One of the following:

const LocationMaxTTLModeInherit LocationMaxTTLMode = "inherit"

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const LocationMaxTTLModeOverride LocationMaxTTLMode = "override"

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

const LocationMaxTTLModeDisabled LocationMaxTTLMode = "disabled"

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl%20%3E%20(property)%20mode">Link to this property</a>

TTLSecs int64Optional

Location-specific cap on DNS response TTLs, in seconds. Required when <code>mode</code> is <code>override</code>. Must be omitted when <code>mode</code> is <code>inherit</code> or <code>disabled</code>.

maximum36000

minimum60

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl%20%3E%20(property)%20ttl_secs">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20max_ttl">Link to this property</a>

Name stringOptional

Specify the location name.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Networks \[]LocationNetworkOptional

Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.

</summary>

Network string

Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20networks%20%3E%20(items)%20%3E%20(property)%20network">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20networks">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>)

#### GatewayLogging

##### [Get logging settings for the Zero Trust account](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/logging/methods/get)

client.ZeroTrust.Gateway.Logging.Get(ctx, query) (\*[LoggingSetting](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/logging

##### [Update Zero Trust account logging settings](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/logging/methods/update)

client.ZeroTrust.Gateway.Logging.Update(ctx, params) (\*[LoggingSetting](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/logging

##### ModelsExpand Collapse

<details>

<summary>

type LoggingSetting struct{…}

</summary>

RedactPii boolOptional

Indicate whether to redact personally identifiable information from activity logging (PII fields include source IP, user email, user ID, device ID, URL, referrer, and user agent).

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20redact_pii">Link to this property</a>

<details>

<summary>

SettingsByRuleType LoggingSettingSettingsByRuleTypeOptional

Configure logging settings for each rule type.

</summary>

<details>

<summary>

DNS LoggingSettingSettingsByRuleTypeDNSOptional

Configure logging settings for DNS firewall.

</summary>

LogAll boolOptional

Specify whether to log all requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20dns%20%3E%20(property)%20log_all">Link to this property</a>

LogBlocks boolOptional

Specify whether to log only blocking requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20dns%20%3E%20(property)%20log_blocks">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20dns">Link to this property</a>

<details>

<summary>

HTTP LoggingSettingSettingsByRuleTypeHTTPOptional

Configure logging settings for HTTP/HTTPS firewall.

</summary>

LogAll boolOptional

Specify whether to log all requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20http%20%3E%20(property)%20log_all">Link to this property</a>

LogBlocks boolOptional

Specify whether to log only blocking requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20http%20%3E%20(property)%20log_blocks">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20http">Link to this property</a>

<details>

<summary>

L4 LoggingSettingSettingsByRuleTypeL4Optional

Configure logging settings for Network firewall.

</summary>

LogAll boolOptional

Specify whether to log all requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20l4%20%3E%20(property)%20log_all">Link to this property</a>

LogBlocks boolOptional

Specify whether to log only blocking requests to this service.

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20l4%20%3E%20(property)%20log_blocks">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type%20%3E%20(property)%20l4">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)%20%3E%20(property)%20settings_by_rule_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)>)

#### GatewayProxy Endpoints

##### [List proxy endpoints](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/list)

client.ZeroTrust.Gateway.ProxyEndpoints.List(ctx, params) (\*SinglePage\[[ProxyEndpoint](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/proxy\_endpoints

##### [Get a proxy endpoint](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/get)

client.ZeroTrust.Gateway.ProxyEndpoints.Get(ctx, proxyEndpointID, query) (\*[ProxyEndpoint](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/proxy\_endpoints/{proxy\_endpoint\_id}

##### [Create a proxy endpoint](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/create)

client.ZeroTrust.Gateway.ProxyEndpoints.New(ctx, params) (\*[ProxyEndpoint](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/proxy\_endpoints

##### [Update a proxy endpoint](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/edit)

client.ZeroTrust.Gateway.ProxyEndpoints.Edit(ctx, proxyEndpointID, params) (\*[ProxyEndpoint](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>), error)

PATCH/accounts/{account\_id}/gateway/proxy\_endpoints/{proxy\_endpoint\_id}

##### [Delete a proxy endpoint](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/delete)

client.ZeroTrust.Gateway.ProxyEndpoints.Delete(ctx, proxyEndpointID, body) (\*[GatewayProxyEndpointDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20GatewayProxyEndpointDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/proxy\_endpoints/{proxy\_endpoint\_id}

##### ModelsExpand Collapse

type GatewayIPs string

Specify an IPv4 or IPv6 CIDR. Limit IPv6 to a maximum of /109 and IPv4 to a maximum of /25.

[Link to this property](<#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20gateway_ips%20%3E%20(schema)>)

<details>

<summary>

type ProxyEndpoint interface{…}

</summary>

One of the following:

<details>

<summary>

type ProxyEndpointZeroTrustGatewayProxyEndpointIP struct{…}

</summary>

IPs \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20gateway_ips%20%3E%20(schema)">GatewayIPs</a>

Specify the list of CIDRs to restrict ingress connections.

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ips">Link to this property</a>

Name string

Specify the name of the proxy endpoint.

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

ID stringOptional

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_at">Link to this property</a>

Kind ProxyEndpointZeroTrustGatewayProxyEndpointIPKindOptional

The proxy endpoint kind

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind">Link to this property</a>

Subdomain stringOptional

Specify the subdomain to use as the destination in the proxy client.

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20subdomain">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type ProxyEndpointZeroTrustGatewayProxyEndpointIdentity struct{…}

</summary>

Kind ProxyEndpointZeroTrustGatewayProxyEndpointIdentityKind

The proxy endpoint kind

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20kind">Link to this property</a>

Name string

Specify the name of the proxy endpoint.

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

ID stringOptional

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_at">Link to this property</a>

Subdomain stringOptional

Specify the subdomain to use as the destination in the proxy client.

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20subdomain">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)

#### GatewayRules

##### [List Zero Trust Gateway rules](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/list)

client.ZeroTrust.Gateway.Rules.List(ctx, params) (\*SinglePage\[[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/rules

##### [Get Zero Trust Gateway rule details.](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/get)

client.ZeroTrust.Gateway.Rules.Get(ctx, ruleID, query) (\*[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/rules/{rule\_id}

##### [Create a Zero Trust Gateway rule](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/create)

client.ZeroTrust.Gateway.Rules.New(ctx, params) (\*[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/rules

##### [Update a Zero Trust Gateway rule](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/update)

client.ZeroTrust.Gateway.Rules.Update(ctx, ruleID, params) (\*[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/rules/{rule\_id}

##### [Delete a Zero Trust Gateway rule](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/delete)

client.ZeroTrust.Gateway.Rules.Delete(ctx, ruleID, body) (\*[GatewayRuleDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20GatewayRuleDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/rules/{rule\_id}

##### [List Zero Trust Gateway rules inherited from the parent account](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/list_tenant)

client.ZeroTrust.Gateway.Rules.ListTenant(ctx, query) (\*SinglePage\[[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/rules/tenant

##### [Reset the expiration of a Zero Trust Gateway Rule](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/rules/methods/reset_expiration)

client.ZeroTrust.Gateway.Rules.ResetExpiration(ctx, ruleID, body) (\*[GatewayRule](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/rules/{rule\_id}/reset\_expiration

##### ModelsExpand Collapse

<details>

<summary>

type DNSResolverSettingsV4 struct{…}

</summary>

IP string

Specify the IPv4 address of the upstream resolver.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20ip">Link to this property</a>

Port int64Optional

Specify a port number to use for the upstream resolver. Defaults to 53 if unspecified.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

RouteThroughPrivateNetwork boolOptional

Indicate whether to connect to this resolver over a private network. Must set when vnet\_id set.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20route_through_private_network">Link to this property</a>

VnetID stringOptional

Specify an optional virtual network for this resolver. Uses default virtual network id if omitted.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20vnet_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)>)

<details>

<summary>

type DNSResolverSettingsV6 struct{…}

</summary>

IP string

Specify the IPv6 address of the upstream resolver.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20ip">Link to this property</a>

Port int64Optional

Specify a port number to use for the upstream resolver. Defaults to 53 if unspecified.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

RouteThroughPrivateNetwork boolOptional

Indicate whether to connect to this resolver over a private network. Must set when vnet\_id set.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20route_through_private_network">Link to this property</a>

VnetID stringOptional

Specify an optional virtual network for this resolver. Uses default virtual network id if omitted.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20vnet_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)>)

<details>

<summary>

type GatewayFilter string

Specify the protocol or layer to use.

</summary>

One of the following:

const GatewayFilterHTTP <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "http"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const GatewayFilterDNS <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "dns"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const GatewayFilterL4 <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "l4"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const GatewayFilterEgress <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "egress"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

const GatewayFilterDNSResolver <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "dns\_resolver"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)>)

<details>

<summary>

type GatewayRule struct{…}

</summary>

<details>

<summary>

Action GatewayRuleAction

Specify the action to perform when the associated traffic, identity, and device posture expressions either absent or evaluate to <code>true</code>.

</summary>

One of the following:

const GatewayRuleActionOn GatewayRuleAction = "on"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const GatewayRuleActionOff GatewayRuleAction = "off"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

const GatewayRuleActionAllow GatewayRuleAction = "allow"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

const GatewayRuleActionBlock GatewayRuleAction = "block"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%203">Link to this property</a>

const GatewayRuleActionScan GatewayRuleAction = "scan"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%204">Link to this property</a>

const GatewayRuleActionNoscan GatewayRuleAction = "noscan"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%205">Link to this property</a>

const GatewayRuleActionSafesearch GatewayRuleAction = "safesearch"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%206">Link to this property</a>

const GatewayRuleActionYtrestricted GatewayRuleAction = "ytrestricted"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%207">Link to this property</a>

const GatewayRuleActionIsolate GatewayRuleAction = "isolate"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%208">Link to this property</a>

const GatewayRuleActionNoisolate GatewayRuleAction = "noisolate"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%209">Link to this property</a>

const GatewayRuleActionOverride GatewayRuleAction = "override"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2010">Link to this property</a>

const GatewayRuleActionL4Override GatewayRuleAction = "l4\_override"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2011">Link to this property</a>

const GatewayRuleActionEgress GatewayRuleAction = "egress"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2012">Link to this property</a>

const GatewayRuleActionResolve GatewayRuleAction = "resolve"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2013">Link to this property</a>

const GatewayRuleActionQuarantine GatewayRuleAction = "quarantine"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2014">Link to this property</a>

const GatewayRuleActionRedirect GatewayRuleAction = "redirect"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(member)%2015">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

Enabled bool

Specify whether the rule is enabled.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Filters \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a>

Specify the protocol or layer to evaluate the traffic, identity, and device posture expressions. Can only contain a single value.

</summary>

One of the following:

const GatewayFilterHTTP <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "http"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const GatewayFilterDNS <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "dns"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const GatewayFilterL4 <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "l4"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const GatewayFilterEgress <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "egress"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

const GatewayFilterDNSResolver <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a> = "dns\_resolver"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20filters">Link to this property</a>

Name string

Specify the rule name.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

Precedence int64

Set the order of your rules. Lower values indicate higher precedence. At each processing phase, evaluate applicable rules in ascending order of this value. Refer to <a href="http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform">Order of enforcement</a> to manage precedence via Terraform.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20precedence">Link to this property</a>

Traffic string

Specify the wirefilter expression used for traffic matching. The API automatically formats and sanitizes expressions before storing them. To prevent Terraform state drift, use the formatted expression returned in the API response.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20traffic">Link to this property</a>

ID stringOptional

Identify the API resource with a UUID.

formatuuid

maxLength36

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CreatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

DeletedAt TimeOptional

Indicate the date of deletion, if any.

formatdate-time

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20deleted_at">Link to this property</a>

Description stringOptional

Specify the rule description.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

DevicePosture stringOptional

Specify the wirefilter expression used for device posture check. The API automatically formats and sanitizes expressions before storing them. To prevent Terraform state drift, use the formatted expression returned in the API response.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20device_posture">Link to this property</a>

<details>

<summary>

Expiration GatewayRuleExpirationOptional

Defines the expiration time stamp and default duration of a DNS policy. Takes precedence over the policy’s <code>schedule</code> configuration, if any. This does not apply to HTTP or network policies. Settable only for <code>dns</code> rules.

</summary>

ExpiresAt Time

Show the timestamp when the policy expires and stops applying. The value must follow RFC 3339 and include a UTC offset. The system accepts non-zero offsets but converts them to the equivalent UTC+00:00 value and returns timestamps with a trailing Z. Expiration policies ignore client timezones and expire globally at the specified expires\_at time.

formatdate-time

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20expiration%20%3E%20(property)%20expires_at">Link to this property</a>

Duration int64Optional

Defines the default duration a policy active in minutes. Must set in order to use the <code>reset_expiration</code> endpoint on this rule.

minimum5

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20expiration%20%3E%20(property)%20duration">Link to this property</a>

Expired boolOptional

Indicates whether the policy is expired.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20expiration%20%3E%20(property)%20expired">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20expiration">Link to this property</a>

Identity stringOptional

Specify the wirefilter expression used for identity matching. The API automatically formats and sanitizes expressions before storing them. To prevent Terraform state drift, use the formatted expression returned in the API response.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20identity">Link to this property</a>

ReadOnly boolOptional

Indicate that this rule is shared via the Orgs API and read only.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20read_only">Link to this property</a>

RuleSettings <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)">RuleSetting</a>Optional

Defines settings for this rule. Settings apply only to specific rule types and must use compatible selectors. If Terraform detects drift, confirm the setting supports your rule type and check whether the API modifies the value. Use API-returned values in your configuration to prevent drift.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20rule_settings">Link to this property</a>

Schedule <a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)">Schedule</a>Optional

Defines the schedule for activating DNS policies. Settable only for <code>dns</code> and <code>dns_resolver</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20schedule">Link to this property</a>

Sharable boolOptional

Indicate that this rule is sharable via the Orgs API.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20sharable">Link to this property</a>

SourceAccount stringOptional

Provide the account tag of the account that created the rule.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20source_account">Link to this property</a>

UpdatedAt TimeOptional

formatdate-time

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

Version int64Optional

Indicate the version number of the rule(read-only).

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

WarningStatus stringOptional

Indicate a warning for a misconfigured rule, if any.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)%20%3E%20(property)%20warning_status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>)

<details>

<summary>

type RuleSetting struct{…}

Defines settings for this rule. Settings apply only to specific rule types and must use compatible selectors. If Terraform detects drift, confirm the setting supports your rule type and check whether the API modifies the value. Use API-returned values in your configuration to prevent drift.

</summary>

AddHeaders map\[string, \[]string]Optional

Add custom headers to allowed requests as key-value pairs. Use header names as keys that map to arrays of header values. Header values may contain <code>@{selector.name}</code> variable references that are interpolated at the edge. Use <code>@@{</code> to escape a literal <code>@{</code>. A maximum of 20 header operations (add + set + delete) is allowed per policy. Each header name may not exceed 256 bytes and each header value may not exceed 4 KB. Settable only for <code>http</code> rules with the action set to <code>allow</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20add_headers">Link to this property</a>

AllowChildBypass boolOptional

Set to enable MSP children to bypass this rule. Only parent MSP accounts can set this. this rule. Settable for all types of rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20allow_child_bypass">Link to this property</a>

<details>

<summary>

AuditSSH RuleSettingAuditSSHOptional

Define the settings for the Audit SSH action. Settable only for <code>l4</code> rules with <code>audit_ssh</code> action.

</summary>

CommandLogging boolOptional

Enable SSH command logging.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20audit_ssh%20%3E%20(property)%20command_logging">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20audit_ssh">Link to this property</a>

<details>

<summary>

BISOAdminControls RuleSettingBISOAdminControlsOptional

Configure browser isolation behavior. Settable only for <code>http</code> rules with the action set to <code>isolate</code>.

</summary>

<details>

<summary>

Copy RuleSettingBISOAdminControlsCopyOptional

Configure copy behavior. If set to remote\_only, users cannot copy isolated content from the remote browser to the local clipboard. If this field is absent, copying remains enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsCopyEnabled RuleSettingBISOAdminControlsCopy = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20copy%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsCopyDisabled RuleSettingBISOAdminControlsCopy = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20copy%20%3E%20(member)%201">Link to this property</a>

const RuleSettingBISOAdminControlsCopyRemoteOnly RuleSettingBISOAdminControlsCopy = "remote\_only"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20copy%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20copy">Link to this property</a>

DCP boolOptional

Set to false to enable copy-pasting. Only applies when <code>version == "v1"</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20dcp">Link to this property</a>

DD boolOptional

Set to false to enable downloading. Only applies when <code>version == "v1"</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20dd">Link to this property</a>

DK boolOptional

Set to false to enable keyboard usage. Only applies when <code>version == "v1"</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20dk">Link to this property</a>

<details>

<summary>

Download RuleSettingBISOAdminControlsDownloadOptional

Configure download behavior. When set to remote\_only, users can view downloads but cannot save them. If this field is absent, downloading remains enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsDownloadEnabled RuleSettingBISOAdminControlsDownload = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20download%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsDownloadDisabled RuleSettingBISOAdminControlsDownload = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20download%20%3E%20(member)%201">Link to this property</a>

const RuleSettingBISOAdminControlsDownloadRemoteOnly RuleSettingBISOAdminControlsDownload = "remote\_only"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20download%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20download">Link to this property</a>

DP boolOptional

Set to false to enable printing. Only applies when <code>version == "v1"</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20dp">Link to this property</a>

DU boolOptional

Set to false to enable uploading. Only applies when <code>version == "v1"</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20du">Link to this property</a>

<details>

<summary>

Keyboard RuleSettingBISOAdminControlsKeyboardOptional

Configure keyboard usage behavior. If this field is absent, keyboard usage remains enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsKeyboardEnabled RuleSettingBISOAdminControlsKeyboard = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20keyboard%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsKeyboardDisabled RuleSettingBISOAdminControlsKeyboard = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20keyboard%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20keyboard">Link to this property</a>

<details>

<summary>

Paste RuleSettingBISOAdminControlsPasteOptional

Configure paste behavior. If set to remote\_only, users cannot paste content from the local clipboard into isolated pages. If this field is absent, pasting remains enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsPasteEnabled RuleSettingBISOAdminControlsPaste = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20paste%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsPasteDisabled RuleSettingBISOAdminControlsPaste = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20paste%20%3E%20(member)%201">Link to this property</a>

const RuleSettingBISOAdminControlsPasteRemoteOnly RuleSettingBISOAdminControlsPaste = "remote\_only"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20paste%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20paste">Link to this property</a>

<details>

<summary>

Printing RuleSettingBISOAdminControlsPrintingOptional

Configure print behavior. Default, Printing is enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsPrintingEnabled RuleSettingBISOAdminControlsPrinting = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20printing%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsPrintingDisabled RuleSettingBISOAdminControlsPrinting = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20printing%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20printing">Link to this property</a>

<details>

<summary>

Upload RuleSettingBISOAdminControlsUploadOptional

Configure upload behavior. If this field is absent, uploading remains enabled. Applies only when version == “v2”.

</summary>

One of the following:

const RuleSettingBISOAdminControlsUploadEnabled RuleSettingBISOAdminControlsUpload = "enabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20upload%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsUploadDisabled RuleSettingBISOAdminControlsUpload = "disabled"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20upload%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20upload">Link to this property</a>

<details>

<summary>

Version RuleSettingBISOAdminControlsVersionOptional

Indicate which version of the browser isolation controls should apply.

</summary>

One of the following:

const RuleSettingBISOAdminControlsVersionV1 RuleSettingBISOAdminControlsVersion = "v1"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20version%20%3E%20(member)%200">Link to this property</a>

const RuleSettingBISOAdminControlsVersionV2 RuleSettingBISOAdminControlsVersion = "v2"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20version%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20version">Link to this property</a>

WmID stringOptional

Specify the watermark ID (UUID) to apply to the isolated browser session. When present, enables watermark rendering in the isolated browser.

formatuuid

maxLength36

minLength1

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls%20%3E%20(property)%20wm_id">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20biso_admin_controls">Link to this property</a>

<details>

<summary>

BlockPage RuleSettingBlockPageOptional

Configure custom block page settings. If missing or null, use the account settings. Settable only for <code>http</code> rules with the action set to <code>block</code>.

</summary>

TargetURI string

Specify the URI to which the user is redirected.

formaturi

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20block_page%20%3E%20(property)%20target_uri">Link to this property</a>

IncludeContext boolOptional

Specify whether to pass the context information as query parameters.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20block_page%20%3E%20(property)%20include_context">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20block_page">Link to this property</a>

BlockPageEnabled boolOptional

Enable the custom block page. Settable only for <code>dns</code> rules with action <code>block</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20block_page_enabled">Link to this property</a>

BlockReason stringOptional

Explain why the rule blocks the request. The custom block page shows this text (if enabled). Settable only for <code>dns</code>, <code>l4</code>, and <code>http</code> rules when the action set to <code>block</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20block_reason">Link to this property</a>

BypassParentRule boolOptional

Set to enable MSP accounts to bypass their parent’s rules. Only MSP child accounts can set this. Settable for all types of rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20bypass_parent_rule">Link to this property</a>

<details>

<summary>

CheckSession RuleSettingCheckSessionOptional

Configure session check behavior. Settable only for <code>l4</code> and <code>http</code> rules with the action set to <code>allow</code>.

</summary>

Duration stringOptional

Sets the required session freshness threshold. The API returns a normalized version of this value.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20check_session%20%3E%20(property)%20duration">Link to this property</a>

Enforce boolOptional

Enable session enforcement.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20check_session%20%3E%20(property)%20enforce">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20check_session">Link to this property</a>

DeleteHeaders \[]stringOptional

Remove headers from allowed requests by name. A maximum of 20 header operations (add + set + delete) is allowed per policy. Each header name may not exceed 256 bytes. Settable only for <code>http</code> rules with the action set to <code>allow</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20delete_headers">Link to this property</a>

<details>

<summary>

DNSResolvers RuleSettingDNSResolversOptional

Configure custom resolvers to route queries that match the resolver policy. Unused with ‘resolve\_dns\_through\_cloudflare’ or ‘resolve\_dns\_internally’ settings. DNS queries get routed to the address closest to their origin. Only valid when a rule’s action set to ‘resolve’. Settable only for <code>dns_resolver</code> rules.

</summary>

<details>

<summary>

IPV4 \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)">DNSResolverSettingsV4</a>Optional

</summary>

IP string

Specify the IPv4 address of the upstream resolver.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20ip">Link to this property</a>

Port int64Optional

Specify a port number to use for the upstream resolver. Defaults to 53 if unspecified.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

RouteThroughPrivateNetwork boolOptional

Indicate whether to connect to this resolver over a private network. Must set when vnet\_id set.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20route_through_private_network">Link to this property</a>

VnetID stringOptional

Specify an optional virtual network for this resolver. Uses default virtual network id if omitted.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)%20%3E%20(property)%20vnet_id">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20dns_resolvers%20%3E%20(property)%20ipv4">Link to this property</a>

<details>

<summary>

IPV6 \[]<a href="https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)">DNSResolverSettingsV6</a>Optional

</summary>

IP string

Specify the IPv6 address of the upstream resolver.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20ip">Link to this property</a>

Port int64Optional

Specify a port number to use for the upstream resolver. Defaults to 53 if unspecified.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20port">Link to this property</a>

RouteThroughPrivateNetwork boolOptional

Indicate whether to connect to this resolver over a private network. Must set when vnet\_id set.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20route_through_private_network">Link to this property</a>

VnetID stringOptional

Specify an optional virtual network for this resolver. Uses default virtual network id if omitted.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)%20%3E%20(property)%20vnet_id">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20dns_resolvers%20%3E%20(property)%20ipv6">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20dns_resolvers">Link to this property</a>

<details>

<summary>

Egress RuleSettingEgressOptional

Configure how Gateway Proxy traffic egresses. You can enable this setting for rules with Egress actions and filters, or omit it to indicate local egress via WARP IPs. Settable only for <code>egress</code> rules.

</summary>

IPV4 stringOptional

Specify the IPv4 address to use for egress.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20egress%20%3E%20(property)%20ipv4">Link to this property</a>

IPV4Fallback stringOptional

Specify the fallback IPv4 address to use for egress when the primary IPv4 fails. Set ‘0.0.0.0’ to indicate local egress via WARP IPs.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20egress%20%3E%20(property)%20ipv4_fallback">Link to this property</a>

IPV6 stringOptional

Specify the IPv6 range to use for egress.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20egress%20%3E%20(property)%20ipv6">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20egress">Link to this property</a>

<details>

<summary>

ForensicCopy RuleSettingForensicCopyOptional

Configure whether a copy of the HTTP request will be sent to storage when the rule matches.

</summary>

Enabled boolOptional

Enable sending the copy to storage.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20forensic_copy%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20forensic_copy">Link to this property</a>

IgnoreCNAMECategoryMatches boolOptional

Ignore category matches at CNAME domains in a response. When off, evaluate categories in this rule against all CNAME domain categories in the response. Settable only for <code>dns</code> and <code>dns_resolver</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20ignore_cname_category_matches">Link to this property</a>

InsecureDisableDNSSECValidation boolOptional

Specify whether to disable DNSSEC validation (for Allow actions) \[INSECURE]. Settable only for <code>dns</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20insecure_disable_dnssec_validation">Link to this property</a>

IPCategories boolOptional

Enable IPs in DNS resolver category blocks. The system blocks only domain name categories unless you enable this setting. Settable only for <code>dns</code> and <code>dns_resolver</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20ip_categories">Link to this property</a>

IPIndicatorFeeds boolOptional

Indicates whether to include IPs in DNS resolver indicator feed blocks. Default, indicator feeds block only domain names. Settable only for <code>dns</code> and <code>dns_resolver</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20ip_indicator_feeds">Link to this property</a>

<details>

<summary>

L4override RuleSettingL4overrideOptional

Send matching traffic to the supplied destination IP address and port. Settable only for <code>l4</code> rules with the action set to <code>l4_override</code>.

</summary>

IP stringOptional

Defines the IPv4 or IPv6 address.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20l4override%20%3E%20(property)%20ip">Link to this property</a>

Port int64Optional

Defines a port number to use for TCP/UDP overrides.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20l4override%20%3E%20(property)%20port">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20l4override">Link to this property</a>

<details>

<summary>

NotificationSettings RuleSettingNotificationSettingsOptional

Configure a notification to display on the user’s device when this rule matched. Settable for all types of rules with the action set to <code>block</code>.

</summary>

Enabled boolOptional

Enable notification.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20notification_settings%20%3E%20(property)%20enabled">Link to this property</a>

IncludeContext boolOptional

Indicates whether to pass the context information as query parameters.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20notification_settings%20%3E%20(property)%20include_context">Link to this property</a>

Msg stringOptional

Customize the message shown in the notification.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20notification_settings%20%3E%20(property)%20msg">Link to this property</a>

SupportURL stringOptional

Defines an optional URL to direct users to additional information. If unset, the notification opens a block page.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20notification_settings%20%3E%20(property)%20support_url">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20notification_settings">Link to this property</a>

OverrideHost stringOptional

Defines a hostname for override, for the matching DNS queries. Settable only for <code>dns</code> rules with the action set to <code>override</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20override_host">Link to this property</a>

OverrideIPs \[]stringOptional

Defines a an IP or set of IPs for overriding matched DNS queries. Settable only for <code>dns</code> rules with the action set to <code>override</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20override_ips">Link to this property</a>

<details>

<summary>

PayloadLog RuleSettingPayloadLogOptional

Configure DLP payload logging. Settable only for <code>http</code> rules.

</summary>

Enabled boolOptional

Enable DLP payload logging for this rule.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20payload_log%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20payload_log">Link to this property</a>

<details>

<summary>

Quarantine RuleSettingQuarantineOptional

Configure settings that apply to quarantine rules. Settable only for <code>http</code> rules.

</summary>

<details>

<summary>

FileTypes \[]RuleSettingQuarantineFileTypeOptional

Specify the types of files to sandbox.

</summary>

One of the following:

const RuleSettingQuarantineFileTypeExe RuleSettingQuarantineFileType = "exe"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const RuleSettingQuarantineFileTypePDF RuleSettingQuarantineFileType = "pdf"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const RuleSettingQuarantineFileTypeDoc RuleSettingQuarantineFileType = "doc"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const RuleSettingQuarantineFileTypeDocm RuleSettingQuarantineFileType = "docm"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const RuleSettingQuarantineFileTypeDocx RuleSettingQuarantineFileType = "docx"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const RuleSettingQuarantineFileTypeRtf RuleSettingQuarantineFileType = "rtf"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

const RuleSettingQuarantineFileTypePpt RuleSettingQuarantineFileType = "ppt"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

const RuleSettingQuarantineFileTypePptx RuleSettingQuarantineFileType = "pptx"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

const RuleSettingQuarantineFileTypeXls RuleSettingQuarantineFileType = "xls"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

const RuleSettingQuarantineFileTypeXlsm RuleSettingQuarantineFileType = "xlsm"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

const RuleSettingQuarantineFileTypeXlsx RuleSettingQuarantineFileType = "xlsx"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

const RuleSettingQuarantineFileTypeZip RuleSettingQuarantineFileType = "zip"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

const RuleSettingQuarantineFileTypeRar RuleSettingQuarantineFileType = "rar"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types%20%3E%20(items)%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine%20%3E%20(property)%20file_types">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20quarantine">Link to this property</a>

<details>

<summary>

Redirect RuleSettingRedirectOptional

Apply settings to redirect rules. Settable only for <code>http</code> rules with the action set to <code>redirect</code>.

</summary>

TargetURI string

Specify the URI to which the user is redirected.

formaturi

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20redirect%20%3E%20(property)%20target_uri">Link to this property</a>

IncludeContext boolOptional

Specify whether to pass the context information as query parameters.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20redirect%20%3E%20(property)%20include_context">Link to this property</a>

PreservePathAndQuery boolOptional

Specify whether to append the path and query parameters from the original request to target\_uri.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20redirect%20%3E%20(property)%20preserve_path_and_query">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20redirect">Link to this property</a>

<details>

<summary>

ResolveDNSInternally RuleSettingResolveDNSInternallyOptional

Configure to forward the query to the internal DNS service, passing the specified ‘view\_id’ as input. Not used when ‘dns\_resolvers’ is specified or ‘resolve\_dns\_through\_cloudflare’ is set. Only valid when a rule’s action set to ‘resolve’. Settable only for <code>dns_resolver</code> rules.

</summary>

<details>

<summary>

Fallback RuleSettingResolveDNSInternallyFallbackOptional

Specify the fallback behavior to apply when the internal DNS response code differs from ‘NOERROR’ or when the response data contains only CNAME records for ‘A’ or ‘AAAA’ queries.

</summary>

One of the following:

const RuleSettingResolveDNSInternallyFallbackNone RuleSettingResolveDNSInternallyFallback = "none"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_internally%20%3E%20(property)%20fallback%20%3E%20(member)%200">Link to this property</a>

const RuleSettingResolveDNSInternallyFallbackPublicDNS RuleSettingResolveDNSInternallyFallback = "public\_dns"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_internally%20%3E%20(property)%20fallback%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_internally%20%3E%20(property)%20fallback">Link to this property</a>

ViewID stringOptional

Specify the internal DNS view identifier to pass to the internal DNS service.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_internally%20%3E%20(property)%20view_id">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_internally">Link to this property</a>

ResolveDNSThroughCloudflare boolOptional

Enable to send queries that match the policy to Cloudflare’s default 1.1.1.1 DNS resolver. Cannot set when ‘dns\_resolvers’ specified or ‘resolve\_dns\_internally’ is set. Only valid when a rule’s action set to ‘resolve’. Settable only for <code>dns_resolver</code> rules.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20resolve_dns_through_cloudflare">Link to this property</a>

SetHeaders map\[string, \[]string]Optional

Replace existing headers on allowed requests with the specified key-value pairs. If a header does not exist, it is added. Header values may contain <code>@{selector.name}</code> variable references that are interpolated at the edge. Use <code>@@{</code> to escape a literal <code>@{</code>. A maximum of 20 header operations (add + set + delete) is allowed per policy. Each header name may not exceed 256 bytes and each header value may not exceed 4 KB. Settable only for <code>http</code> rules with the action set to <code>allow</code>.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20set_headers">Link to this property</a>

<details>

<summary>

UntrustedCERT RuleSettingUntrustedCERTOptional

Configure behavior when an upstream certificate is invalid or an SSL error occurs. Settable only for <code>http</code> rules with the action set to <code>allow</code>.

</summary>

<details>

<summary>

Action RuleSettingUntrustedCERTActionOptional

Defines the action performed when an untrusted certificate seen. The default action an error with HTTP code 526.

</summary>

One of the following:

const RuleSettingUntrustedCERTActionPassThrough RuleSettingUntrustedCERTAction = "pass\_through"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20untrusted_cert%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const RuleSettingUntrustedCERTActionBlock RuleSettingUntrustedCERTAction = "block"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20untrusted_cert%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

const RuleSettingUntrustedCERTActionError RuleSettingUntrustedCERTAction = "error"

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20untrusted_cert%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20untrusted_cert%20%3E%20(property)%20action">Link to this property</a>

</details>

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)%20%3E%20(property)%20untrusted_cert">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)>)

<details>

<summary>

type Schedule struct{…}

Defines the schedule for activating DNS policies. Settable only for <code>dns</code> and <code>dns_resolver</code> rules.

</summary>

Fri stringOptional

Specify the time intervals when the rule is active on Fridays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Fridays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20fri">Link to this property</a>

Mon stringOptional

Specify the time intervals when the rule is active on Mondays, in the increasing order from 00:00-24:00(capped at maximum of 6 time splits). If this parameter omitted, the rule is deactivated on Mondays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20mon">Link to this property</a>

Sat stringOptional

Specify the time intervals when the rule is active on Saturdays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Saturdays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20sat">Link to this property</a>

Sun stringOptional

Specify the time intervals when the rule is active on Sundays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Sundays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20sun">Link to this property</a>

Thu stringOptional

Specify the time intervals when the rule is active on Thursdays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Thursdays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20thu">Link to this property</a>

TimeZone stringOptional

Specify the time zone for rule evaluation. When a <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List">valid time zone city name</a> is provided, Gateway always uses the current time for that time zone. When this parameter is omitted, Gateway uses the time zone determined from the user’s IP address. Colo time zone is used when the user’s IP address does not resolve to a location.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20time_zone">Link to this property</a>

Tue stringOptional

Specify the time intervals when the rule is active on Tuesdays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Tuesdays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20tue">Link to this property</a>

Wed stringOptional

Specify the time intervals when the rule is active on Wednesdays, in the increasing order from 00:00-24:00. If this parameter omitted, the rule is deactivated on Wednesdays. API returns a formatted version of this string, which may cause Terraform drift if a unformatted value is used.

<a href="#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)%20%3E%20(property)%20wed">Link to this property</a>

</details>

[Link to this property](<#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)>)

#### GatewayCertificates

##### [List Zero Trust certificates](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/list)

client.ZeroTrust.Gateway.Certificates.List(ctx, query) (\*SinglePage\[[GatewayCertificateListResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/certificates

##### [Get Zero Trust certificate details](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/get)

client.ZeroTrust.Gateway.Certificates.Get(ctx, certificateID, query) (\*[GatewayCertificateGetResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/certificates/{certificate\_id}

##### [Create Zero Trust certificate](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/create)

client.ZeroTrust.Gateway.Certificates.New(ctx, params) (\*[GatewayCertificateNewResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/certificates

##### [Delete Zero Trust certificate](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/delete)

client.ZeroTrust.Gateway.Certificates.Delete(ctx, certificateID, body) (\*[GatewayCertificateDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/certificates/{certificate\_id}

##### [Activate a Zero Trust certificate](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/activate)

client.ZeroTrust.Gateway.Certificates.Activate(ctx, certificateID, body) (\*[GatewayCertificateActivateResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateActivateResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/certificates/{certificate\_id}/activate

##### [Deactivate a Zero Trust certificate](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/certificates/methods/deactivate)

client.ZeroTrust.Gateway.Certificates.Deactivate(ctx, certificateID, body) (\*[GatewayCertificateDeactivateResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20GatewayCertificateDeactivateResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/certificates/{certificate\_id}/deactivate

#### GatewayPacfiles

##### [List PAC files](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/pacfiles/methods/list)

client.ZeroTrust.Gateway.Pacfiles.List(ctx, params) (\*V4PagePaginationArray\[[GatewayPacfileListResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20GatewayPacfileListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/gateway/pacfiles

##### [Get a PAC file](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/pacfiles/methods/get)

client.ZeroTrust.Gateway.Pacfiles.Get(ctx, pacfileID, query) (\*[GatewayPacfileGetResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20GatewayPacfileGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/gateway/pacfiles/{pacfile\_id}

##### [Create a PAC file](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/pacfiles/methods/create)

client.ZeroTrust.Gateway.Pacfiles.New(ctx, params) (\*[GatewayPacfileNewResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20GatewayPacfileNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/gateway/pacfiles

##### [Update a Zero Trust Gateway PAC file](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/pacfiles/methods/update)

client.ZeroTrust.Gateway.Pacfiles.Update(ctx, pacfileID, params) (\*[GatewayPacfileUpdateResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20GatewayPacfileUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/gateway/pacfiles/{pacfile\_id}

##### [Delete a PAC file](https://developers.cloudflare.com/api/go/resources/zero_trust/subresources/gateway/subresources/pacfiles/methods/delete)

client.ZeroTrust.Gateway.Pacfiles.Delete(ctx, pacfileID, body) (\*[GatewayPacfileDeleteResponse](<https://developers.cloudflare.com/api/go/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20GatewayPacfileDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/gateway/pacfiles/{pacfile\_id}