Set reverse DNS
curl --request POST \
--url https://my.server.express/api/v1/cloud/{id}/network \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ptr": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '<string>', ptr: '<string>'})
};
fetch('https://my.server.express/api/v1/cloud/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/network"
payload = {
"ip": "<string>",
"ptr": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>",
"data": {
"taskId": "<string>",
"limit": 123,
"used": 123
}
}{
"success": false,
"error": "<string>"
}Cloud
Set reverse DNS
Sets the PTR record for one of this VM’s addresses — its primary or extra IPv4s, or any address inside the customer’s
IPv6 prefix (compressed before saving). Needs the operate role; session auth only. Blocked while PENDING/SUSPENDED (403)
or busy (409); 403 if the IP isn’t this server’s; 404 if the VM has no IP yet. Writes an UPDATE_RDNS audit entry.
POST
/
v1
/
cloud
/
{id}
/
network
Set reverse DNS
curl --request POST \
--url https://my.server.express/api/v1/cloud/{id}/network \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ptr": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ip: '<string>', ptr: '<string>'})
};
fetch('https://my.server.express/api/v1/cloud/{id}/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/network"
payload = {
"ip": "<string>",
"ptr": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>",
"data": {
"taskId": "<string>",
"limit": 123,
"used": 123
}
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Service id of the cloud server.
Body
application/json
Response
rDNS updated.