Create Zone

This commit is contained in:
Russ Long 2018-03-30 13:07:30 -04:00
parent e773939bd0
commit ad638e648b

View File

@ -28,6 +28,8 @@ class PagesController extends Controller
];
$client = new Client(); //GuzzleHttp\Client
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
\GuzzleHttp\RequestOptions::JSON => [
'form_params' => [
'kind' => 'Native',
'masters' => [],
@ -50,6 +52,7 @@ class PagesController extends Controller
'type' => 'A'
]
]
]
],
'headers' => [
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'