{"id":1305,"date":"2016-07-23T03:59:31","date_gmt":"2016-07-23T03:59:31","guid":{"rendered":"http:\/\/kb.srs-x.com\/en\/?page_id=1305"},"modified":"2018-01-25T03:48:44","modified_gmt":"2018-01-25T03:48:44","slug":"list-dnssec-records","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/dnssec\/list-dnssec-records","title":{"rendered":"List DNSSEC Records"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/dnssec\/list-dnssec-record\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Return DNSSEC records list.<\/p>\n<h2>Query<\/h2>\n<p>domain\/listds<\/p>\n<h2>Variables List<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Nama<\/th>\n<th > Tipe Data<\/th>\n<th > Required\/Optional<\/th>\n<th > Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td > varchar(255)<\/td>\n<td > Required<\/td>\n<td > Domain name<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<h2>Request Example<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post['username'] = 'apiusername';\r\n$post['password'] = hash('sha256','apipassword');\r\n$post['domain'] = 'domain.co.id'\r\n\r\n$apiurl = 'http:\/\/[reseller_url]\/api\/domain\/listds';\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\r\n$response = curl_exec($ch);\r\ncurl_close($ch);\r\n<\/pre>\n<h2>Respond Example<\/h2>\n<p><strong>Success<\/strong><br \/>\n1. DNSSEC not initiated yet<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;\/dnssec&gt;\r\n    &lt;domain&gt;domain.co.id&lt;\/domain&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>2. DNSSEC initiated<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;dnssec&gt;\r\n      &lt;value&gt;\r\n        &lt;id&gt;18&lt;\/id&gt;\r\n        &lt;keytag&gt;1233&lt;\/keytag&gt;\r\n        &lt;algorithm&gt;1&lt;\/algorithm&gt;\r\n        &lt;digesttype&gt;1&lt;\/digesttype&gt;\r\n        &lt;digest&gt;123456789ABCDEF123456789ABCDEF123456789ABCDEF123456789ABCDEF1234&lt;\/digest&gt;\r\n      &lt;\/value&gt;\r\n      &lt;value&gt;\r\n        &lt;id&gt;19&lt;\/id&gt;\r\n        &lt;keytag&gt;1234&lt;\/keytag&gt;\r\n        &lt;algorithm&gt;2&lt;\/algorithm&gt;\r\n        &lt;digesttype&gt;8&lt;\/digesttype&gt;\r\n        &lt;digest&gt;123456789ABCDEF123456789ABCDEF123456789ABCDEF123456789ABCDEFABC12&lt;\/digest&gt;\r\n      &lt;\/value&gt;\r\n    &lt;\/dnssec&gt;\r\n    &lt;domain&gt;domain.co.id&lt;\/domain&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p><strong>Failed<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1001&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Failed&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description Return DNSSEC records list. Query domain\/listds Variables List Request Example Respond Example Success 1. DNSSEC not initiated yet 2. DNSSEC initiated Failed<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1303,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1305"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/comments?post=1305"}],"version-history":[{"count":5,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1305\/revisions"}],"predecessor-version":[{"id":1665,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1305\/revisions\/1665"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1303"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=1305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}