---
title: Settings
---

[Skip to content](#_top)

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

[Hostnames](https://developers.cloudflare.com/api/typescript/resources/hostnames)

Copy Markdown

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

---

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

# Settings

#### SettingsTLS

##### [List TLS setting for hostnames](https://developers.cloudflare.com/api/typescript/resources/hostnames/subresources/settings/subresources/tls/methods/list)

client.hostnames.settings.tls.list("ciphers"| "min\_tls\_version"| "http2"settingID, TLSListParams {zone\_id } params, RequestOptionsoptions?): SinglePage< [TLSListResponse](<https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)>) {created\_at, hostname, status, 2 more } >

GET/zones/{zone\_id}/hostnames/settings/{setting\_id}

##### [Get TLS setting for hostname](https://developers.cloudflare.com/api/typescript/resources/hostnames/subresources/settings/subresources/tls/methods/get)

client.hostnames.settings.tls.get(stringhostname, TLSGetParams {zone\_id, setting\_id } params, RequestOptionsoptions?): [Setting](<https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)>) {created\_at, hostname, status, 2 more }

GET/zones/{zone\_id}/hostnames/settings/{setting\_id}/{hostname}

##### [Edit TLS setting for hostname](https://developers.cloudflare.com/api/typescript/resources/hostnames/subresources/settings/subresources/tls/methods/update)

client.hostnames.settings.tls.update(stringhostname, TLSUpdateParams {zone\_id, setting\_id, value } params, RequestOptionsoptions?): [Setting](<https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)>) {created\_at, hostname, status, 2 more }

PUT/zones/{zone\_id}/hostnames/settings/{setting\_id}/{hostname}

##### [Delete TLS setting for hostname](https://developers.cloudflare.com/api/typescript/resources/hostnames/subresources/settings/subresources/tls/methods/delete)

client.hostnames.settings.tls.delete(stringhostname, TLSDeleteParams {zone\_id, setting\_id } params, RequestOptionsoptions?): [TLSDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)>) {created\_at, hostname, status, 2 more }

DELETE/zones/{zone\_id}/hostnames/settings/{setting\_id}/{hostname}

##### ModelsExpand Collapse

<details>

<summary>

Setting {created\_at, hostname, status, 2 more }

</summary>

created\_at?: string

This is the time the tls setting was originally created for this hostname.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

hostname?: string

The hostname for which the tls settings are set.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

status?: string

Deployment status for the given tls setting.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

updated\_at?: string

This is the time the tls setting was updated.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

value?: <a href="https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)">SettingValue</a>

The TLS setting value. The type depends on the <code>setting_id</code> used in the request path:

- <code>ciphers</code>: an array of allowed cipher suite strings in BoringSSL format (e.g., <code>["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"]</code>).
- <code>min_tls_version</code>: a string indicating the minimum TLS version — one of <code>"1.0"</code>, <code>"1.1"</code>, <code>"1.2"</code>, or <code>"1.3"</code> (e.g., <code>"1.2"</code>).
- <code>http2</code>: a string indicating whether HTTP/2 is enabled — <code>"on"</code> or <code>"off"</code> (e.g., <code>"on"</code>).

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)>)

<details>

<summary>

SettingValue = "1.0"| "1.1"| "1.2"| 3 more| Array&lt;string&gt;

The TLS setting value. The type depends on the <code>setting_id</code> used in the request path:

- <code>ciphers</code>: an array of allowed cipher suite strings in BoringSSL format (e.g., <code>["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"]</code>).
- <code>min_tls_version</code>: a string indicating the minimum TLS version — one of <code>"1.0"</code>, <code>"1.1"</code>, <code>"1.2"</code>, or <code>"1.3"</code> (e.g., <code>"1.2"</code>).
- <code>http2</code>: a string indicating whether HTTP/2 is enabled — <code>"on"</code> or <code>"off"</code> (e.g., <code>"on"</code>).

</summary>

One of the following:

<details>

<summary>

"1.0"| "1.1"| "1.2"| 3 more

</summary>

"1.0"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%200">Link to this property</a>

"1.1"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%201">Link to this property</a>

"1.2"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%202">Link to this property</a>

"1.3"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%203">Link to this property</a>

"on"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%204">Link to this property</a>

"off"

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

Array&lt;string&gt;

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)>)

<details>

<summary>

TLSListResponse {created\_at, hostname, status, 2 more }

</summary>

created\_at?: string

This is the time the tls setting was originally created for this hostname.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

hostname?: string

The hostname for which the tls settings are set.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

status?: string

Deployment status for the given tls setting.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

updated\_at?: string

This is the time the tls setting was updated.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

value?: <a href="https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)">SettingValue</a>

The TLS setting value. The type depends on the <code>setting_id</code> used in the request path:

- <code>ciphers</code>: an array of allowed cipher suite strings in BoringSSL format (e.g., <code>["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"]</code>).
- <code>min_tls_version</code>: a string indicating the minimum TLS version — one of <code>"1.0"</code>, <code>"1.1"</code>, <code>"1.2"</code>, or <code>"1.3"</code> (e.g., <code>"1.2"</code>).
- <code>http2</code>: a string indicating whether HTTP/2 is enabled — <code>"on"</code> or <code>"off"</code> (e.g., <code>"on"</code>).

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)>)

<details>

<summary>

TLSDeleteResponse {created\_at, hostname, status, 2 more }

</summary>

created\_at?: string

This is the time the tls setting was originally created for this hostname.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

hostname?: string

The hostname for which the tls settings are set.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)%20%3E%20(property)%20hostname">Link to this property</a>

status?: string

Deployment status for the given tls setting.

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

updated\_at?: string

This is the time the tls setting was updated.

formatdate-time

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

value?: <a href="https://developers.cloudflare.com/api/typescript/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting_value%20%3E%20(schema)">SettingValue</a>

The TLS setting value. The type depends on the <code>setting_id</code> used in the request path:

- <code>ciphers</code>: an array of allowed cipher suite strings in BoringSSL format (e.g., <code>["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"]</code>).
- <code>min_tls_version</code>: a string indicating the minimum TLS version — one of <code>"1.0"</code>, <code>"1.1"</code>, <code>"1.2"</code>, or <code>"1.3"</code> (e.g., <code>"1.2"</code>).
- <code>http2</code>: a string indicating whether HTTP/2 is enabled — <code>"on"</code> or <code>"off"</code> (e.g., <code>"on"</code>).

<a href="#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)>)