2017 © Pedro Peláez
 

library hetzner-robot

API Client for the Hetzner Robot API

image

minicodemonkey/hetzner-robot

API Client for the Hetzner Robot API

  • Wednesday, November 22, 2017
  • by MiniCodeMonkey
  • Repository
  • 1 Watchers
  • 0 Stars
  • 528 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Hetzner Robot API Client

Note: This is just a copy of the Hetzner API client, that has been namespaced and composer/packagist support added. The source code can be found here: https://robot.your-server.de/downloads/robot-client.zip, (*1)

Usage

use Hetzner\Robot\Client;

$robot = new Client('https://robot-ws.your-server.de', 'login', 'password');

// retrieve all failover ips
$results = $robot->failoverGet();

foreach ($results as $result)
{
  echo $result->failover->ip . "\n";
  echo $result->failover->server_ip . "\n";
  echo $result->failover->active_server_ip . "\n";
}

// retrieve a specific failover ip
$result = $robot->failoverGet('123.123.123.123');

echo $result->failover->ip . "\n";
echo $result->failover->server_ip . "\n";
echo $result->failover->active_server_ip . "\n";

// switch routing
try
{
  $robot->failoverRoute('123.123.123.123', '213.133.104.190');
}
catch (RobotClientException $e)
{
  echo $e->getMessage() . "\n";
}

Full API documentation is available here: https://robot.your-server.de/doc/webservice/en.html, (*2)

The Versions

22/11 2017

dev-master

9999999-dev

API Client for the Hetzner Robot API

  Sources   Download

The Requires

  • php >=5.4.0

 

22/11 2017

1.0.3

1.0.3.0

API Client for the Hetzner Robot API

  Sources   Download

The Requires

  • php >=5.4.0

 

20/10 2017

1.0.2

1.0.2.0

API Client for the Hetzner Robot API

  Sources   Download

The Requires

  • php >=5.4.0

 

20/10 2017

1.0.1

1.0.1.0

API Client for the Hetzner Robot API

  Sources   Download

The Requires

  • php >=5.4.0

 

20/10 2017

1.0.0

1.0.0.0

API Client for the Hetzner Robot API

  Sources   Download

The Requires

  • php >=5.4.0