jowy/online

Online.net API library

v1.0 2015-07-13 08:06 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:27:39 UTC


README

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)