WAPI – command nsset-create

  NSSETs, WAPI (API interface)

Command nsset-create is used to create a new NSSET. NSSET contains a list of name servers, each server contains name items and optionally its IP address. You can also set technical contact, if you do not specify it then will be set default (WEDOS). NSSET can be used for CZ domains only.

Parameters

  • tld – TLD
  • name – NSSET name
  • dns – list of name servers, each item contains informations about name server
    • server
      • name – server nname
      • addr_ipv4 – IPv4 address
      • addr_ipv6 – IPv6 address
  • tech_c – technical contact – not required

Return Values

  • 1000 = OK, NSSET created
  • 2201 = wrong TLD entered
  • 2210 = invalid format of ns servers
  • 2211 = too much ns servers
  • 2216 = invalid syntax in technical contact 
  • 2247 = unsupported NSSET format 
  • 3228 = not support working with contacts
  • 3229 = error loading contact
  • 3242 = NSSET is unavailable
  • 3244 = NSSET creation failed
  • 3245 = NSSET is already registered
  • 3246 = unavailable
  • 3247 = unavailable
  • 3248 = unavailable – quarantine
  • 3249 = unavailable – reserved
  • 3250 = unavailable – blocked
  • 3251 = already registered
  • 4212 = connection error
  • 4218 = check failed – communication error
  • 4219 = creation failed – communication error

Return data

If successful, the command returns in a data node this:

  • nsset – name of created NSSET

Example of use

XML query:

<request>
 <user>tester</user>
 <auth>ae58a4590c1f5b1ace8edbb0c4fd1cdb1e724dec</auth>
 <command>nsset-create</command>
 <clTRID>9344</clTRID>
 <data>
  <tld>cz</tld>
  <name>TEST</name>
  <dns>
   <server>
    <name>ns.wedos.net</name>
   </server>
   <server>
    <name>asdf.wedos.com</name>
   </server>
  </dns>
  <tech_c>TESTER</tech_c>
 </data>
</request>

XML response:

<response>
 <code>1000</code>
 <result>OK</result>
 <timestamp>1288163117</timestamp>
 <clTRID>9344</clTRID>
 <svTRID>1288163117.8597.16559.1</svTRID>
 <command>nsset-create</command>
 <data>
  <nsset>TEST</nsset>
 </data>
</response>