Skip to content

alpixel/OnlineNet-PHP-API-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online.Net API for PHP 5.3+

Build Status Scrutinizer Quality Score SensioLabsInsight

Online API wrapper for PHP 5.3+

Installation


This library can installed through compose

$ php composer.phar require jowy/online:@stable

Usage


<?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();

List All Function


Abuse


  • getAbuseList($count = 10, $minId = 0, $maxId = 10)
  • getAbuseDetail($abuseId)
  • replyAbuse($abuseId, $answer, $solution)

Network


  • getDdosAlert($targetIp, $count = 10, $midId = 0, $maxId = 10)
  • getDdosAlertDetail($alertId)

Storage


  • getRpnRsyncBackup()
  • editRpnRsyncBackup($name, $password = 'default')
  • getRpnSan()
  • addServerToRpnSan($iqnSuffix, $serverId)
  • removeServerInRpnSan($iqnSuffix, $serverId)

User


  • getUserInfo()

Server


  • 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)

About

OnlineNet PHP 5.3+ API Librarry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%