Description

This function checks whether the DAV service is enabled.

Examples


https://hostname.example.com:2083/cpsess##########/execute/DAV/is_dav_service_enabled

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Verify that the system has the DAV service enabled.
$DAV = $cpanel->uapi(
    'DAV', 'is_dav_service_enabled'
);

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
  
# Verify that the system has the DAV service enabled.
my $is_dav_service_enabled = $cpliveapi->uapi(
    'DAV', 'is_dav_service_enabled',
);

 

<!-- Verify that the system has the DAV service enabled. -->
[% data = execute( 'DAV', 'is_dav_service_enabled' ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]

 

uapi --user=username DAV is_dav_service_enabled

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

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
enabledBoolean

Whether the DAV service is enabled.

  • 1 — Enabled.
  • 0 — Disabled.
1