„DELETE /protection/flexrule/{uuid}“ ändern

master
Thomas Brinkmann 3 years ago
parent 1780a9b5ff
commit d898185e99
  1. 78
      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
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '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
Loading…
Cancel
Save