API Commands
[All Commands]

Command: WorldHosting_Info_FTP_Account



command WorldHosting_Info_FTP_Account

Get information about existing FTP account

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name
string username FTP username

Output Responses:

string status ok | error
array data Details about your request
 
string username FTP username
string dir root directory
string permissions read / readwrite
array ips_allow IP addresses to allow access to
array ips_deny IP addresses to deny access to

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'domain.or.af',
    
'username' => 'ftpaccount_a',
  ),
);

$response $client->__call("WorldHosting_Info_FTP_Account",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af [username] => ftpaccount_a ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [username] => ftpaccount_a [dir] => / [permissions] => read [ips_allow] => Array ( [0] => 1.2.3.4 ) [ips_deny] => Array ( [0] => ALL ) ) )

API Manual - version from 2019-07-31 15:54:31