import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPAllowedPorts = await client.globalIPAllowedPorts.list();
console.log(globalIPAllowedPorts.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "global_ip_allowed_port",
"protocol_code": "tcp",
"name": "TCP Registered",
"first_port": 1024,
"last_port": 49151
}
]
}List all Global IP Allowed Ports
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPAllowedPorts = await client.globalIPAllowedPorts.list();
console.log(globalIPAllowedPorts.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "global_ip_allowed_port",
"protocol_code": "tcp",
"name": "TCP Registered",
"first_port": 1024,
"last_port": 49151
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
Identifies the type of the resource.
"global_ip_allowed_port"
The Global IP Protocol code.
"tcp"
A name for the Global IP ports range.
"TCP Registered"
First port of a range.
1024
Last port of a range.
49151
Was this page helpful?