|
|
|
@ -43,7 +43,7 @@ |
|
|
|
|
$curl = curl_init(); |
|
|
|
|
|
|
|
|
|
curl_setopt_array($curl, array( |
|
|
|
|
CURLOPT_URL => 'control.local/api/v2/protection/routing/192.168.1.2/32', |
|
|
|
|
CURLOPT_URL => 'https://api.dsh.gg/api/v2/protection/routing/192.168.1.2/32', |
|
|
|
|
CURLOPT_CUSTOMREQUEST => 'PUT', |
|
|
|
|
CURLOPT_POSTFIELDS =>'{ |
|
|
|
|
"l4_permanent": true, |
|
|
|
@ -64,7 +64,7 @@ echo $response; |
|
|
|
|
|
|
|
|
|
##### cURL |
|
|
|
|
```bash |
|
|
|
|
curl --location --request PUT 'control.local/api/v2/protection/routing/192.168.1.2/32' \ |
|
|
|
|
curl --location --request PUT 'https://api.dsh.gg/api/v2/protection/routing/192.168.1.2/32' \ |
|
|
|
|
--header 'X-TOKEN: test-token' \ |
|
|
|
|
--header 'Content-Type: application/json' \ |
|
|
|
|
--data-raw '{ |
|
|
|
|