Skip to content

Commit

Permalink
+ added template and hostname for virtual servers
Browse files Browse the repository at this point in the history
  • Loading branch information
JWaldecker committed Jan 8, 2018
1 parent 016723d commit c90c8bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lumaserv/lumaserv-php-client",
"description": "A full-featured implementation of the LumaservSystem-JSON-API",
"type": "library",
"version": "1.7.4",
"version": "1.7.5",
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": ">=6.0"
Expand Down
6 changes: 4 additions & 2 deletions src/VirtualServerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ public function getAll()
return $this->lumaserv->get('servers/virtual');
}

public function orderServer($cores, $memory, $disk, $addresses_v4, $backups, $password = null)
public function orderServer($cores, $memory, $disk, $addresses_v4, $backups, $password = null, $template = null, $hostname = null)
{
return $this->lumaserv->post('servers/virtual/order', [
'cores' => $cores,
'memory' => $memory,
'disk' => $disk,
'addresses_v4' => $addresses_v4,
'backups' => $backups,
'password' => $password
'password' => $password,
'template' => $template,
'hostname' => $hostname
]);
}

Expand Down

0 comments on commit c90c8bb

Please sign in to comment.