Successful Response
Array of objects (Data) | |
object (PaginationMeta) |
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessFqdn.list(page={"number":1,"size":20})
{- "data": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "fqdn": "string",
- "id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
{- "description": "string",
- "fqdn": "string"
}
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "fqdn": "string",
- "id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.AccessFqdn.retrieve('fqdn_id') res.delete()
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "fqdn": "string",
- "id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessFqdn.retrieve("fqdn_id")
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "fqdn": "string",
- "id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
{- "description": "string"
}
{- "created_at": "2019-08-24T14:15:22Z",
- "description": "string",
- "fqdn": "string",
- "id": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Successful Response
Array of objects (Data) | |
object (PaginationMeta) |
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.AccessFqdns.retrieve_ip.retrieve("fqdn_id",page={"number":1,"size":20})
{- "data": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "fqdn": "string",
- "ip_address": "192.168.0.1",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Get all FQDNs belonging to the user that match the given filters.
Successful response with a list of FQDN connections.
Array of objects (Fqdn) | |
object (PaginationMeta) |
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.FQDN.list(page={"number":1,"size":20})
{- "data": [
- {
- "connection_id": "1516447646313612565",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "id": "1293384261075731499",
- "port": 5060,
- "record_type": "fqdn",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create a new FQDN object.
Successful response with details about an FQDN connection.
Bad request
Unauthorized
{- "connection_id": "1516447646313612565",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "port": 8080
}
{- "data": {
- "connection_id": "1516447646313612565",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "id": "1293384261075731499",
- "port": 5060,
- "record_type": "fqdn",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Delete an FQDN.
Successful response with details about an FQDN connection.
object (Fqdn) | |||||||||||||||||
|
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" res = telnyx.FQDN.retrieve("id") res.delete()
{- "data": {
- "connection_id": "1516447646313612565",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "id": "1293384261075731499",
- "port": 5060,
- "record_type": "fqdn",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Return the details regarding a specific FQDN.
Successful response with details about an FQDN connection.
object (Fqdn) | |||||||||||||||||
|
Bad request
Unauthorized
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.FQDN.retrieve("id")
{- "data": {
- "connection_id": "1516447646313612565",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "id": "1293384261075731499",
- "port": 5060,
- "record_type": "fqdn",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Update the details of a specific FQDN.
connection_id | string ID of the FQDN connection to which this IP should be attached. |
dns_record_type | string 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. |
fqdn | string FQDN represented by this resource. |
port | integer Default: 5060 Port to use when connecting to this FQDN. |
Successful response with details about an FQDN connection.
object (Fqdn) | |||||||||||||||||
|
Bad request
Unauthorized
{- "connection_id": "1516447646313612565",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "port": 8080
}
{- "data": {
- "connection_id": "1516447646313612565",
- "created_at": "2018-02-02T22:25:27.521Z",
- "dns_record_type": "a",
- "fqdn": "example.com",
- "id": "1293384261075731499",
- "port": 5060,
- "record_type": "fqdn",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}