## Enable or Disable Total TLS `acm.total_tls.update(TotalTLSUpdateParams**kwargs) -> TotalTLSUpdateResponse` **post** `/zones/{zone_id}/acm/total_tls` Set Total TLS Settings or disable the feature for a Zone. ### Parameters - `zone_id: str` Identifier. - `enabled: bool` If enabled, Total TLS will order a hostname specific TLS certificate for any proxied A, AAAA, or CNAME record in your zone. - `certificate_authority: Optional[CertificateAuthority]` The Certificate Authority that Total TLS certificates will be issued through. - `"google"` - `"lets_encrypt"` - `"ssl_com"` ### Returns - `class TotalTLSUpdateResponse: …` - `certificate_authority: Optional[CertificateAuthority]` The Certificate Authority that Total TLS certificates will be issued through. - `"google"` - `"lets_encrypt"` - `"ssl_com"` - `enabled: Optional[bool]` If enabled, Total TLS will order a hostname specific TLS certificate for any proxied A, AAAA, or CNAME record in your zone. - `validity_period: Optional[Literal[90]]` The validity period in days for the certificates ordered via Total TLS. - `90` ### 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 ) total_tls = client.acm.total_tls.update( zone_id="023e105f4ecef8ad9ca31a8372d0c353", enabled=True, ) print(total_tls.validity_period) ``` #### 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": { "certificate_authority": "google", "enabled": true, "validity_period": 90 } } ```