Updating SOA Record
Use the set operation to update a SOA record for the DNS zone template, or for the site (site alias) specified by ID. The parameters in the SOA record of the zone template will be applied to a new site or site alias on creation. You can update multiple SOA records in a single packet. For more information about SOA records, refer to the SOA parameters section.
Request Packet Structure
A request XML packet updating a SOA record includes the set operation node:
The graphical representation of the set node is as follows:
- The filter node is optional. It specifies the filtering rule. For more information, refer to the Available Filters section. Data type: simpleFilterType (
- The soa node is required. Specifies the SOA parameters. Data type: SOAType (
Note: If you omit the filter node, the operation will update SOA parameters for the DNS zone template.
You can update multiple SOA records in a single packet. Add as many set operations as the number of different filtering rules.
Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.
Response Packet Structure
The set node of the output XML packet is structured as follows:
- The result node is optional. It is required in case when an error (if it occurred) was not of a system type. Data type: resultType (
- The status node is required. It specifies the execution status of the set operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. It is used to return the error code when the set operation fails. Data type: unsignedInt.
- The errtext node is optional. It is used to return the error message if the set operation fails. Data type: string.
- The site-id node is optional. It is required if the site ID was set as a filtering rule in the request packet. Data type: integer.
- The site-alias-id node is optional. It is required if the site alias ID was set as a filtering rule in the request packet. Data type: integer.
Updating a single SOA record
This request packet updates a SOA record of the site with ID 12.
Updating multiple SOA records
This request packet updates SOA records of the sites with ID 12 and ID 13.
Response (when the site with ID 13 was not found on the server, and the site with ID 12 was updated):