import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const fqdn = await client.fqdns.delete('id');
console.log(fqdn.data);{
"data": {
"id": "1293384261075731499",
"record_type": "fqdn",
"connection_id": "1516447646313612565",
"fqdn": "example.com",
"port": 5060,
"dns_record_type": "a",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Delete an FQDN.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const fqdn = await client.fqdns.delete('id');
console.log(fqdn.data);{
"data": {
"id": "1293384261075731499",
"record_type": "fqdn",
"connection_id": "1516447646313612565",
"fqdn": "example.com",
"port": 5060,
"dns_record_type": "a",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1517907029795014409"
Successful response with details about an FQDN connection.
Show child attributes
Identifies the resource.
"1293384261075731499"
Identifies the type of the resource.
"fqdn"
ID of the FQDN connection to which this FQDN is attached.
FQDN represented by this resource.
"example.com"
Port to use when connecting to this FQDN.
5060
The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used.
"a"
ISO 8601 formatted date indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
{
"id": "1293384261075731499",
"record_type": "fqdn",
"connection_id": "1516447646313612565",
"fqdn": "example.com",
"port": 5060,
"dns_record_type": "a",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}Was this page helpful?