curl --request POST \
--url https://dns-api.edisglobal.com/del/ptr \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_123456_789012 \
--data valid_until=1737476000 \
--data api_host=api_host.edisglobal.com \
--data-urlencode ip%5B0%5D=192.168.1.1 \
--data-urlencode ip%5B1%5D=192.168.1.2 \
--data-urlencode ip%5B2%5D=2001:db8:abcd:0012::1import requests
url = "https://dns-api.edisglobal.com/del/ptr"
payload = {
"signature": "session_signature_12345",
"kvm_id": "kvm_123456_789012",
"valid_until": "1737476000",
"api_host": "api_host.edisglobal.com",
"ip[0]": "192.168.1.1",
"ip[1]": "192.168.1.2",
"ip[2]": "2001:db8:abcd:0012::1"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
signature: 'session_signature_12345',
kvm_id: 'kvm_123456_789012',
valid_until: '1737476000',
api_host: 'api_host.edisglobal.com',
'ip[0]': '192.168.1.1',
'ip[1]': '192.168.1.2',
'ip[2]': '2001:db8:abcd:0012::1'
})
};
fetch('https://dns-api.edisglobal.com/del/ptr', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dns-api.edisglobal.com/del/ptr",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dns-api.edisglobal.com/del/ptr"
payload := strings.NewReader("signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dns-api.edisglobal.com/del/ptr")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1")
.asString();require 'uri'
require 'net/http'
url = URI("https://dns-api.edisglobal.com/del/ptr")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"status": "error",
"message": "Invalid input: 'signature' field is missing."
}{
"status": "error",
"message": "Session expired. Please re-authenticate."
}{
"status": "error",
"message": "Internal server error. Please contact support."
}Delete PTR
This endpoint deletes PTR (Reverse DNS) records for specified IP addresses.
The api_host parameter, obtained from the “Create AUTH-session” response,
is dynamically set in the URL.
Provide the signature, kvm_id, valid_until, and a JSON-encoded list of IP addresses to delete their PTR records.
curl --request POST \
--url https://dns-api.edisglobal.com/del/ptr \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_123456_789012 \
--data valid_until=1737476000 \
--data api_host=api_host.edisglobal.com \
--data-urlencode ip%5B0%5D=192.168.1.1 \
--data-urlencode ip%5B1%5D=192.168.1.2 \
--data-urlencode ip%5B2%5D=2001:db8:abcd:0012::1import requests
url = "https://dns-api.edisglobal.com/del/ptr"
payload = {
"signature": "session_signature_12345",
"kvm_id": "kvm_123456_789012",
"valid_until": "1737476000",
"api_host": "api_host.edisglobal.com",
"ip[0]": "192.168.1.1",
"ip[1]": "192.168.1.2",
"ip[2]": "2001:db8:abcd:0012::1"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
signature: 'session_signature_12345',
kvm_id: 'kvm_123456_789012',
valid_until: '1737476000',
api_host: 'api_host.edisglobal.com',
'ip[0]': '192.168.1.1',
'ip[1]': '192.168.1.2',
'ip[2]': '2001:db8:abcd:0012::1'
})
};
fetch('https://dns-api.edisglobal.com/del/ptr', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dns-api.edisglobal.com/del/ptr",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dns-api.edisglobal.com/del/ptr"
payload := strings.NewReader("signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dns-api.edisglobal.com/del/ptr")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1")
.asString();require 'uri'
require 'net/http'
url = URI("https://dns-api.edisglobal.com/del/ptr")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "signature=session_signature_12345&kvm_id=kvm_123456_789012&valid_until=1737476000&api_host=api_host.edisglobal.com&ip%5B0%5D=192.168.1.1&ip%5B1%5D=192.168.1.2&ip%5B2%5D=2001%3Adb8%3Aabcd%3A0012%3A%3A1"
response = http.request(request)
puts response.read_body{
"status": "success"
}{
"status": "error",
"message": "Invalid input: 'signature' field is missing."
}{
"status": "error",
"message": "Session expired. Please re-authenticate."
}{
"status": "error",
"message": "Internal server error. Please contact support."
}Body
Required parameters to delete PTR records.
The session signature obtained from the "Create AUTH-session" call.
"session_signature_12345"
The unique identifier of the KVM to delete PTR records for.
"kvm_123456_789012"
The expiration timestamp of the session obtained from the "Create AUTH-session" call.
"1737476000"
The API host URL obtained from the "Create AUTH-session" call.
"api_host.edisglobal.com"
A JSON-encoded list of IP addresses to delete their PTR records.
[
"192.168.1.1",
"192.168.1.2",
"2001:db8:abcd:0012::1"
]
Response
PTR records deleted successfully.
The status of the operation.
"success"
Was this page helpful?