Skupper Console API Calls

This document describes all API calls made by the Skupper Console frontend to the Network Observer backend.

Source Repository: skupperproject/skupper-console API Version: /api/v2alpha1 Generated: 2026-08-11T17:21:42Z

Overview

The Skupper Console is a web-based frontend that visualizes and manages Skupper networks. It communicates with the Skupper Network Observer backend through a REST API and Prometheus-compatible metrics API.

Base URL

The console uses the following base URL pattern:

<protocol>://<host>/api/v2alpha1

When embedded in other applications (SKUPPER_CONSOLE_EMBED=true), it uses relative paths.

REST API Endpoints

The console uses the following REST endpoints to fetch network topology and configuration data:

Authentication Endpoints

getUser

Method: GET Path: /api/v2alpha1/user Description: Get current authenticated user information

logout

Method: GET Path: /api/v2alpha1/logout Description: Log out the current user

Site Endpoints

getAllSites

Method: GET Path: /api/v2alpha1/sites Description: Get all sites in the Skupper network

getSiteById

Method: GET Path: /api/v2alpha1/sites/{id} Description: Get details of a specific site by ID

Method: GET Path: /api/v2alpha1/routerlinks Description: Get all router links between sites

getLinkById

Method: GET Path: /api/v2alpha1/routerlinks/{id} Description: Get details of a specific router link by ID

Component Endpoints

getAllComponents

Method: GET Path: /api/v2alpha1/components Description: Get all components across the network

getComponentById

Method: GET Path: /api/v2alpha1/components/{id} Description: Get details of a specific component by ID

Process Endpoints

getAllProcesses

Method: GET Path: /api/v2alpha1/processes Description: Get all processes across the network

getProcessById

Method: GET Path: /api/v2alpha1/processes/{id} Description: Get details of a specific process by ID

Service Endpoints

getAllServices

Method: GET Path: /api/v2alpha1/services Description: Get all services exposed in the network

getServiceById

Method: GET Path: /api/v2alpha1/services/{id} Description: Get details of a specific service by ID

Listener Endpoints

getAllListeners

Method: GET Path: /api/v2alpha1/listeners Description: Get all listeners in the network

Connector Endpoints

getAllConnectors

Method: GET Path: /api/v2alpha1/connectors Description: Get all connectors in the network

TCP Connection Endpoints

getAllTcpConnections

Method: GET Path: /api/v2alpha1/connections Description: Get all TCP connections

getTcpConnectionById

Method: GET Path: /api/v2alpha1/connections/{id} Description: Get details of a specific TCP connection by ID

HTTP Request Endpoints

getAllHttpRequests

Method: GET Path: /api/v2alpha1/applicationflows Description: Get all HTTP request flows

getHttpRequestById

Method: GET Path: /api/v2alpha1/applicationflows/{id} Description: Get details of a specific HTTP request by ID

Site Pair Endpoints

getAllSitePairs

Method: GET Path: /api/v2alpha1/sitepairs Description: Get all site-to-site data link pairs

getSitePairById

Method: GET Path: /api/v2alpha1/sitepairs/{id} Description: Get details of a specific site pair by ID

Component Pair Endpoints

getAllComponentPairs

Method: GET Path: /api/v2alpha1/componentpairs Description: Get all component-to-component data link pairs

getComponentPairById

Method: GET Path: /api/v2alpha1/componentpairs/{id} Description: Get details of a specific component pair by ID

Process Pair Endpoints

getAllProcessPairs

Method: GET Path: /api/v2alpha1/processpairs Description: Get all process-to-process data link pairs

getProcessPairById

Method: GET Path: /api/v2alpha1/processpairs/{id} Description: Get details of a specific process pair by ID

getProcessPairsByServiceId

Method: GET Path: /api/v2alpha1/services/{id}/processpairs Description: Get process pairs for a specific service

REST Resource Mapping

The console uses the following resource paths:

Frontend NameBackend PathDescription
Sites/sitesSkupper sites/namespaces
RouterLinks/routerlinksLinks between routers
Components/componentsService components
Processes/processesRunning processes
Services/servicesExposed services
Listeners/listenersService listeners
Connectors/connectorsService connectors
TcpConnections/connectionsTCP connections
HttpRequests/applicationflowsHTTP request flows
SitePairs/sitepairsSite-to-site data links
ComponentPairs/componentpairsComponent-to-component links
ProcessPairs/processpairsProcess-to-process links

Prometheus Metrics API

The console queries Prometheus-compatible metrics endpoints for time-series data:

Base Path: $api_version/internal/prom

Query Types

  1. Instant Queries - /api/v2alpha1/internal/prom/query/
  2. Range Queries - /api/v2alpha1/internal/prom/rangequery/

Metrics Endpoints

The console fetches the following time-series metrics:

Traffic Metrics

  • fetchByteRateHistory - Byte transfer rates over time (TX/RX)
  • fetchInstantTrafficValue - Current byte counts or rates
  • fetchOpenConnectionsHistory - Open connection counts over time
  • fetchInstantOpenConnections - Current open connections

HTTP Request Metrics

  • fetchRequestRateByMethodHistory - HTTP request rates by method (GET, POST, etc.)
  • fetchResponseCountsByPartialCodeHistory - HTTP response counts by status code class (2xx, 3xx, 4xx, 5xx)
  • fetchHttpErrorRateByPartialCodeHistory - HTTP error rates (4xx, 5xx)

Latency Metrics

  • fetchPercentilesByLeHistory - Latency percentiles over time (p50, p90, p95, p99)

Query Parameters

The console supports filtering and pagination on collection endpoints:

ParameterTypeDescription
offsetintegerPagination offset
limitintegerMaximum number of results
sortBystringField to sort by
sortDirectionstringSort direction (asc or desc)
filterstringFilter expression

Data Flow

  1. Initial Load: Console fetches all sites, components, and processes
  2. Topology View: Fetches site pairs, component pairs, process pairs for visualization
  3. Detail Views: Fetches individual resources by ID when user clicks
  4. Metrics: Continuously queries Prometheus endpoints for time-series data
  5. Real-time Updates: Polls endpoints periodically for fresh data

Authentication

The console supports authentication via:

  • GET /api/v2alpha1/user - Get current user info
  • GET /api/v2alpha1/logout - Log out current user

Implementation Details

Client Library

The console uses Axios for HTTP requests with the following features:

  • Automatic query parameter serialization
  • Response interceptors for error handling
  • Property name mapping between backend and frontend

Field Mapping

The console performs automatic field name mapping between backend API responses and frontend models. See backendToFrontendPropertyMapper in the source for the complete mapping.

Error Handling

  • HTTP errors are caught and displayed to the user
  • Timeout errors show: “The request to fetch the data has timed out.”
  • All errors include HTTP status code and message

Note: This documentation is automatically generated from the console source code. For the authoritative API specification, refer to the Network Observer OpenAPI spec.