Create an FQDN
POST/security/fqdns
Creates a new FQDN object.
Request
- application/json
Body
required
FQDN to add
connection_id stringrequired
fqdn stringrequired
port integer
dns_record_type stringrequired
Possible values: [a
, srv
]
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.
Responses
200: FQDN created response
- application/json
400: Bad request
401: Unauthorized
Request samples
curl -L 'https://api.telnyx.com/security/fqdns' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"connection_id": "string",
"fqdn": "string",
"port": 0,
"dns_record_type": "a"
}'
Response samples
{
"id": "string",
"connection_id": "string",
"fqdn": "string",
"port": 0,
"dns_record_type": "a"
}