---
title: Gateway
---

[Skip to content](#_top)

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

[Zero Trust](https://developers.cloudflare.com/api/typescript/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/typescript/resources/zero_trust/subresources/gateway/methods/list)

client.zeroTrust.gateway.list(GatewayListParams {account\_id } params, RequestOptionsoptions?): [GatewayListResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway%20%3E%20(model)%20gateway_list_response%20%3E%20(schema)>) {id, gateway\_tag, provider\_name }

GET/accounts/{account\_id}/gateway

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

client.zeroTrust.gateway.create(GatewayCreateParams {account\_id } params, RequestOptionsoptions?): [GatewayCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway%20%3E%20(model)%20gateway_create_response%20%3E%20(schema)>) {id, gateway\_tag, provider\_name }

POST/accounts/{account\_id}/gateway

##### ModelsExpand Collapse

<details>

<summary>

GatewayListResponse {id, gateway\_tag, provider\_name }

</summary>

id?: string

Specify the Cloudflare account ID.

maxLength32

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

gateway\_tag?: string

Specify the gateway internal ID.

maxLength32

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

provider\_name?: string

Specify the provider name (usually Cloudflare).

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

</details>

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

<details>

<summary>

GatewayCreateResponse {id, gateway\_tag, provider\_name }

</summary>

id?: string

Specify the Cloudflare account ID.

maxLength32

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

gateway\_tag?: string

Specify the gateway internal ID.

maxLength32

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

provider\_name?: string

Specify the provider name (usually Cloudflare).

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

</details>

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

#### GatewayAudit SSH Settings

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

client.zeroTrust.gateway.auditSSHSettings.get(AuditSSHSettingGetParams {account\_id } params, RequestOptionsoptions?): [GatewaySettings](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>) {created\_at, public\_key, seed\_id, updated\_at }

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

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

client.zeroTrust.gateway.auditSSHSettings.update(AuditSSHSettingUpdateParams {account\_id, public\_key } params, RequestOptionsoptions?): [GatewaySettings](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>) {created\_at, public\_key, seed\_id, updated\_at }

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

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

client.zeroTrust.gateway.auditSSHSettings.rotateSeed(AuditSSHSettingRotateSeedParams {account\_id } params, RequestOptionsoptions?): [GatewaySettings](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.audit_ssh_settings%20%3E%20(model)%20gateway_settings%20%3E%20(schema)>) {created\_at, public\_key, seed\_id, updated\_at }

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

##### ModelsExpand Collapse

<details>

<summary>

GatewaySettings {created\_at, public\_key, seed\_id, updated\_at }

</summary>

created\_at?: string

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>

public\_key?: string

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>

seed\_id?: string

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>

updated\_at?: string

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/typescript/resources/zero_trust/subresources/gateway/subresources/categories/methods/list)

client.zeroTrust.gateway.categories.list(CategoryListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [Category](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.categories%20%3E%20(model)%20category%20%3E%20(schema)>) {id, beta, class, 3 more } >

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

##### ModelsExpand Collapse

<details>

<summary>

Category {id, beta, class, 3 more }

</summary>

id?: number

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?: boolean

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?: "free"| "premium"| "blocked"| 2 more

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:

"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>

"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>

"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>

"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>

"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?: string

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?: string

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?: Array&lt;Subcategory&gt;

Provide all subcategories for this category.

</summary>

id?: number

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?: boolean

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?: "free"| "premium"| "blocked"| 2 more

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:

"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>

"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>

"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>

"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>

"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?: string

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?: string

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/typescript/resources/zero_trust/subresources/gateway/subresources/app_types/methods/list)

client.zeroTrust.gateway.appTypes.list(AppTypeListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [AppType](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.app_types%20%3E%20(model)%20app_type%20%3E%20(schema)>)>

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

##### ModelsExpand Collapse

<details>

<summary>

AppType = ZeroTrustGatewayApplication {id, application\_type\_id, created\_at, name } | ZeroTrustGatewayApplicationType {id, created\_at, description, name }

</summary>

One of the following:

<details>

<summary>

ZeroTrustGatewayApplication {id, application\_type\_id, created\_at, name }

</summary>

id?: number

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>

application\_type\_id?: number

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>

created\_at?: string

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?: string

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>

ZeroTrustGatewayApplicationType {id, created\_at, description, name }

</summary>

id?: number

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>

created\_at?: string

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?: string

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?: string

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/typescript/resources/zero_trust/subresources/gateway/subresources/configurations/methods/get)

client.zeroTrust.gateway.configurations.get(ConfigurationGetParams {account\_id } params, RequestOptionsoptions?): [ConfigurationGetResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_get_response%20%3E%20(schema)>) {created\_at, settings, updated\_at }

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

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

client.zeroTrust.gateway.configurations.update(ConfigurationUpdateParams {account\_id, settings } params, RequestOptionsoptions?): [ConfigurationUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_update_response%20%3E%20(schema)>) {created\_at, settings, updated\_at }

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

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

client.zeroTrust.gateway.configurations.edit(ConfigurationEditParams {account\_id, settings } params, RequestOptionsoptions?): [ConfigurationEditResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_edit_response%20%3E%20(schema)>) {created\_at, settings, updated\_at }

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

##### ModelsExpand Collapse

<details>

<summary>

ActivityLogSettings {enabled }

Specify activity log settings.

</summary>

enabled?: boolean| null

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>

AntiVirusSettings {enabled\_download\_phase, enabled\_upload\_phase, fail\_closed, notification\_settings }

Specify anti-virus settings.

</summary>

enabled\_download\_phase?: boolean| null

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>

enabled\_upload\_phase?: boolean| null

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>

fail\_closed?: boolean| null

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>

notification\_settings?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20notification_settings%20%3E%20(schema)">NotificationSettings</a> {enabled, include\_context, msg, support\_url } | null

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>

BlockPageSettings {background\_color, enabled, footer\_text, 12 more }

Specify block page layout settings.

</summary>

background\_color?: string

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?: boolean| null

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>

footer\_text?: string

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>

header\_text?: string

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>

include\_context?: boolean

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>

logo\_path?: string

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>

mailto\_address?: string

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>

mailto\_subject?: string

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?: ""| "customized\_block\_page"| "redirect\_uri"

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

</summary>

One of the following:

""

<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>

"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>

"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?: string

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>

read\_only?: boolean| null

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>

source\_account?: string| null

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>

suppress\_footer?: boolean

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>

target\_uri?: string

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?: number| null

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>

BodyScanningSettings {inspection\_mode }

Specify the DLP inspection mode.

</summary>

<details>

<summary>

inspection\_mode?: "deep"| "shallow"

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

</summary>

One of the following:

"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>

"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>

BrowserIsolationSettings {non\_identity\_enabled, url\_browser\_isolation\_enabled }

Specify Clientless Browser Isolation settings.

</summary>

non\_identity\_enabled?: boolean

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>

url\_browser\_isolation\_enabled?: boolean

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>

CustomCertificateSettings {enabled, id, binding\_status, updated\_at }

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

</summary>

enabled: boolean| null

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?: string

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>

binding\_status?: string

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>

updated\_at?: string

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>

ExtendedEmailMatching {enabled, read\_only, source\_account, version }

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?: boolean| null

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>

read\_only?: boolean

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>

source\_account?: string

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?: number

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>

FipsSettings {tls }

Specify FIPS settings.

</summary>

tls?: boolean

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>

GatewayConfigurationSettings {activity\_log, antivirus, block\_page, 12 more }

Specify account settings.

</summary>

activity\_log?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20activity_log_settings%20%3E%20(schema)">ActivityLogSettings</a> {enabled } | null

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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20anti_virus_settings%20%3E%20(schema)">AntiVirusSettings</a> {enabled\_download\_phase, enabled\_upload\_phase, fail\_closed, notification\_settings } | null

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>

block\_page?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20block_page_settings%20%3E%20(schema)">BlockPageSettings</a> {background\_color, enabled, footer\_text, 12 more } | null

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>

body\_scanning?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20body_scanning_settings%20%3E%20(schema)">BodyScanningSettings</a> {inspection\_mode } | null

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>

browser\_isolation?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20browser_isolation_settings%20%3E%20(schema)">BrowserIsolationSettings</a> {non\_identity\_enabled, url\_browser\_isolation\_enabled } | null

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?: Certificate| null

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>

Deprecatedcustom\_certificate?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)">CustomCertificateSettings</a> {enabled, id, binding\_status, updated\_at } | null

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>

extended\_email\_matching?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20extended_email_matching%20%3E%20(schema)">ExtendedEmailMatching</a> {enabled, read\_only, source\_account, version } | null

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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20fips_settings%20%3E%20(schema)">FipsSettings</a> {tls } | null

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>

host\_selector?: HostSelector| null

Enable host selection in egress policies.

</summary>

enabled?: boolean| null

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?: Inspection| null

Define the proxy inspection mode.

</summary>

<details>

<summary>

mode?: "static"| "dynamic"

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:

"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>

"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>

max\_ttl\_secs?: number| null

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>

protocol\_detection?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20protocol_detection%20%3E%20(schema)">ProtocolDetection</a> {enabled } | null

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?: Sandbox| null

Specify whether to enable the sandbox.

</summary>

enabled?: boolean| null

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>

fallback\_action?: "allow"| "block"

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

</summary>

One of the following:

"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>

"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>

tls\_decrypt?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20tls_settings%20%3E%20(schema)">TLSSettings</a> {enabled } | null

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>

NotificationSettings {enabled, include\_context, msg, support\_url }

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

</summary>

enabled?: boolean

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>

include\_context?: boolean

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?: string

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>

support\_url?: string

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>

ProtocolDetection {enabled }

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

</summary>

enabled?: boolean| null

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>

TLSSettings {enabled }

Specify whether to inspect encrypted HTTP traffic.

</summary>

enabled?: boolean

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)>)

<details>

<summary>

ConfigurationGetResponse {created\_at, settings, updated\_at }

Specify account settings.

</summary>

created\_at?: string

formatdate-time

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

settings?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)">GatewayConfigurationSettings</a> {activity\_log, antivirus, block\_page, 12 more }

Specify account settings.

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

updated\_at?: string

formatdate-time

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_get_response%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)%20configuration_get_response%20%3E%20(schema)>)

<details>

<summary>

ConfigurationUpdateResponse {created\_at, settings, updated\_at }

Specify account settings.

</summary>

created\_at?: string

formatdate-time

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

settings?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)">GatewayConfigurationSettings</a> {activity\_log, antivirus, block\_page, 12 more }

Specify account settings.

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

updated\_at?: string

formatdate-time

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_update_response%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)%20configuration_update_response%20%3E%20(schema)>)

<details>

<summary>

ConfigurationEditResponse {created\_at, settings, updated\_at }

Specify account settings.

</summary>

created\_at?: string

formatdate-time

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

settings?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20gateway_configuration_settings%20%3E%20(schema)">GatewayConfigurationSettings</a> {activity\_log, antivirus, block\_page, 12 more }

Specify account settings.

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

updated\_at?: string

formatdate-time

<a href="#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20configuration_edit_response%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)%20configuration_edit_response%20%3E%20(schema)>)

#### GatewayConfigurationsCustom Certificate

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

Deprecated

client.zeroTrust.gateway.configurations.customCertificate.get(CustomCertificateGetParams {account\_id } params, RequestOptionsoptions?): [CustomCertificateSettings](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.configurations%20%3E%20(model)%20custom_certificate_settings%20%3E%20(schema)>) {enabled, id, binding\_status, updated\_at } | null

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

#### GatewayLists

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

client.zeroTrust.gateway.lists.list(ListListParams {account\_id, direction, filter, 3 more } params, RequestOptionsoptions?): SinglePage< [GatewayList](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>) {id, count, created\_at, 5 more } >

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

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

client.zeroTrust.gateway.lists.get(stringlistID, ListGetParams {account\_id } params, RequestOptionsoptions?): [GatewayList](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>) {id, count, created\_at, 5 more }

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

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

client.zeroTrust.gateway.lists.create(ListCreateParams {account\_id, name, type, 2 more } params, RequestOptionsoptions?): [ListCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20list_create_response%20%3E%20(schema)>) {id, created\_at, description, 4 more }

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

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

client.zeroTrust.gateway.lists.update(stringlistID, ListUpdateParams {account\_id, name, description, items } params, RequestOptionsoptions?): [GatewayList](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>) {id, count, created\_at, 5 more }

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

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

client.zeroTrust.gateway.lists.edit(stringlistID, ListEditParams {account\_id, append, remove } params, RequestOptionsoptions?): [GatewayList](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_list%20%3E%20(schema)>) {id, count, created\_at, 5 more }

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

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

client.zeroTrust.gateway.lists.delete(stringlistID, ListDeleteParams {account\_id } params, RequestOptionsoptions?): [ListDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20list_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

GatewayItem {created\_at, description, value }

</summary>

created\_at?: string

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?: string

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?: string

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>

GatewayList {id, count, created\_at, 5 more }

</summary>

id?: string

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?: number

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>

created\_at?: string

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?: string

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)">GatewayItem</a> {created\_at, description, value } &gt;

Provide the list items.

</summary>

created\_at?: string

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?: string

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?: string

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?: string

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?: "SERIAL"| "URL"| "DOMAIN"| 6 more

Specify the list type.

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

updated\_at?: string

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)>)

<details>

<summary>

ListCreateResponse {id, created\_at, description, 4 more }

</summary>

id?: string

Identify the API resource with a UUID.

maxLength36

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

created\_at?: string

formatdate-time

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

description?: string

Provide the list description.

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

<details>

<summary>

items?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)">GatewayItem</a> {created\_at, description, value } &gt;

Provide the list items.

</summary>

created\_at?: string

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?: string

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?: string

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)%20list_create_response%20%3E%20(schema)%20%3E%20(property)%20items">Link to this property</a>

name?: string

Specify the list name.

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

<details>

<summary>

type?: "SERIAL"| "URL"| "DOMAIN"| 6 more

Specify the list type.

</summary>

One of the following:

"SERIAL"

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

"URL"

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

"DOMAIN"

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

"EMAIL"

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

"IP"

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

"CATEGORY"

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

"LOCATION"

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

"DEVICE"

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

"AAGUID"

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20list_create_response%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)%20list_create_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

updated\_at?: string

formatdate-time

<a href="#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20list_create_response%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)%20list_create_response%20%3E%20(schema)>)

ListDeleteResponse = unknown

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

#### GatewayListsItems

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

client.zeroTrust.gateway.lists.items.list(stringlistID, ItemListParams {account\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [GatewayItem](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.lists%20%3E%20(model)%20gateway_item%20%3E%20(schema)>) {created\_at, description, value } >

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

#### GatewayLocations

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

client.zeroTrust.gateway.locations.list(LocationListParams {account\_id, direction, filter, 2 more } params, RequestOptionsoptions?): SinglePage< [Location](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>) {id, client\_default, created\_at, 12 more } >

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

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

client.zeroTrust.gateway.locations.get(stringlocationID, LocationGetParams {account\_id } params, RequestOptionsoptions?): [Location](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>) {id, client\_default, created\_at, 12 more }

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

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

client.zeroTrust.gateway.locations.create(LocationCreateParams {account\_id, name, client\_default, 5 more } params, RequestOptionsoptions?): [Location](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>) {id, client\_default, created\_at, 12 more }

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

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

client.zeroTrust.gateway.locations.update(stringlocationID, LocationUpdateParams {account\_id, name, client\_default, 5 more } params, RequestOptionsoptions?): [Location](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location%20%3E%20(schema)>) {id, client\_default, created\_at, 12 more }

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

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

client.zeroTrust.gateway.locations.delete(stringlocationID, LocationDeleteParams {account\_id } params, RequestOptionsoptions?): [LocationDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20location_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

DOHEndpoint {enabled, networks, require\_token }

</summary>

enabled?: boolean

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)">IPNetwork</a> {network } &gt;| null

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>

require\_token?: boolean

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>

DOTEndpoint {enabled, networks }

</summary>

enabled?: boolean

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ip_network%20%3E%20(schema)">IPNetwork</a> {network } &gt;| null

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>

Endpoint {doh, dot, ipv4, ipv6 }

Configure the destination endpoints for this location.

</summary>

doh: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20doh_endpoint%20%3E%20(schema)">DOHEndpoint</a> {enabled, networks, require\_token }

<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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20dot_endpoint%20%3E%20(schema)">DOTEndpoint</a> {enabled, networks }

<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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv4_endpoint%20%3E%20(schema)">IPV4Endpoint</a> {enabled }

<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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_endpoint%20%3E%20(schema)">IPV6Endpoint</a> {enabled, networks }

<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>

IPNetwork {network }

</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>

IPV4Endpoint {enabled }

</summary>

enabled?: boolean

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>

IPV6Endpoint {enabled, networks }

</summary>

enabled?: boolean

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20ipv6_network%20%3E%20(schema)">IPV6Network</a> {network } &gt;| null

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>

IPV6Network {network }

</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>

Location {id, client\_default, created\_at, 12 more }

</summary>

id?: string

<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>

client\_default?: boolean

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>

created\_at?: string

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>

dns\_destination\_ips\_id?: string

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>

dns\_destination\_ipv6\_block\_id?: string| null

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>

doh\_subdomain?: string

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>

ecs\_support?: boolean

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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.locations%20%3E%20(model)%20endpoint%20%3E%20(schema)">Endpoint</a> {doh, dot, ipv4, ipv6 } | null

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?: string

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>

ipv4\_destination?: string

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>

ipv4\_destination\_backup?: string

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>

max\_ttl?: MaxTTL| null

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: "inherit"| "override"| "disabled"

<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:

"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>

"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>

"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>

ttl\_secs?: number| null

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?: string

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?: Array&lt;Network&gt;| null

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>

updated\_at?: string

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)>)

LocationDeleteResponse = unknown

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

#### GatewayLogging

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

client.zeroTrust.gateway.logging.get(LoggingGetParams {account\_id } params, RequestOptionsoptions?): [LoggingSetting](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)>) {redact\_pii, settings\_by\_rule\_type }

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

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

client.zeroTrust.gateway.logging.update(LoggingUpdateParams {account\_id, redact\_pii, settings\_by\_rule\_type } params, RequestOptionsoptions?): [LoggingSetting](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.logging%20%3E%20(model)%20logging_setting%20%3E%20(schema)>) {redact\_pii, settings\_by\_rule\_type }

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

##### ModelsExpand Collapse

<details>

<summary>

LoggingSetting {redact\_pii, settings\_by\_rule\_type }

</summary>

redact\_pii?: boolean

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>

settings\_by\_rule\_type?: SettingsByRuleType {dns, http, l4 }

Configure logging settings for each rule type.

</summary>

<details>

<summary>

dns?: DNS {log\_all, log\_blocks }

Configure logging settings for DNS firewall.

</summary>

log\_all?: boolean

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>

log\_blocks?: boolean

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?: HTTP {log\_all, log\_blocks }

Configure logging settings for HTTP/HTTPS firewall.

</summary>

log\_all?: boolean

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>

log\_blocks?: boolean

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?: L4 {log\_all, log\_blocks }

Configure logging settings for Network firewall.

</summary>

log\_all?: boolean

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>

log\_blocks?: boolean

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/typescript/resources/zero_trust/subresources/gateway/subresources/proxy_endpoints/methods/list)

client.zeroTrust.gateway.proxyEndpoints.list(ProxyEndpointListParams {account\_id, direction, filter, 2 more } params, RequestOptionsoptions?): SinglePage< [ProxyEndpoint](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)>

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

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

client.zeroTrust.gateway.proxyEndpoints.get(stringproxyEndpointID, ProxyEndpointGetParams {account\_id } params, RequestOptionsoptions?): [ProxyEndpoint](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)

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

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

client.zeroTrust.gateway.proxyEndpoints.create(ProxyEndpointCreateParamsparams, RequestOptionsoptions?): [ProxyEndpoint](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)

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

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

client.zeroTrust.gateway.proxyEndpoints.edit(stringproxyEndpointID, ProxyEndpointEditParams {account\_id, ips, name } params, RequestOptionsoptions?): [ProxyEndpoint](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint%20%3E%20(schema)>)

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

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

client.zeroTrust.gateway.proxyEndpoints.delete(stringproxyEndpointID, ProxyEndpointDeleteParams {account\_id } params, RequestOptionsoptions?): [ProxyEndpointDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20proxy_endpoint_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

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>

ProxyEndpoint = ZeroTrustGatewayProxyEndpointIP {ips, name, id, 4 more } | ZeroTrustGatewayProxyEndpointIdentity {kind, name, id, 3 more }

</summary>

One of the following:

<details>

<summary>

ZeroTrustGatewayProxyEndpointIP {ips, name, id, 4 more }

</summary>

ips: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.proxy_endpoints%20%3E%20(model)%20gateway_ips%20%3E%20(schema)">GatewayIPs</a>&gt;

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?: string

<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>

created\_at?: string

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?: "ip"

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?: string

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>

updated\_at?: string

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>

ZeroTrustGatewayProxyEndpointIdentity {kind, name, id, 3 more }

</summary>

kind: "identity"

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?: string

<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>

created\_at?: string

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?: string

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>

updated\_at?: string

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)>)

ProxyEndpointDeleteResponse = unknown

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

#### GatewayRules

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

client.zeroTrust.gateway.rules.list(RuleListParams {account\_id, direction, filter, 2 more } params, RequestOptionsoptions?): SinglePage< [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more } >

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

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

client.zeroTrust.gateway.rules.get(stringruleID, RuleGetParams {account\_id } params, RequestOptionsoptions?): [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more }

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

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

client.zeroTrust.gateway.rules.create(RuleCreateParams {account\_id, action, name, 10 more } params, RequestOptionsoptions?): [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more }

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

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

client.zeroTrust.gateway.rules.update(stringruleID, RuleUpdateParams {account\_id, action, name, 10 more } params, RequestOptionsoptions?): [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more }

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

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

client.zeroTrust.gateway.rules.delete(stringruleID, RuleDeleteParams {account\_id } params, RequestOptionsoptions?): [RuleDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_delete_response%20%3E%20(schema)>)

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

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

client.zeroTrust.gateway.rules.listTenant(RuleListTenantParams {account\_id } params, RequestOptionsoptions?): SinglePage< [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more } >

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

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

client.zeroTrust.gateway.rules.resetExpiration(stringruleID, RuleResetExpirationParams {account\_id } params, RequestOptionsoptions?): [GatewayRule](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_rule%20%3E%20(schema)>) {action, enabled, filters, 18 more }

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

##### ModelsExpand Collapse

<details>

<summary>

DNSResolverSettingsV4 {ip, port, route\_through\_private\_network, vnet\_id }

</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?: number

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>

route\_through\_private\_network?: boolean

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>

vnet\_id?: string

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>

DNSResolverSettingsV6 {ip, port, route\_through\_private\_network, vnet\_id }

</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?: number

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>

route\_through\_private\_network?: boolean

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>

vnet\_id?: string

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>

GatewayFilter = "http"| "dns"| "l4"| 2 more

Specify the protocol or layer to use.

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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>

GatewayRule {action, enabled, filters, 18 more }

</summary>

<details>

<summary>

action: "on"| "off"| "allow"| 13 more

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:

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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: boolean

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: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20gateway_filter%20%3E%20(schema)">GatewayFilter</a>&gt;

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:

"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>

"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>

"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>

"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>

"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: number

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?: string

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>

created\_at?: string

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>

deleted\_at?: string| null

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?: string

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>

device\_posture?: string

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?: Expiration| null

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>

expires\_at: string

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?: number

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?: boolean

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?: string

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>

read\_only?: boolean

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>

rule\_settings?: <a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20rule_setting%20%3E%20(schema)">RuleSetting</a> {add\_headers, allow\_child\_bypass, audit\_ssh, 25 more }

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/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20schedule%20%3E%20(schema)">Schedule</a> {fri, mon, sat, 5 more } | null

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?: boolean

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>

source\_account?: string

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>

updated\_at?: string

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?: number

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>

warning\_status?: string| null

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>

RuleSetting {add\_headers, allow\_child\_bypass, audit\_ssh, 25 more }

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>

add\_headers?: Record&lt;string, Array&lt;string&gt;&gt;| null

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>

allow\_child\_bypass?: boolean| null

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>

audit\_ssh?: AuditSSH| null

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

</summary>

command\_logging?: boolean

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>

biso\_admin\_controls?: BISOAdminControls {copy, dcp, dd, 10 more }

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

</summary>

<details>

<summary>

copy?: "enabled"| "disabled"| "remote\_only"

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:

"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>

"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>

"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?: boolean

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?: boolean

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?: boolean

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?: "enabled"| "disabled"| "remote\_only"

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:

"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>

"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>

"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?: boolean

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?: boolean

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?: "enabled"| "disabled"

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

</summary>

One of the following:

"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>

"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?: "enabled"| "disabled"| "remote\_only"

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:

"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>

"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>

"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?: "enabled"| "disabled"

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

</summary>

One of the following:

"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>

"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?: "enabled"| "disabled"

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

</summary>

One of the following:

"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>

"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?: "v1"| "v2"

Indicate which version of the browser isolation controls should apply.

</summary>

One of the following:

"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>

"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>

wm\_id?: string

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>

block\_page?: BlockPage| null

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>

target\_uri: 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>

include\_context?: boolean

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>

block\_page\_enabled?: boolean

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>

block\_reason?: string| null

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>

bypass\_parent\_rule?: boolean| null

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>

check\_session?: CheckSession| null

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?: string

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?: boolean

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>

delete\_headers?: Array&lt;string&gt;| null

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>

dns\_resolvers?: DNSResolvers| null

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v4%20%3E%20(schema)">DNSResolverSettingsV4</a> {ip, port, route\_through\_private\_network, vnet\_id } &gt;

</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?: number

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>

route\_through\_private\_network?: boolean

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>

vnet\_id?: string

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?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.rules%20%3E%20(model)%20dns_resolver_settings_v6%20%3E%20(schema)">DNSResolverSettingsV6</a> {ip, port, route\_through\_private\_network, vnet\_id } &gt;

</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?: number

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>

route\_through\_private\_network?: boolean

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>

vnet\_id?: string

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?: Egress| null

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?: string

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>

ipv4\_fallback?: string

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?: string

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>

forensic\_copy?: ForensicCopy| null

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

</summary>

enabled?: boolean

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>

ignore\_cname\_category\_matches?: boolean

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>

insecure\_disable\_dnssec\_validation?: boolean

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>

ip\_categories?: boolean

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>

ip\_indicator\_feeds?: boolean

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?: L4override| null

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?: string

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?: number

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>

notification\_settings?: NotificationSettings| null

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?: boolean

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>

include\_context?: boolean

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?: string

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>

support\_url?: string

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>

override\_host?: string

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>

override\_ips?: Array&lt;string&gt;| null

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>

payload\_log?: PayloadLog| null

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

</summary>

enabled?: boolean

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?: Quarantine| null

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

</summary>

<details>

<summary>

file\_types?: Array&lt;"exe"| "pdf"| "doc"| 10 more&gt;

Specify the types of files to sandbox.

</summary>

One of the following:

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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>

"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?: Redirect| null

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

</summary>

target\_uri: 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>

include\_context?: boolean

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>

preserve\_path\_and\_query?: boolean

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>

resolve\_dns\_internally?: ResolveDNSInternally| null

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?: "none"| "public\_dns"

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:

"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>

"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>

view\_id?: string

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>

resolve\_dns\_through\_cloudflare?: boolean| null

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>

set\_headers?: Record&lt;string, Array&lt;string&gt;&gt;| null

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>

untrusted\_cert?: UntrustedCERT| null

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?: "pass\_through"| "block"| "error"

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

</summary>

One of the following:

"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>

"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>

"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>

Schedule {fri, mon, sat, 5 more }

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

</summary>

fri?: string

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?: string

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?: string

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?: string

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?: string

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>

time\_zone?: string

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?: string

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?: string

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)>)

RuleDeleteResponse = unknown

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

#### GatewayCertificates

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

client.zeroTrust.gateway.certificates.list(CertificateListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [CertificateListResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_list_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more } >

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

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

client.zeroTrust.gateway.certificates.get(stringcertificateID, CertificateGetParams {account\_id } params, RequestOptionsoptions?): [CertificateGetResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_get_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more }

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

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

client.zeroTrust.gateway.certificates.create(CertificateCreateParams {account\_id, validity\_period\_days } params, RequestOptionsoptions?): [CertificateCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_create_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more }

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

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

client.zeroTrust.gateway.certificates.delete(stringcertificateID, CertificateDeleteParams {account\_id } params, RequestOptionsoptions?): [CertificateDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_delete_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more }

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

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

client.zeroTrust.gateway.certificates.activate(stringcertificateID, CertificateActivateParams {account\_id } params, RequestOptionsoptions?): [CertificateActivateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_activate_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more }

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

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

client.zeroTrust.gateway.certificates.deactivate(stringcertificateID, CertificateDeactivateParams {account\_id } params, RequestOptionsoptions?): [CertificateDeactivateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.certificates%20%3E%20(model)%20certificate_deactivate_response%20%3E%20(schema)>) {id, binding\_status, certificate, 10 more }

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

##### ModelsExpand Collapse

<details>

<summary>

CertificateListResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

<details>

<summary>

CertificateGetResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

<details>

<summary>

CertificateCreateResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

<details>

<summary>

CertificateDeleteResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

<details>

<summary>

CertificateActivateResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

<details>

<summary>

CertificateDeactivateResponse {id, binding\_status, certificate, 10 more }

</summary>

id?: string

Identify the certificate with a UUID.

maxLength36

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

<details>

<summary>

binding\_status?: "pending\_deployment"| "available"| "pending\_deletion"| "inactive"

Indicate the read-only deployment status of the certificate on Cloudflare’s edge. Gateway TLS interception can use certificates in the ‘available’ (previously called ‘active’) state.

</summary>

One of the following:

"pending\_deployment"

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

"available"

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

"pending\_deletion"

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

"inactive"

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

</details>

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

certificate?: string

Provide the CA certificate (read-only).

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

created\_at?: string

formatdate-time

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

expires\_on?: string

formatdate-time

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

fingerprint?: string

Provide the SHA256 fingerprint of the certificate (read-only).

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

in\_use?: boolean

Indicate whether Gateway TLS interception uses this certificate (read-only). You cannot set this value directly. To configure interception, use the Gateway configuration setting named <code>certificate</code> (read-only).

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

issuer\_org?: string

Indicate the organization that issued the certificate (read-only).

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

issuer\_raw?: string

Provide the entire issuer field of the certificate (read-only).

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

region?: string

Indicate the read-only region the certificate authority’s key material is pinned to. Omitted for certificates that were created without a region.

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

<details>

<summary>

type?: "custom"| "gateway\_managed"

Indicate the read-only certificate type, BYO-PKI (custom) or Gateway-managed.

</summary>

One of the following:

"custom"

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

"gateway\_managed"

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

</details>

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

updated\_at?: string

formatdate-time

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

uploaded\_on?: string

formatdate-time

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

</details>

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

#### GatewayPacfiles

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

client.zeroTrust.gateway.pacfiles.list(PacfileListParams {account\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [PacfileListResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20pacfile_list_response%20%3E%20(schema)>) {id, created\_at, description, 4 more } >

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

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

client.zeroTrust.gateway.pacfiles.get(stringpacfileID, PacfileGetParams {account\_id } params, RequestOptionsoptions?): [PacfileGetResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20pacfile_get_response%20%3E%20(schema)>) {id, contents, created\_at, 5 more }

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

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

client.zeroTrust.gateway.pacfiles.create(PacfileCreateParams {account\_id, contents, name, 2 more } params, RequestOptionsoptions?): [PacfileCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20pacfile_create_response%20%3E%20(schema)>) {id, contents, created\_at, 5 more }

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

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

client.zeroTrust.gateway.pacfiles.update(stringpacfileID, PacfileUpdateParams {account\_id, contents, description, name } params, RequestOptionsoptions?): [PacfileUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20pacfile_update_response%20%3E%20(schema)>) {id, contents, created\_at, 5 more }

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

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

client.zeroTrust.gateway.pacfiles.delete(stringpacfileID, PacfileDeleteParams {account\_id } params, RequestOptionsoptions?): [PacfileDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/zero_trust#(resource)%20zero_trust.gateway.pacfiles%20%3E%20(model)%20pacfile_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

PacfileListResponse {id, created\_at, description, 4 more }

</summary>

id?: string

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

created\_at?: string

formatdate-time

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

description?: string

Detailed description of the PAC file.

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

name?: string

Name of the PAC file.

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

slug?: string

URL-friendly version of the PAC file name.

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

updated\_at?: string

formatdate-time

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

url?: string

Unique URL to download the PAC file.

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

</details>

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

<details>

<summary>

PacfileGetResponse {id, contents, created\_at, 5 more }

</summary>

id?: string

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

contents?: string

Actual contents of the PAC file

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

created\_at?: string

formatdate-time

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

description?: string

Detailed description of the PAC file.

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

name?: string

Name of the PAC file.

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

slug?: string

URL-friendly version of the PAC file name.

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

updated\_at?: string

formatdate-time

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

url?: string

Unique URL to download the PAC file.

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

</details>

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

<details>

<summary>

PacfileCreateResponse {id, contents, created\_at, 5 more }

</summary>

id?: string

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

contents?: string

Actual contents of the PAC file

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

created\_at?: string

formatdate-time

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

description?: string

Detailed description of the PAC file.

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

name?: string

Name of the PAC file.

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

slug?: string

URL-friendly version of the PAC file name.

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

updated\_at?: string

formatdate-time

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

url?: string

Unique URL to download the PAC file.

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

</details>

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

<details>

<summary>

PacfileUpdateResponse {id, contents, created\_at, 5 more }

</summary>

id?: string

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

contents?: string

Actual contents of the PAC file

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

created\_at?: string

formatdate-time

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

description?: string

Detailed description of the PAC file.

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

name?: string

Name of the PAC file.

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

slug?: string

URL-friendly version of the PAC file name.

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

updated\_at?: string

formatdate-time

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

url?: string

Unique URL to download the PAC file.

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

</details>

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

PacfileDeleteResponse = unknown

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