Description
This function unparks a parked domain.
Examples
LiveAPI PHP Class
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$unpark_domain = $cpanel->api1('Park','unpark',array('example.com','0') ); // Call the function.
LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $unpark_domain = $cpliveapi->api1('Park','unpark',['example.com','0'] ); # Call the function.
cPanel Tag System (deprecated)
Warning:
In cPanel & WHM version 11.30 and later, cPanel tags are deprecated. This example is present in order to help developers move from the old cPanel tag system to our LiveAPI.
We strongly recommend that you only use the LiveAPI system to call the cPanel APIs.
<cpanel Module="Park::unpark( $FORM('domain','isaddon') )">
Output (plaintext)
examplepark.com => deleted from example.
example.com was successfully unparked
Parameters
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
domain
|
string
|
Required
The domain name.
|
A valid domain name.
|
example.com
|
isaddon
|
boolean
|
Whether to use the addon domain removal routines.
|
- 1 — Use the addon domain removal routines.
- 0 — Use the standard removal routines.
|
0
|
Returns
This function returns a confirmation message.