Atom feed of this document
 

 4.5.1. List PTR Records

Verb URI Description
GET /rdns/service-name?href=device-resource-uri List all PTR records configured for the specified Cloud device.
 

Example 4.106. List PTR Records Request: XML

GET https://dns.api.rackspacecloud.com/v1.0/1234/rdns/cloudServersOpenStack?href=https://dfw.servers.api.rackspacecloud.com/v2/1234/servers/0987654321
Accept: application/xml
X-Auth-Token: ea85e6ac-baff-4a6c-bf43-848020ea3812
Content-Type: application/xml
Content-Length: 0

 

Example 4.107. List PTR Records Request: JSON

GET https://dns.api.rackspacecloud.com/v1.0/1234/rdns/cloudServersOpenStack?href=https://dfw.servers.api.rackspacecloud.com/v2/1234/servers/0987654321
Accept: application/json
X-Auth-Token: ea85e6ac-baff-4a6c-bf43-848020ea3812
Content-Type: application/json
Content-Length: 0

 

Example 4.108. List PTR Records Response: XML

Status: 200 OK
Date: Thu, 28 Jul 2011 21:54:21 GMT
X-API-VERSION: 1.0.17
Content-Type: application/xml
Content-Length: 710

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rdns xmlns:ns2="http://www.w3.org/2005/Atom" xmlns="http://docs.rackspacecloud.com/dns/api/v1.0" xmlns:ns3="http://docs.rackspacecloud.com/dns/api/management/v1.0">
    <ns2:link href="https://dfw.servers.api.rackspacecloud.com/v2/1234/servers/0987654321" rel="cloudServersOpenStack"></ns2:link>
    <recordsList>
        <record id="PTR-000000" type="PTR" name="example.com" data="192.0.2.6" ttl="56000" updated="2011-06-24T01:12:51Z" created="2011-06-24T01:12:51Z"/>
        <record id="PTR-000001" type="PTR" name="example.com" data="2001:db8::6" ttl="56000" updated="2011-06-24T01:12:51Z" created="2011-06-24T01:12:51Z"/>
    </recordsList>
</rdns>

 

Example 4.109. List PTR Records Response: JSON

Status: 200 OK
Date: Thu, 28 Jul 2011 21:54:21 GMT
X-API-VERSION: 1.0.17
Content-Type: application/json
Content-Length: 680

{
  "recordsList" : {
    "records" : [ {
      "updated" : "2011-06-24T01:12:51.000+0000",
      "created" : "2011-06-24T01:12:51.000+0000",
      "ttl" : 56000,
      "name" : "example.com",
      "id" : "PTR-000000",
      "type" : "PTR",
      "data" : "192.0.2.6"
    }, {
      "updated" : "2011-06-24T01:12:51.000+0000",
      "created" : "2011-06-24T01:12:51.000+0000",
      "ttl" : 56000,
      "name" : "example.com",
      "id" : "PTR-000001",
      "type" : "PTR",
      "data" : "2001:db8::6"
    } ]
  },
  "link" : {
    "href" : "https://dfw.servers.api.rackspacecloud.com/v2/1234/servers/0987654321",
    "rel" : "cloudServersOpenStack",
    "content" : ""
  }
}



loading table of contents...