Online API wrapper for PHP 5.3+
This library can installed through compose
$ php composer.phar require jowy/online:@stable
<?php
use Online\Online;
$online = new Online('your-api-token-here');
$abuse = $online->abuse();
$network = $online->network();
$server = $online->server();
$storage = $online->storage();
$user = $online->user();
// Get user info
$user->getUserInfo();
// Get all server id
$server->getAllServerId();
// Get abuse list
$abuse->getAbuseList();
// Get ddos alert
$network->getDdosAlert();
// Get Rpnsync backup
$storage->getRpnSyncBackup();
getAbuseList($count = 10, $minId = 0, $maxId = 10)
getAbuseDetail($abuseId)
replyAbuse($abuseId, $answer, $solution)
getDdosAlert($targetIp, $count = 10, $midId = 0, $maxId = 10)
getDdosAlertDetail($alertId)
getRpnRsyncBackup()
editRpnRsyncBackup($name, $password = 'default')
getRpnSan()
addServerToRpnSan($iqnSuffix, $serverId)
removeServerInRpnSan($iqnSuffix, $serverId)
getUserInfo()
getAllServerId()
getServerDetail($serverId)
editServerHostname($serverId, $hostname = 'default')
createBmcSession($serverId, $authorizationIP)
deleteBmcSession($sessionId)
getBmcSessionDetail($sessionId)
bootServerNormal($serverId)
bootServerRescue($serverId)
bootServerTest($serverId)
rebootServer($serverId)
enableHardwareWatch($serverId)
disableHardwareWatch($serverId)
getRescueImages($serverId)
getBackupServer($serverId)
editBackupServer($serverId, $password = 'default', $autoLogin = true, $acl = false)
getFailoverIp()
deleteFailoverMac($failoverIp)
editFailoverIp($failoverIp, $destination)
generateMac($failoverIp, $type)
editIp($ip, $reverse, $destination = null)