All URIs are relative to https://api.simply.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| addDnsRecord() | POST /2/my/products/{object}/dns/records/ | Add new DNS record to a product DNS zone |
| ddnsHelper() | GET /2/ddns/ | Dynamic DNS helper endpoint |
| deleteDnsRecord() | DELETE /2/my/products/{object}/dns/records/{record_id}/ | Remove DNS record from a product DNS zone |
| dyndns() | GET /2/dyndns/ | DynDNS protocol-compatible endpoint |
| getDnsRecords() | GET /2/my/products/{object}/dns/records/ | Retrieve all DNS records for a product |
| getDnsZone() | GET /2/my/products/{object}/dns/ | Retrieve DNS zone metadata |
| reloadDnsZone() | POST /2/my/products/{object}/dns/reload/ | Force-reload a DNS zone |
| updateDnsRecord() | PUT /2/my/products/{object}/dns/records/{record_id}/ | Update a DNS record in a product DNS zone |
addDnsRecord($object, $dnsRecordPayload): \SimplyCom\SimplyCom\Model\AddDnsRecord200ResponseAdd new DNS record to a product DNS zone
Creates a new DNS record in the DNS zone. Supports all common record types including A, AAAA, CNAME, MX, TXT, SRV, and more.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
$dnsRecordPayload = new \SimplyCom\SimplyCom\Model\DnsRecordPayload(); // \SimplyCom\SimplyCom\Model\DnsRecordPayload
try {
$result = $apiInstance->addDnsRecord($object, $dnsRecordPayload);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->addDnsRecord: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. | |
| dnsRecordPayload | \SimplyCom\SimplyCom\Model\DnsRecordPayload |
\SimplyCom\SimplyCom\Model\AddDnsRecord200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ddnsHelper($hostname, $domain, $record, $myip, $ttl): stringDynamic DNS helper endpoint
User-friendly DDNS endpoint that provides human-readable responses. For DynDNS protocol compatibility, use the /dyndns/ endpoint instead.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$hostname = home.example.com; // string | The full hostname you wish to create/update. Domain and record will be inferred from this.
$domain = example.com; // string | The domain you wish to update. Overrides data from hostname parameter.
$record = home; // string | The name of the DNS record you wish to create/update on the domain. Overrides data inferred from hostname parameter.
$myip = 127.0.0.1; // string | The IP address to be set. Will automatically use the client IP (REMOTE_ADDR) if this parameter is not provided. We recommend leaving this parameter blank.
$ttl = 360; // int | The TTL (Time To Live) of the generated DNS record in seconds. Defaults to 3600.
try {
$result = $apiInstance->ddnsHelper($hostname, $domain, $record, $myip, $ttl);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->ddnsHelper: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| hostname | string | The full hostname you wish to create/update. Domain and record will be inferred from this. | |
| domain | string | The domain you wish to update. Overrides data from hostname parameter. | [optional] |
| record | string | The name of the DNS record you wish to create/update on the domain. Overrides data inferred from hostname parameter. | [optional] |
| myip | string | The IP address to be set. Will automatically use the client IP (REMOTE_ADDR) if this parameter is not provided. We recommend leaving this parameter blank. | [optional] |
| ttl | int | The TTL (Time To Live) of the generated DNS record in seconds. Defaults to 3600. | [optional] [default to 3600] |
string
- Content-Type: Not defined
- Accept:
text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteDnsRecord($object, $recordId): \SimplyCom\SimplyCom\Model\SuccessResponseRemove DNS record from a product DNS zone
Deletes a specific DNS record by its ID. The DNS zone will be automatically reloaded after deletion.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
$recordId = 56; // int | The id of a DNS record in a DNS zone.
try {
$result = $apiInstance->deleteDnsRecord($object, $recordId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->deleteDnsRecord: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. | |
| recordId | int | The id of a DNS record in a DNS zone. |
\SimplyCom\SimplyCom\Model\SuccessResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
dyndns($hostname, $myip, $domain): stringDynDNS protocol-compatible endpoint
Dyndns-compatible endpoint that emulates DynDNS protocol responses and functionality. Supports both IPv4 and IPv6 addresses.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$hostname = home.example.com; // string | The full hostname you wish to create/update. Domain and record will be inferred from this.
$myip = 127.0.0.1; // string | The IP address to be set. Will automatically use the client IP (REMOTE_ADDR) if this parameter is not provided. We recommend leaving this parameter blank.
$domain = example.com; // string | Domain to change records on, must be used if domain cannot be inferred from hostname or if incorrectly inferred. Overrides data from hostname parameter.
try {
$result = $apiInstance->dyndns($hostname, $myip, $domain);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->dyndns: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| hostname | string | The full hostname you wish to create/update. Domain and record will be inferred from this. | |
| myip | string | The IP address to be set. Will automatically use the client IP (REMOTE_ADDR) if this parameter is not provided. We recommend leaving this parameter blank. | [optional] |
| domain | string | Domain to change records on, must be used if domain cannot be inferred from hostname or if incorrectly inferred. Overrides data from hostname parameter. | [optional] |
string
- Content-Type: Not defined
- Accept:
text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getDnsRecords($object): \SimplyCom\SimplyCom\Model\GetDnsRecords200ResponseRetrieve all DNS records for a product
Returns a complete list of all DNS records in the zone, including A, AAAA, CNAME, MX, TXT, SRV, and other record types.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
try {
$result = $apiInstance->getDnsRecords($object);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->getDnsRecords: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. |
\SimplyCom\SimplyCom\Model\GetDnsRecords200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getDnsZone($object): \SimplyCom\SimplyCom\Model\GetDnsZone200ResponseRetrieve DNS zone metadata
Retrieve meta information about a DNS zone for a product, including zone name and configuration.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
try {
$result = $apiInstance->getDnsZone($object);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->getDnsZone: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. |
\SimplyCom\SimplyCom\Model\GetDnsZone200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
reloadDnsZone($object): \SimplyCom\SimplyCom\Model\SuccessResponseForce-reload a DNS zone
Manually triggers a DNS zone reload. Usually not necessary as zone reloads happen automatically after record modifications.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
try {
$result = $apiInstance->reloadDnsZone($object);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->reloadDnsZone: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. |
\SimplyCom\SimplyCom\Model\SuccessResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateDnsRecord($object, $recordId, $dnsRecordPayload): \SimplyCom\SimplyCom\Model\SuccessResponseUpdate a DNS record in a product DNS zone
Updates an existing DNS record. All fields should be provided, as this is a full update operation. The DNS zone will be automatically reloaded if changes are detected.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SimplyCom\Api\DnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$object = example.com; // string | The product handle/UUID, as found in the /my/products/ endpoint.
$recordId = 56; // int | The id of a DNS record in a DNS zone.
$dnsRecordPayload = new \SimplyCom\SimplyCom\Model\DnsRecordPayload(); // \SimplyCom\SimplyCom\Model\DnsRecordPayload
try {
$result = $apiInstance->updateDnsRecord($object, $recordId, $dnsRecordPayload);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DnsApi->updateDnsRecord: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| object | string | The product handle/UUID, as found in the /my/products/ endpoint. | |
| recordId | int | The id of a DNS record in a DNS zone. | |
| dnsRecordPayload | \SimplyCom\SimplyCom\Model\DnsRecordPayload |
\SimplyCom\SimplyCom\Model\SuccessResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]