vserver_ipv6_subnet_rdns_add ()
The function for adding another reverse record for the given IPv6 range. This function is available only, if the customer at us, has defined their own IPv6 range. Otherwise, send an authorized request to order a range.
HTTP Method: | GET | |
---|
Parameters: | sid | session id* |
---|
| ipv6_subnet_id | unique IPv6 IP range* |
| ipv6_address | IPv6 address, allowed short and full format, the address must fall into the given subnet* |
| hostname | DNS name* |
Returns: | HTTP code | 200 (OK) |
---|
| | Function call was successful. The reverse DNS has been changed. Reply portion reply is empty. |
Return errors
Error code | HTTP response code | Description |
---|
1 | 400 (Bad request) |
Function was not performed, because all required parameters were not entered. Reply portion reply is empty.
|
3 | 403 (Forbidden) |
Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty.
|
4 | 400 (Bad request) |
Function call failed, some parameter(s) have invalid value (e.g. contains invalid characters. Reply portion reply specifies invalid parameters.
|
5 | 403 (Forbidden) |
Function was not performed, because it is probably an attempt to manipulate a subnet, that is not under your management. Reply portion reply is empty.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_ipv6_subnet_rdns_add?sid=%sid%&ipv6_address=%ipv6_address%&ipv6_subnet_id=%ipv6_subnet_id%&hostname=%hostname%"
PHP Library
$api->vserver_ipv6_subnet_rdns_add(array(
'ipv6_address' => %ipv6_address%,
'ipv6_subnet_id' => %ipv6_subnet_id%,
'hostname' => %hostname%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>Reverse DNS added</text>
</status>
</reply>