From a8e68c0ddf77ff6aa2c8217f5d06b705fa70c80b Mon Sep 17 00:00:00 2001 From: Thomas Brinkmann Date: Thu, 2 Jun 2022 16:44:18 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDELETE=20/dns/reverse/{ipaddress}/reco?= =?UTF-8?q?rd=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-%2Fdns%2Freverse%2F%7Bipaddress%7D%2Frecord.md | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 DELETE-%2Fdns%2Freverse%2F%7Bipaddress%7D%2Frecord.md diff --git a/DELETE-%2Fdns%2Freverse%2F%7Bipaddress%7D%2Frecord.md b/DELETE-%2Fdns%2Freverse%2F%7Bipaddress%7D%2Frecord.md new file mode 100644 index 0000000..475f8ce --- /dev/null +++ b/DELETE-%2Fdns%2Freverse%2F%7Bipaddress%7D%2Frecord.md @@ -0,0 +1,79 @@ +## **DELETE /dns/reverse/{ipaddress}/record** + + +## **Inhalt** +--- +- Parameter +- Optionale Parameter +- Beispiel Anfrage +- Beispiel Antwort +- Mögliche Fehlermeldungen +--- + +### Parameter + +|URL Parameter | Typ | Beschreibung| +|----------|-----|-------------| +|ipaddress | string | Die IP-Adresse dessen rDNS Record gelöscht werden soll + +|Body Parameter | Typ | Beschreibung| +|----------|-----|-------------| +| - | - | - | + + +--- + +### Optionale Parameter + +|Query-String Parameter | Typ | Beschreibung| +|----------|-----|-------------| +| - | - | -| + +--- + +### Beispiel Anfrage + +##### PHP +```php + 'control.local/api/v2/dns/reverse/x.x.x.x/record', + 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/dns/reverse/x.x.x.x/record' \ +--header 'X-TOKEN: test-token' \ +--header 'Content-Type: application/json' +``` + +--- + +### Beispiel Antwort + +```json +{ + "status": "OK" +} +``` + +### Mögliche Fehlermeldungen + + +> :warning: Status Code **400** - Seems the ip address you've entered are not owened by you + +> :warning: Status Code **403** - Permission denied