Run the controlled Den egress diagnostic
curl --request POST \
--url http://api.den.local/v1/diagnostics/egressimport requests
url = "http://api.den.local/v1/diagnostics/egress"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('http://api.den.local/v1/diagnostics/egress', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.den.local/v1/diagnostics/egress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.den.local/v1/diagnostics/egress"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.den.local/v1/diagnostics/egress")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.den.local/v1/diagnostics/egress")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetOrigin": "<string>",
"supportUrl": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"overallStatus": "passed",
"highestPassingStep": "reachability",
"failedStep": "reachability",
"steps": [
{
"id": "reachability",
"label": "<string>",
"category": "connectivity",
"status": "passed",
"startedAt": "<string>",
"completedAt": "<string>",
"durationMs": 4503599627370495,
"httpStatuses": [
349
],
"diagnosticIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"code": "<string>",
"message": "<string>",
"owner": "den-operator",
"action": "<string>"
}
]
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "egress_diagnostics_not_configured",
"missingConfiguration": [
"DEN_DIAGNOSTICS_ORIGIN"
]
}Diagnostics
Run the controlled Den egress diagnostic
Runs fixed HTTP, redirect, OAuth-shaped, and MCP probes from the Den process to the operator-configured public Diagnostics origin.
POST
/
v1
/
diagnostics
/
egress
Run the controlled Den egress diagnostic
curl --request POST \
--url http://api.den.local/v1/diagnostics/egressimport requests
url = "http://api.den.local/v1/diagnostics/egress"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('http://api.den.local/v1/diagnostics/egress', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://api.den.local/v1/diagnostics/egress",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://api.den.local/v1/diagnostics/egress"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.den.local/v1/diagnostics/egress")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.den.local/v1/diagnostics/egress")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"targetOrigin": "<string>",
"supportUrl": "<string>",
"startedAt": "<string>",
"completedAt": "<string>",
"overallStatus": "passed",
"highestPassingStep": "reachability",
"failedStep": "reachability",
"steps": [
{
"id": "reachability",
"label": "<string>",
"category": "connectivity",
"status": "passed",
"startedAt": "<string>",
"completedAt": "<string>",
"durationMs": 4503599627370495,
"httpStatuses": [
349
],
"diagnosticIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"code": "<string>",
"message": "<string>",
"owner": "den-operator",
"action": "<string>"
}
]
}{
"error": "unauthorized"
}{
"error": "forbidden",
"reason": "<string>",
"message": "<string>"
}{
"error": "egress_diagnostics_not_configured",
"missingConfiguration": [
"DEN_DIAGNOSTICS_ORIGIN"
]
}Response
The completed diagnostic run, including a failed result when a layer did not pass.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Available options:
passed, failed Available options:
reachability, http-methods, redirect, oauth-discovery, oauth-token, mcp-handshake Available options:
reachability, http-methods, redirect, oauth-discovery, oauth-token, mcp-handshake Required array length:
6 elementsShow child attributes
Show child attributes
Was this page helpful?