Tenants
Custom Nameservers
Custom Nameservers endpoint reference.
Get
List of custom nameservers for the Tenant.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
tenantId | string | Yes | Tenant identifier. |
php
$response = $client->tenants()->customNameservers()->get('TENANT_ID');
Create
Add a custom nameserver to the Tenant.
$client->tenants()->customNameservers()->create('TENANT_ID', [
'ns_name' => 'ns1.example.com',
'ns_set' => 1,
]);
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
tenantId | string | Yes | Tenant identifier. | |
values | array | Yes | `ns_name` is required and is the FQDN of the name server. `ns_set` optionally numbers the set the name server belongs to. |
php
$response = $client->tenants()->customNameservers()->create('TENANT_ID', []);
Delete
Delete a custom nameserver from the Tenant.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
tenantId | string | Yes | Tenant identifier. | |
nsName | string | Yes | FQDN of the name server to delete. |
php
$response = $client->tenants()->customNameservers()->delete('TENANT_ID', 'NS_NAME');

