Networking NVIDIA UFM Cable Validation Tool

REST API — Getting Started

Use the CVT REST API to automate topology management, validation, reporting, tests, administration, and monitoring.

Base URL. Send requests to the CVT HTTPS address (the same address as the web interface): https://<collector>[:port]/cablevalidation/.... Port 443 in standalone deployments, 8633 in UFM plugin deployments (or the configured APACHE_HTTPS_PORT). Service-control endpoints use the /cv_controller base path instead (see CVT service control APIs). Internal listener ports (8251/8252) are implementation details — do not connect to them directly.

Authentication. API access is session-based: log in as a CVT web user, keep the returned session cookie, and send it with subsequent requests. Unauthenticated requests are redirected to the login page (HTTP 302) rather than returning a JSON error. Only the metrics endpoints /cablevalidation/metrics, /cablevalidation/metrics/json, and /cablevalidation/metrics/csv require no authentication (see Prometheus Endpoint).

Sign in (Apache form-based login):

Bash
curl --cacert <ca-file> -c cookies.txt \
  -d "httpd_username=<user>" -d "httpd_password=<password>" \
  https://<collector>/cablevalidation/login

This stores the returned session cookie in cookies.txt; pass it with -b cookies.txt on subsequent requests. Sessions expire after 30 minutes — repeat the login when requests start returning redirects. Log out with POST /cablevalidation/logout when done.

Permissions. Each endpoint honors the signed-in user’s role: read endpoints are available to all users; state-changing endpoints (validation control, topology load, credentials, tests, users, files, service control) require the admin role and return 401/403 otherwise.

Conventions.

  • Request and response bodies are JSON (application/json); file uploads use multipart/form-data; downloads return file content.

  • Long-running operations return 202 Accepted — poll the documented result endpoint for completion.

Errors. Common statuses across the API:

Status

Meaning / typical cause

302

Not signed in (redirect to login) — authenticate first

400

Invalid parameters or request body

401/403

Signed in but the role is not allowed to call this endpoint

404

Resource (test, file, user, filter) not found

409

Conflict (for example, a test already exists or a node is busy)

500

Internal error — collect logs (Service logs) and contact support

Your first request. After signing in with an admin user:

Bash
curl --cacert <ca-file> -b cookies.txt https://<collector>/cablevalidation/version
# {"bringup_version": "2.1.1-1", "agent_version": "2.1.1-1"}

bringup_version is the collector’s version; agent_version is the agent version the collector deploys/expects.

CVT ships with a self-signed TLS certificate, so verification against your CA fails until you replace it (Configure TLS certificates). Use curl -k only while the default self-signed certificate is in place; prefer --cacert once a real certificate is installed.

Endpoint reference. Groups below follow the same structure: purpose, method and path, parameters, and minimal examples. Large collections can be narrowed with context-scoped parameters (context/items), and six read endpoints can also return their rows a page at a time (see Pagination below). The API has no rate limiting.

Pagination

These read endpoints can return their rows one page at a time:

Endpoint

Rows are in

GET /report/circuits

data

GET /resources/nodes

data

GET /nodes/agents/details

data

GET /tests/golden_ber/<name>/circuits

details

GET /tests/flapping/<name>/circuits

details

GET /tests/amber/<name>

details

Paging is opt-in: add page_number or rpp to the query. Without either, the endpoint returns all rows, as before.

Parameter

Meaning

page_number

Page to return, starting at 1 (default 1)

rpp

Rows per page (default 25)

filter

field[operator]value; repeat the parameter to add conditions (up to 100, each value up to 4,096 characters). Operators: eq, neq, con (contains), ncon (does not contain), sw (starts with), ew (ends with), eqm / mcon (equals / contains any of comma-separated values), and regex (up to 10 terms, 256 characters each). Text matching ignores case.

sorting

field[asc] or field[desc]; separate several with commas (up to 20)

Fields are the row’s field names, with dots for nested fields — for example status or a_endpoint.report. page_number is unrelated to the page parameter of GET /report/circuits, which selects the circuit view.

# -g stops curl from treating [ ] as URL globbing
curl -g --cacert <ca-file> -b cookies.txt \
  "https://<collector>/cablevalidation/report/circuits?page_number=1&rpp=50&filter=status[eq]Fail&sorting=a_endpoint.report[asc]"
{
  "data": [ ... ],
  "total_resources": 1200,
  "filtered_resources": 87,
  "num_of_pages": 2,
  "page_number": 1,
  "rpp": 50,
  "first_index": 1,
  "last_index": 50
}

total_resources counts all rows, filtered_resources the rows that match the filters. On the three test endpoints the response keeps its usual fields: details holds the page, and a pagination object beside it carries the same counts. An invalid query — an unknown operator, a bad number, too many terms, or a value that is too long — returns 400 with the reason. An unknown field also returns 400 when the endpoint has rows; on an empty collection the response is an empty page.

In this section

Last updated: