Description

This function disables a Passenger application on an account.

Examples




https://hostname.example.com:2083/cpsess##########/execute/PassengerApps/disable_application?name=slippers



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Disable the slippers application on the cPanel account.
$poll = $cpanel->uapi(
    'PassengerApps', 'disable_application',
    array(
        'name' => 'slippers',
  )
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
#  Disable the slippers application on the cPanel account.
my $poll = $cpliveapi->uapi(
    'PassengerApps', 'disable_application',
    {
        'name'    => 'slippers',
  }
);



<!-- Disable the slippers application on the cPanel account. -->
[% execute('PassengerApps', 'disable_application', { 'name' => 'slippers', } ) %]



uapi --user=username PassengerApps disable_application name="slippers"



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



Parameters

ParameterTypeDescriptionPossible valuesExample
namestring

Required

The application to disable.

A valid Passenger application on the account.slippers

Returns

This function only returns metadata.