Zoneprofile:create

Create a new profile for your zones

To create a new profile for your zones, send the following request to our API server. The element \<zoneprofile:record> may be repeated to specify multiple records for the new profile.

XML Template
<?xml version="1.0" encoding="UTF-8"?>
    <request xmlns:zoneprofile="http://www.eurodns.com/zoneprofile" xmlns:record="http://www.eurodns.com/record">
        <zoneprofile:create>
            <zoneprofile:name>#PROFILE.NAME#</zoneprofile:name>
            <zoneprofile:records>
                <zoneprofile:record>
                    <record:type>#RECORD TYPE#</record:type>
                    <record:frame>#RECORD REDIRECTION TYPE#</record:frame>
                    <record:newurl>#RECORD NEWURL#</record:newurl>
                    <record:source>#RECORD SOURCE#</record:source>
                    <record:destination>#RECORD DESTINATION#</record:destination>
                    <record:host>#RECORD HOST#</record:host>
                    <record:data>#RECORD DATA#</record:data>
                    <record:ttl>#RECORD TTL#</record:ttl>
                    <record:mx_priority>#RECORD MX PRIORITY#</record:mx_priority>
                    <record:refresh>#RECORD REFRESH#</record:refresh>
                    <record:retry>#RECORD RETRY#</record:retry>
                    <record:expire>#RECORD EXPIRE#</record:expire>
                    <record:minimum>#RECORD MINIMUM#</record:minimum>
                    <record:serial>#RECORD SERIAL#</record:serial>
                    <record:resp_person>#RECORD RESP PERSON#</record:resp_person>
                    <record:weight>#RECORD WEIGHT#</record:weight>
                    <record:port>#RECORD PORT#</record:port>
                    <record:flag>#RECORD FLAG#</record:flag>
                    <record:tag>#RECORD TAG#</record:tag>
                </zoneprofile:record>
            </zoneprofile:records>
        </zoneprofile:create>
    </request>

<zone:create> (Occurrences: 1)

 R  #PROFILE.NAME#  The name of the profile

<zone:records> (Occurrences: 1)

<zone:record> (Occurrences: 1+)

Note: Repeat this section to specify multiple records

R #RECORD TYPE# Type of the record (SOA, NS, PTR, MX, A, CNAME, AAAA, TXT, APEX, CAA, UrlForward, MailForward)
R/O #RECORD REDIRECTION TYPE# http301, http302, frame ( urlForward )
R/O #RECORD NEWURL# New url of the record ( urlForward )
R/O #RECORD SOURCE# Source of the record ( mailForward )
R/O #RECORD DESTINATION# Destination of the record ( mailForward )
R/O #RECORD HOST# Host of the record
R/O #RECORD DATA# Data of the record
R/O #RECORD TTL# How long to cache records retrieved from the zone file (600, 900, 1800, 3600, 7200, 14400, 21600, 43200, 86400, 172800, 432000, 604800)
R/O #RECORD MX PRIORITY# If record type is MX, priority of the MX record (10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
R/O #RECORD REFRESH# If record type is SOA, how often secondary DNS servers should check if changes are made to the zone
R/O #RECORD RETRY# If record type is SOA.
R/O #RECORD EXPIRE# If record type is SOA, how long the zone will be valid after a refresh.
R/O #RECORD MINIMUM# If record type is SOA, used as the default TTL for new records created within the zone.
R/O #RECORD SERIAL# If record type is SOA, used by secondary DNS servers to check if the zone has changed
R/O #RECORD RESP PERSON# If record type is SOA, specifies the domain mailbox name for a responsible person
R/O #RECORD WEIGHT# If record type is SRV
R/O #RECORD PORT# If record type is SRV
R/O #RECORD FLAG# The issuer critical flag (in case of CAA record)
R/O #RECORD TAG# The tag (issue/issuewild/iodef, in case of CAA record)
If the action was successful, the following code will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response xmlns="http://www.eurodns.com/">
    <result code="1000">
        <msg>Command completed successfully</msg>
    </result>
</response>
Request example:
<request xmlns:zoneprofile="http://www.eurodns.com/zoneprofile" xmlns:record="http://www.eurodns.com/record">
    <zoneprofile:create>
        <zoneprofile:name>my profile</zoneprofile:name>
        <zoneprofile:records>

            <zoneprofile:record>
                <record:type>MX</record:type>
                <record:host>@</record:host>
                <record:data>mail</record:data>
                <record:ttl>3600</record:ttl>
                <record:mx_priority>10</record:mx_priority>
            </zoneprofile:record>

            <zoneprofile:record>
                <record:type>MailForward</record:type>
                <record:source>test</record:source>
                <record:destination>test@hotmail.com</record:destination>
            </zoneprofile:record>

            <zoneprofile:record>
                <record:type>UrlForward</record:type>
                <record:host>@</record:host>
                <record:frame>no</record:frame>
                <record:redirection_type>http302</record:redirection_type>
                <record:newurl>test302.com</record:newurl>
            </zoneprofile:record>

        </zoneprofile:records>
    </zoneprofile:create>
</request>

Legend

O The element is optional and does not have to be specified in the request and/or answer
R The element is mandatory and has to specified in the request and/or answer