mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Implement exportzone
This commit is contained in:
parent
5161f7102b
commit
d94d1da445
1 changed files with 10 additions and 0 deletions
|
@ -43,10 +43,20 @@ class PdnsAPI {
|
|||
return $api->json;
|
||||
}
|
||||
|
||||
public function exportzone($zoneid) {
|
||||
$api = clone $this->http;
|
||||
$api->method = 'GET';
|
||||
$api->url = "/servers/localhost/zones/$zoneid/export";
|
||||
$api->call();
|
||||
|
||||
return $api->json;
|
||||
}
|
||||
|
||||
public function savezone($zone) {
|
||||
$api = clone $this->http;
|
||||
// We have to split up RRSets and Zoneinfo.
|
||||
// First, update the zone
|
||||
|
||||
$zonedata = $zone;
|
||||
unset($zonedata['id']);
|
||||
unset($zonedata['url']);
|
||||
|
|
Loading…
Add table
Reference in a new issue