domain_update_dns ()
Edit record in DNS zone specified by ID of DNS record.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
dns_id | unique id of DNS record (for list of all records use domain_list_dns)* | |
HTTP Method: | POST | at least one of thes has to be set * |
Parameters: | name | name of record |
ttl | TTL value of record | |
type | type of record | |
ip | value of DNS record | |
priority | priority of record | |
Returns: | HTTP code | 200 (OK) |
reply | answer is empty | |
HTTP code | 400 (Bad request) | |
invalid_values | array of invalid values with error messages |
CURL
curl -d"name=%name%&ttl=%ttl%&type=%type%&ip=%ip%&priority=%priority%" "https://admin.systems90.cz/api/domain_update_dns?sid=%sid%&dns_id=%dns_id%"
PHP Library
$api->domain_update_dns(
array(
'dns_id' => %dns_id%,
),
array(
'name' => %name%,
'ttl' => %ttl%,
'type' => %type%,
'ip' => %ip%,
'priority' => %priority%,
)
);
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
</reply>