Description
This function checks whether the DAV service is enabled.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/DAV/is_dav_service_enabled
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$DAV
=
$cpanel
->uapi(
'DAV'
,
'is_dav_service_enabled'
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$is_dav_service_enabled
=
$cpliveapi
->uapi(
'DAV'
,
'is_dav_service_enabled'
,
);
cPanel Template Toolkit
[% data = execute( 'DAV', 'is_dav_service_enabled' ); %]
[% FOREACH q = data %]
<
p
>
[% q %]
</
p
>
[% END %]
Command Line
uapi --user=username DAV is_dav_service_enabled
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"metadata": {},
"data": {
"enabled": 1
}
}
Parameters
This function does not accept parameters.
Returns
Return
|
Type
|
Description
|
Possible values
|
Example
|
enabled
|
Boolean
|
Whether the DAV service is enabled.
|
- 1 — Enabled.
- 0 — Disabled.
|
1
|