Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Consolidated page parameter (deepObject style). Originally: page[number], page[size]
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPs = await client.globalIPs.list();
console.log(globalIPs.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "global_ip",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"ip_address": "198.51.100.1",
"ports": {
"tcp": [
80,
8080
],
"udp": [
5000,
5050
]
},
"name": "test interface",
"description": "test interface"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}List all Global IPs.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPs = await client.globalIPs.list();
console.log(globalIPs.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "global_ip",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"ip_address": "198.51.100.1",
"ports": {
"tcp": [
80,
8080
],
"udp": [
5000,
5050
]
},
"name": "test interface",
"description": "test interface"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated page parameter (deepObject style). Originally: page[number], page[size]
Show child attributes
Was this page helpful?