# Settings ## Get Enablement Setting for Zone `origin_tls_client_auth.settings.get(SettingGetParams**kwargs) -> SettingGetResponse` **get** `/zones/{zone_id}/origin_tls_client_auth/settings` Get whether zone-level authenticated origin pulls is enabled or not. It is false by default. ### Parameters - `zone_id: str` Identifier. ### Returns - `class SettingGetResponse: …` - `enabled: Optional[bool]` Indicates whether zone-level authenticated origin pulls is enabled. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) setting = client.origin_tls_client_auth.settings.get( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(setting.enabled) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "enabled": true } } ``` ## Set Enablement for Zone `origin_tls_client_auth.settings.update(SettingUpdateParams**kwargs) -> SettingUpdateResponse` **put** `/zones/{zone_id}/origin_tls_client_auth/settings` Enable or disable zone-level authenticated origin pulls. 'enabled' should be set true either before/after the certificate is uploaded to see the certificate in use. ### Parameters - `zone_id: str` Identifier. - `enabled: bool` Indicates whether zone-level authenticated origin pulls is enabled. ### Returns - `class SettingUpdateResponse: …` - `enabled: Optional[bool]` Indicates whether zone-level authenticated origin pulls is enabled. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) setting = client.origin_tls_client_auth.settings.update( zone_id="023e105f4ecef8ad9ca31a8372d0c353", enabled=True, ) print(setting.enabled) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "enabled": true } } ``` ## Domain Types ### Setting Get Response - `class SettingGetResponse: …` - `enabled: Optional[bool]` Indicates whether zone-level authenticated origin pulls is enabled. ### Setting Update Response - `class SettingUpdateResponse: …` - `enabled: Optional[bool]` Indicates whether zone-level authenticated origin pulls is enabled.