Create Zone
This commit is contained in:
parent
798c3d53b8
commit
c2100e3417
@ -23,9 +23,6 @@ class PagesController extends Controller
|
||||
$zone_name = $createzone_req->zonename;
|
||||
$zone_ttl = $createzone_req->zonettl;
|
||||
$zone_primary_ip = $createzone_req->primaryip;
|
||||
$headers = [
|
||||
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'
|
||||
];
|
||||
$client = new Client(); //GuzzleHttp\Client
|
||||
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
|
||||
\GuzzleHttp\RequestOptions::JSON => [
|
||||
@ -36,13 +33,12 @@ class PagesController extends Controller
|
||||
'0' => 'pdnstest.tfmm.co.'
|
||||
],
|
||||
'records' => [
|
||||
'0' => [
|
||||
'content' => 'pdnstest.tfmm.co. hostmaster.tfmm.co. 1 1800 900 604800 86400',
|
||||
'disabled' => 'false',
|
||||
'ttl' => '86400',
|
||||
'type' => 'SOA'
|
||||
],
|
||||
'1' => [
|
||||
'records' => [
|
||||
'content' => $zone_primary_ip,
|
||||
'disabled' => 'false',
|
||||
'name' => $zone_name,
|
||||
|
Loading…
Reference in New Issue
Block a user