set_dnssec_info

Adds or removes DS records for a given domain. To delete a single record, send a set_dnssec_info request with the full record array minus the one you want to remove.

Examples for set_dnssec_info

<?xml version="1.0" encoding="UTF-8"?>
<OPS_envelope>````
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">set_dnssec_info</item>
                <item key="object">domain</item>
                <item key="domain">yourdomain.com</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="dnssec">
                            <dt_array>
                                <item key="0">
                                    <dt_assoc>
                                        <item key="algorithm">3</item>
                                        <item key="key_tag">321</item>
                                        <item key="digest_type">2</item>
                                        <item key="digest">3167e8c371b04da4936e4933358e861ab8dfff289f401eaaa2b9fd32f59e 9358</item>
                                    </dt_assoc>
                                </item>
                            </dt_array>
                        </item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
<?xml version='1.0' encoding="UTF-8" standalone="no"?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">DOMAIN</item>
                <item key="response_text">Command successful</item>
                <item key="action">REPLY</item>
                <item key="response_code">200</item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>

Example for removing all DNSSEC entries from a domain

To remove all DNSSEC entries, send in a set_dnssec_info request with an empty array

<?xml version="1.0" encoding="UTF-8"?>
<OPS_envelope>
 <header>
   <version>0.9</version>
 </header>
 <body>
   <data_block>
     <dt_assoc>
       <item key="protocol">XCP</item>
       <item key="action">set_dnssec_info</item>
       <item key="object">domain</item>
       <item key="domain">yourdomain.com</item>
       <item key="attributes">
         <dt_assoc>
           <item key="dnssec">
             <dt_array/>
           </item>
         </dt_assoc>
       </item>
     </dt_assoc>
   </data_block>
 </body>
</OPS_envelope>