1. Home
  2. Docs
  3. Developer Guide
  4. API Manager
  5. Functions
  6. Account
  7. udp

udp

Functionaccount
To make use of the ‘udp‘ Action, the following parameters must be sent:

    • key: Key authorized by Api administrator
    • action: udp
    • user: username
    • email: Email Address of the account owner
    • package: Package name or ID with @ front Ex: @12
    • banckup: on/off
    • inode:number of Inode
    • limit_nproc: number of processes
    • limit_nofile: number of open files.
    • server_ips: Ip to edit

 

– Possible answers:

    • status -> OK
    • status -> Error, msj -> must indicate a user.
    • status -> Error, msj -> User does not exist.
    • status -> Error, msj -> You must indicate an email.
    • status -> Error, msj -> There is no package with this name.
    • status -> Error, msj-> There was an error updating.
    • status -> Error, msj -> User is root.

 

Example of code in php

$data = array(“key” => “MYKEY”,”action”=>’udp’,”action”=>’udp’,”user”=>’USER’,”email”=>’email@account’,”package”=>’PACKAGE_NAME’,”banckup”=>’on’,”inode”=>’0’,”limit_nproc”=>’40’,”limit_nofile”=>’0’,"server_ips"=>123.123.123.123);
$url = “https://IPSERVERAPI:2304/v1/account”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
Was this article helpful to you? Yes No 1