import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const networkCoverages = await client.networkCoverage.list();
console.log(networkCoverages.data);{
"data": [
{
"record_type": "network_coverage",
"location": {
"region": "AMER",
"site": "ORD",
"pop": "CH1",
"code": "chicago-il",
"name": "Chicago IL, US"
},
"available_services": [
"cloud_vpn"
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}List all locations and the interfaces that region supports
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const networkCoverages = await client.networkCoverage.list();
console.log(networkCoverages.data);{
"data": [
{
"record_type": "network_coverage",
"location": {
"region": "AMER",
"site": "ORD",
"pop": "CH1",
"code": "chicago-il",
"name": "Chicago IL, US"
},
"available_services": [
"cloud_vpn"
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter (deepObject style). Originally: filter[location.region], filter[location.site], filter[location.pop], filter[location.code]
Show child attributes
The region of associated location to filter on.
"AMER"
The site of associated location to filter on.
"SJC"
The POP of associated location to filter on.
"SV1"
The code of associated location to filter on.
"silicon_valley-ca"
Successful response
Show child attributes
Identifies the type of the resource.
"network_coverage"
Show child attributes
Identifies the geographical region of location.
"AMER"
Site of location.
"ORD"
Point of presence of location.
"CH1"
Location code.
"chicago-il"
Human readable name of location.
"Chicago IL, US"
List of interface types supported in this region.
cloud_vpn, private_wireless_gateway, virtual_cross_connect Was this page helpful?