Create Zone
This commit is contained in:
parent
ad638e648b
commit
846048b9de
@ -29,8 +29,6 @@ class PagesController extends Controller
|
|||||||
$client = new Client(); //GuzzleHttp\Client
|
$client = new Client(); //GuzzleHttp\Client
|
||||||
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
|
$result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [
|
||||||
\GuzzleHttp\RequestOptions::JSON => [
|
\GuzzleHttp\RequestOptions::JSON => [
|
||||||
|
|
||||||
'form_params' => [
|
|
||||||
'kind' => 'Native',
|
'kind' => 'Native',
|
||||||
'masters' => [],
|
'masters' => [],
|
||||||
'name' => $zone_name,
|
'name' => $zone_name,
|
||||||
@ -52,7 +50,6 @@ class PagesController extends Controller
|
|||||||
'type' => 'A'
|
'type' => 'A'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
|
||||||
],
|
],
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'
|
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'
|
||||||
|
Loading…
Reference in New Issue
Block a user