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.
API endpoints are organized into three main endpoint groups, detailed below. Refer to the API Reference for complete endpoint reference.
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
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 & 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 Nautobot
- 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 (firmware images, files) use streaming responses:
- Files are streamed efficiently for optimal performance
- Proper cleanup occurs even 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 OpenAPI schema is automatically generated from the FastAPI application.