Cloudflare\Zone\KeylessSSL::update PHP Метод

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

Update SSL configuration (permission needed: #ssl:edit)
public update ( string $zone_identifier, string $identifier, string $host, string $name, integer $port, boolean | null $enabled = null )
$zone_identifier string API item identifier tag
$identifier string
$host string The keyless SSL hostname
$name string The keyless SSL name
$port integer The keyless SSL port used to commmunicate between CloudFlare and the client's Keyless SSL server
$enabled boolean | null Whether or not the Keyless SSL is on or off
    public function update($zone_identifier, $identifier, $host, $name, $port, $enabled = null)
    {
        $data = ['host' => $host, 'port' => $port, 'name' => $name, 'enabled' => $enabled];
        return $this->patch('zones/' . $zone_identifier . '/keyless_certificates/' . $identifier, $data);
    }