„PUT /protection/routing/{ipAddress}/{cidr}“ ändern

master
Thomas Brinkmann 3 years ago
parent 859d886885
commit e5e01d4f8a
  1. 4
      PUT-%2Fprotection%2Frouting%2F%7BipAddress%7D%2F%7Bcidr%7D.md

@ -43,7 +43,7 @@
$curl = curl_init(); $curl = curl_init();
curl_setopt_array($curl, array( 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_CUSTOMREQUEST => 'PUT',
CURLOPT_POSTFIELDS =>'{ CURLOPT_POSTFIELDS =>'{
"l4_permanent": true, "l4_permanent": true,
@ -64,7 +64,7 @@ echo $response;
##### cURL ##### cURL
```bash ```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 'X-TOKEN: test-token' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--data-raw '{ --data-raw '{

Loading…
Cancel
Save