List device ISPs
client.zeroTrust.dex.devices.isps.list(stringdeviceId, ISPListParams { account_id, per_page, cursor, 5 more } params, RequestOptionsoptions?): V4PagePagination<ISPs { isps } >
GET/accounts/{account_id}/dex/devices/{device_id}/isps
List ISP information observed for a specific device during traceroute tests.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
List device ISPs
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const isps of client.zeroTrust.dex.devices.isps.list(
'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
{ account_id: '01a7362d577a6c3019a474fd6f485823', per_page: 10 },
)) {
console.log(isps.isps);
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"isps": [
{
"test_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"test_result_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"time_start": "2024-06-01T12:00:00Z",
"ip": {
"address": "203.0.113.1",
"asn": 13335,
"aso": "CLOUDFLARENET",
"location": {
"city": "San Francisco",
"country_iso": "US",
"state_iso": "CA",
"zip": "94107"
},
"name": "isp-gateway.example.com",
"netmask": "255.255.255.0",
"version": 1
}
}
]
},
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000,
"total_pages": 100
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"isps": [
{
"test_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"test_result_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"time_start": "2024-06-01T12:00:00Z",
"ip": {
"address": "203.0.113.1",
"asn": 13335,
"aso": "CLOUDFLARENET",
"location": {
"city": "San Francisco",
"country_iso": "US",
"state_iso": "CA",
"zip": "94107"
},
"name": "isp-gateway.example.com",
"netmask": "255.255.255.0",
"version": 1
}
}
]
},
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000,
"total_pages": 100
}
}