Description
This function enables or disables inbound anonymous FTP transfers.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Ftp/set_anonymous_ftp_incoming?set=0
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$anon_ftp
=
$cpanel
->uapi(
'Ftp'
,
'set_anonymous_ftp_incoming'
,
array
(
'set'
=>
'0'
,
)
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$anon_ftp
=
$cpliveapi
->uapi(
'Ftp'
,
'set_anonymous_ftp_incoming'
,
{
'set'
=>
'0'
,
}
);
cPanel Template Toolkit
[% execute( 'Ftp', 'set_anonymous_ftp_incoming', { set => '0' } ); %]
Command Line
uapi --user=username Ftp set_anonymous_ftp_incoming set=0
|
Output (JSON)
{
"messages":null,
"errors":null,
"status":1,
"metadata":{
},
"data":null
}
Parameters
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
set
|
Boolean
|
Required
Whether to enable or disable inbound anonymous FTP transfers.
|
|
0
|
Returns
This function returns only metadata.