Description

This function disables AutoSSL for the domains that you specify.

Examples


https://hostname.example.com:2083/cpsess##########/execute/SSL/add_autossl_excluded_domains?domains=example.com%2Cexample2.com

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Disable AutoSSL for the following domains.
$SSL_add_autossl_excluded_domains = $cpanel->uapi(
    'SSL', 'add_autossl_excluded_domains',
	array(
		 'domains'	=> 	'example.com,example2.com'
		 )
);

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
#  Disable AutoSSL for the following domains.
my $SSL_add_autossl_excluded_domains = $cpliveapi->uapi(
    'SSL', 'add_autossl_excluded_domains'
	{
		'domains'	=>	'example.com,example2.com'
	}
);

<!-- Disable AutoSSL for the following domains. -->
[% execute( 'SSL', 'add_autossl_excluded_domains', { 'domains' => 'example.com,example2.com' }); %]

uapi --user=username SSL add_autossl_excluded_domains domains=example.com,example2.com

{
  "messages": null,
  "errors": null,
  "status": 1,
  "data": null
}

Parameters

ParameterTypeDescriptionPossible valuesExample
domainsstring

Required

Disable AutoSSL for this domain.

A valid domain name that the account owns.

  • Separate multiple domains with the comma character (,).
  • For browser-based calls, use a URI encoded comma (%2C).

example.com,example2.com

Returns

This function only returns metadata.