1. Deprecated REST API Migration Guide
1.1. Overview
Several legacy REST API endpoints have been removed from the Cable Validation Tool (CVT) and replaced with dedicated, purpose-built endpoints. This guide helps users migrate from the deprecated APIs to their replacements.
The changes fall into two categories:
-
CommandProc endpoints (
/commands/*) — a generic command-execution router that has been replaced by dedicated REST endpoints for each feature area. -
Device exclude/unexclude endpoints (
/devices/exclude,/devices/unexclude,/devices/excluded) — replaced by the unified Device Status Management API.
1.2. CommandProc Endpoints
The legacy /commands/* API allowed callers to execute CLI commands over HTTP through a single generic router. This has been retired in favor of dedicated REST endpoints that follow standard HTTP conventions (proper methods, structured request/response bodies, and per-operation status polling).
1.2.1. 1 Generic Routes (Removed)
These meta-endpoints provided command discovery, execution status, and help. They have no direct replacements because each feature area now exposes its own endpoints.
|
Deprecated Endpoint |
Method |
Description |
Replacement |
|---|---|---|---|
|
|
|
List all supported commands |
No replacement. Available actions are expressed by the individual REST endpoints listed below. |
|
|
|
Global command execution status (idle / executing) |
No replacement. |
|
|
|
Execute a command by name |
See per-command mapping below. |
|
|
|
Poll the output of a running command |
Each feature now has its own result-polling endpoint (e.g. |
|
|
|
Get help text for a command |
No replacement. |
1.2.2. 2 Topology Loading
All topology loading commands now use the POST /topology/load/{type} pattern. These are asynchronous — the server returns 202 Accepted immediately and progress is tracked by polling GET /topology/action/result.
|
Deprecated Command |
Replacement Endpoint |
Method |
Request Body |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No replacement |
— |
The |
Polling: GET /topology/action/result (also GET /topology/load/result for backward compatibility).
1.2.3. 3 Credential Management
Credential commands are replaced by RESTful endpoints under /creds/*. All are synchronous (immediate response).
|
Deprecated Command |
Replacement Endpoint |
Method |
Request Body |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
— |
|
|
|
|
— |
Additional credential endpoints:
-
GET /creds— list all credentials -
GET /creds?credential_profile=true— list all credential profiles -
POST /creds/upload— upload a credentials file (multipart form)
1.2.4. 4 User Management
|
Deprecated Command |
Replacement Endpoint |
Method |
Notes |
|---|---|---|---|
|
|
|
|
Multipart form with a |
1.2.5. 5 Agent Deployment
The three separate deploy commands (deploy_all_agents, deploy_single_agent, deploy_agents) are unified into a single POST /agents/deploy endpoint. Similarly, the three remove commands are unified into POST /agents/remove. Both return 202 Accepted and are polled via GET /agents/manage/result.
|
Deprecated Command |
Replacement Endpoint |
Method |
Request Body |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Polling: GET /agents/manage/result
1.2.6. 6 Validation
|
Deprecated Command |
Replacement Endpoint |
Method |
Request Body |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
— |
Polling: GET /validation/result
1.2.7. 7 Switch Status and Connectivity
|
Deprecated Command |
Replacement Endpoint |
Method |
Notes |
|---|---|---|---|
|
|
|
|
Returns |
|
|
|
|
Synchronous. Returns all nodes with full device information. |
1.2.8. 8 Commands Without a Replacement
|
Deprecated Command |
Reason |
|---|---|
|
|
Loaded topology from a saved file prefix. Use |
|
|
Certificate management is handled at the Apache/infrastructure layer. |
|
|
Not currently exposed as a REST endpoint. |
|
|
The full amber report is available via |
1.2.9. 9 Server Shutdown
|
Deprecated Command |
Replacement Endpoint |
Method |
Notes |
|---|---|---|---|
|
|
|
|
Synchronous. Important: this endpoint is served by the CV Controller service (Apache location |
1.3. Device Exclude/Unexclude Endpoints
The device exclusion mechanism has been replaced by a unified Device Status Management API. Instead of a simple excluded/not-excluded binary, each device now has a status (e.g. VALIDATION_READY, UNMANAGED, UNSUPPORTED) with controlled transitions and audit history.
1.3.1. 1 Endpoint Migration
|
Deprecated Endpoint |
Method |
Replacement Endpoint |
Method |
Request Body / Notes |
|---|---|---|---|---|
|
|
|
|
|
Each node object now includes a |
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2. 2 New Device Status Endpoints
The following endpoints provide richer device lifecycle management:
|
Endpoint |
Method |
Description |
|---|
|
Endpoint |
Method |
Description |
|---|---|---|
|
|
|
Set the status of a single device. Body: |
|
|
|
Set the status of multiple devices in bulk. Body: |
|
|
|
Get allowed status transitions for a device (returns current status and valid next statuses). |
|
|
|
Get the status change history for a device. Supports |
1.4. Summary
|
Category |
Deprecated Endpoints |
With Replacement |
Without Replacement |
|---|---|---|---|
|
CommandProc generic routes |
5 |
2 (execute, output) |
3 (list, status, help) |
|
CommandProc commands |
24 |
20 |
4 ( |
|
Device exclude/unexclude |
3 |
3 |
0 |
|
Total |
32 |
25 |
7 |
All replacement endpoints are served under the /cablevalidation Apache location unless otherwise noted (the exit replacement is under /cv_controller).
Last updated: