Create Zone
This commit is contained in:
parent
e773939bd0
commit
ad638e648b
@ -28,6 +28,8 @@ 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 => [
|
||||||
|
|
||||||
'form_params' => [
|
'form_params' => [
|
||||||
'kind' => 'Native',
|
'kind' => 'Native',
|
||||||
'masters' => [],
|
'masters' => [],
|
||||||
@ -50,6 +52,7 @@ 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