diff --git a/DELETE-%2Fprotection%2Fflexrule%2F%7Buuid%7D.md b/DELETE-%2Fprotection%2Fflexrule%2F%7Buuid%7D.md new file mode 100644 index 0000000..f2b8759 --- /dev/null +++ b/DELETE-%2Fprotection%2Fflexrule%2F%7Buuid%7D.md @@ -0,0 +1,78 @@ +## **DELETE /protection/flexrules/{uuid}** + + +## **Inhalt** +--- +- Parameter +- Optionale Parameter +- Beispiel Anfrage +- Beispiel Antwort +- Mögliche Fehlermeldungen +--- + +### Parameter + +|URL Parameter | Typ | Beschreibung| +|----------|-----|-------------| +|uuid | string | Die UUID der Flexrule + +|Body Parameter | Typ | Beschreibung| +|----------|-----|-------------| +| - | - | - | + + +--- + +### Optionale Parameter + +|Query-String Parameter | Typ | Beschreibung| +|----------|-----|-------------| +|-|-|-| + +--- + +### Beispiel Anfrage + +##### PHP +```php + 'control.local/api/v2/protection/flexrules/ABCDE-FGHI-1234-567-8910', + CURLOPT_CUSTOMREQUEST => 'DELETE', + CURLOPT_HTTPHEADER => array( + 'X-TOKEN: test-token', + 'Content-Type: application/json' + ), +)); + +$response = curl_exec($curl); + +curl_close($curl); +echo $response; +``` + +##### cURL +```bash +curl --location --request DELETE 'control.local/api/v2/protection/flexrules/ABCDE-FGHI-1234-567-8910' \ +--header 'X-TOKEN: test-token' \ +--header 'Content-Type: application/json' +``` + +--- + +### Beispiel Antwort + +```json +{ + "status": "OK", +} +``` + +### Mögliche Fehlermeldungen + +> :warning: Status Code **403** - Permission denied + +> :warning: Status Code **403** - You're not allowed to delete flexrules outside your ip subnets \ No newline at end of file