Cloudflare\Zone\Settings::change_tls_1_2_only PHP Метод

change_tls_1_2_only() публичный Метод

Change TLS 1.2 setting (permission needed: #zone_settings:edit) Enable Crypto TLS 1.2 feature for this zone and prevent use of previous versions. This is limited to Enterprise or Business Zones.
public change_tls_1_2_only ( string $zone_identifier, string | null $value = null )
$zone_identifier string API item identifier tag
$value string | null Value of the zone setting (default: off)
    public function change_tls_1_2_only($zone_identifier, $value = null)
    {
        $data = ['value' => $value];
        return $this->patch('zones/' . $zone_identifier . '/settings/true_client_ip_header', $data);
    }