---
title: Settings
---

[Skip to content](#_top)

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

[Hostnames](https://developers.cloudflare.com/api/python/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/python/resources/hostnames/subresources/settings/subresources/tls/methods/list)

hostnames.settings.tls.list(Literal\["ciphers", "min\_tls\_version", "http2"]setting\_id, TLSListParams\*\*kwargs) -> SyncSinglePage\[[TLSListResponse](<https://developers.cloudflare.com/api/python/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_list_response%20%3E%20(schema)>)]

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

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

hostnames.settings.tls.get(strhostname, TLSGetParams\*\*kwargs) -> [Setting](<https://developers.cloudflare.com/api/python/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)>)

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

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

hostnames.settings.tls.update(strhostname, TLSUpdateParams\*\*kwargs) -> [Setting](<https://developers.cloudflare.com/api/python/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20setting%20%3E%20(schema)>)

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

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

hostnames.settings.tls.delete(strhostname, TLSDeleteParams\*\*kwargs) -> [TLSDeleteResponse](<https://developers.cloudflare.com/api/python/resources/hostnames#(resource)%20hostnames.settings.tls%20%3E%20(model)%20tls_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class Setting: …

</summary>

created\_at: Optional\[datetime]

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: Optional\[str]

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: Optional\[str]

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: Optional\[datetime]

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: Optional\[SettingValue]

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>

Union\[Literal\["1.0", "1.1", "1.2", 3 more], List\[str]]

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>

Literal\["1.0", "1.1", "1.2", 3 more]

</summary>

One of the following:

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

List\[str]

Used when <code>setting_id</code> is <code>ciphers</code>. An array of allowed cipher suite strings.

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

class TLSListResponse: …

</summary>

created\_at: Optional\[datetime]

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: Optional\[str]

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: Optional\[str]

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: Optional\[datetime]

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: Optional\[SettingValue]

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>

class TLSDeleteResponse: …

</summary>

created\_at: Optional\[datetime]

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: Optional\[str]

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: Optional\[str]

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: Optional\[datetime]

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: Optional\[SettingValue]

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