Skip to main content

The template conversion preview

GET 

/migrate/templates

Required role: admin. Only an account or token with the admin role can call this operation.

Example request
curl --request GET \
--header "Authorization: Bearer $HOSERVA_TOKEN" \
"https://$HOSERVA_HOST:8008/api/v1/migrate/templates"

What the scan's conversion of the Flash Backup's Docker templates found: every template with its class and how it converted, every Compose Manager project, and the counts the report shows. The scan converts each template in memory with the converter convertUnraidTemplate runs, passing it the Docker networks of the Phase A capture, so a custom network's docker network create command is exact when the capture holds that network. Nothing is created, written under /var/lib/hoserva/stacks/ or started. The session keeps only each template's outcome (its status and warning classes), never its content, so this answers without the zip; getMigrationTemplate builds a preview on request. counts cover the templates that had a container on the source server (autostart, running and stopped) and, without the capture's container list, every template (allTemplates); a template-only template is converted and previewable but is in templateOnly and not in the clean or warning counts. A Compose Manager project is previewed with its own compose.yaml, counted in composeProjects and never converted. 404 no_migration_report before a scan has finished, and 404 no_template_preview for a report made before scans converted templates (scan again).

Responses​

The templates and projects with the counts.