Get details for a specific traceroute test run
client.zeroTrust.dex.tracerouteTestResults.networkPath.get(stringtestResultId, NetworkPathGetParams { account_id } params, RequestOptionsoptions?): NetworkPathGetResponse { hops, resultId, deviceName, 2 more }
GET/accounts/{account_id}/dex/traceroute-test-results/{test_result_id}/network-path
Get a breakdown of hops and performance metrics for a specific traceroute test run
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)
Get details for a specific traceroute test run
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const networkPath = await client.zeroTrust.dex.tracerouteTestResults.networkPath.get(
'f174e90a-fafe-4643-bbbc-4a0ed4fc8415',
{ account_id: '01a7362d577a6c3019a474fd6f485823' },
);
console.log(networkPath.hops);{
"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": {
"hops": [
{
"ttl": 0,
"asn": 0,
"aso": "aso",
"ipAddress": "ipAddress",
"location": {
"city": "city",
"state": "state",
"zip": "zip"
},
"mile": "client-to-app",
"name": "name",
"packetLossPct": 0,
"rttMs": 0
}
],
"resultId": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"deviceName": "deviceName",
"testId": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"testName": "testName"
}
}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": {
"hops": [
{
"ttl": 0,
"asn": 0,
"aso": "aso",
"ipAddress": "ipAddress",
"location": {
"city": "city",
"state": "state",
"zip": "zip"
},
"mile": "client-to-app",
"name": "name",
"packetLossPct": 0,
"rttMs": 0
}
],
"resultId": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"deviceName": "deviceName",
"testId": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"testName": "testName"
}
}