Description

This function lists a reseller's users with existing backup metadata.


Examples




https://hostname.example.com:2083/cpsessXXXXXXXXXXXX/execute/Restore/get_users



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.

// Get a list of reseller's users with backup metadata.
$get_users = $cpanel->uapi(
    'Restore', 'get_users'
 );




my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.

# Get a list of reseller's users with backup metadata.
my $get_users = $cpliveapi->uapi(
    'Restore', 'get_users'
 );



<!--  Get a list of reseller's users with backup metadata -->
[% data = execute( 'Restore', 'get_users' ); %]
[% FOREACH q = data %]
     <p>
         [% q %]
     </p>
[% END %]

 



uapi --user=username Restore get_users



{
   "metadata":{
      "transformed":1
   },
   "messages":null,
   "errors":null,
   "data":[
      "phpfpm",
      "example"
   ],
   "status":1,
   "warnings":null
}



Parameters

This function does not accept parameters.

 Returns

ReturnTypeDescriptionPossible valuesExample
 dataarrayAn array of reseller account names.

One or more reseller account names.

 username