Config Manager ZTP APIs
Overview
The NVIDIA Config Manager ZTP Server provides REST API endpoints for network device Zero Touch Provisioning (ZTP). The API serves boot scripts, rendered configurations, firmware images, and manages the provisioning workflow.
The API has three endpoint groups. The API reference documents every endpoint.
Device Endpoints
Device-specific endpoints for boot scripts, configurations, firmware, and provisioning status:
GET /v1/device/{device_uuid}/boot-script- Retrieve boot scriptGET /v1/device/{device_uuid}/config/{configlet}- Retrieve configuration fileGET /v1/device/{device_uuid}/firmware- Download firmware imageGET /v1/device/{device_uuid}/firmware/checksum- Get firmware checksumPOST /v1/device/{device_uuid}/provisioned- Mark device as provisionedPOST /v1/device/{device_uuid}/validate_serial- Validate device serial number
Boot-script and serial-validation requests for a device ID that does not identify an existing device return HTTP 404 with a missing-device message.
Serial validation ignores case and trims surrounding whitespace. Both the reported serial and the DCIM serial must contain at least four characters. Either value may include a part-number prefix: validation succeeds when one value ends with the other. Shorter values or mismatches return HTTP 400.
The source-IP-authorized SFTP service exposes the same rendered configuration
at /device/{device_uuid}/{configlet} on TCP 2222. The default Cumulus boot
script retrieves /device/{device_uuid}/startup.yaml over SFTP; the HTTP API
remains available for compatibility.
The SFTP server offers both RSA and ECDSA host keys. Clients must support
RSA SHA-2 or ECDSA: the bundled Paramiko 5 implementation no longer supports
the ssh-rsa SHA-1 signature algorithm. Cumulus clients without RSA SHA-2
support can negotiate ECDSA. If host-key negotiation fails, check the
client’s supported algorithms before changing configuration or credentials.
Firmware Endpoints
Platform and version-based firmware access:
GET /v1/firmware/{platform}/{version}- Download firmware by platform/versionGET /v1/firmware/{platform}/{version}/checksum- Get firmware checksum
File Endpoints
Generic file storage and retrieval:
GET /v1/files/{platform}/{version}/{filename}- Download fileGET /v1/files/{platform}/{version}/{filename}/checksum- Get file checksumGET /v1/files/{platform}/{version}/- List files for platform/versionGET /v1/files/- List all filesPOST /v1/files/{platform}/{version}/{filename}- Upload file
Base URL
Contact your system administrator for the ZTP server URL for your environment.
Authentication and Authorization
Device Endpoints
The device-specific endpoints listed above accept either a device-originated request or an authenticated user request:
- Device-originated requests must come from an IP address associated with the device in the selected DCIM provider
- User-originated requests must come through the Envoy gateway as an authenticated user when SSO is enabled for the deployment
Admin Endpoints
Admin endpoints (file uploads, sync triggers) require an authenticated user request through the Envoy gateway when SSO is enabled for the deployment.
Error Responses
All endpoints may return standard HTTP error codes:
400 Bad Request: Invalid request parameters or body403 Forbidden: Authorization failure404 Not Found: Resource not found500 Internal Server Error: Server error
Error responses include a JSON body with error details:
Streaming Responses
Endpoints that return large files use streaming responses:
- Files are streamed instead of loaded into memory.
- The server cleans up resources if the client disconnects.
OpenAPI Documentation
Interactive API documentation is available at:
- Swagger UI:
https://ztp.example.com/docs - ReDoc:
https://ztp.example.com/redoc
The FastAPI application generates the OpenAPI schema.