PTR

Set PTR Records

This endpoint sets 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 object of IP addresses and their associated hostnames to set PTR records.

post/set/ptr

Request

Request body application/x-www-form-urlencoded

signaturestring

The session signature obtained from the "Create AUTH-session" call.

kvm_idstring

The unique identifier of the KVM to set PTR records for.

valid_untilstring

The expiration timestamp of the session obtained from the "Create AUTH-session" call.

api_hoststring

The API host URL obtained from the "Create AUTH-session" call.

ipobject

A JSON-encoded object of IP addresses and their associated hostnames.

Example request

{
  "signature": "session_signature_12345",
  "kvm_id": "kvm_123456_789012",
  "valid_until": "1737476000",
  "api_host": "api_host.edisglobal.com",
  "ip": {
    "192.168.1.1": "hostname.example.com",
    "192.168.1.2": "another-host.example.com"
  }
}

Response

PTR records set successfully.

statusstring

The status of the operation.

messagestring

Confirmation message for set PTR records.

Example response

{
  "status": "success",
  "message": "PTR records set successfully."
}

Changes

No recorded changes to this operation across all 1 revision of this API.