Skip to main content

Template Synchronization

Synchronize template to specified nodes.

Request

POST /api/v1/pve/template/:id/sync
Authorization: Bearer <token>
Content-Type: application/json

Path Parameters

ParameterTypeDescription
idintTemplate ID

Request Body

{
"targetNodes": ["pve-node-02", "pve-node-03"],
"mode": "full"
}

Request Parameters

ParameterTypeDescription
targetNodesarrayTarget node list
modestringSync mode (full/incremental)

Response

{
"code": 200,
"message": "success",
"data": {
"taskId": "template-sync-12345"
}
}

Sync Status

You can query sync status via task API:

GET /api/v1/pve/task/:taskId
Authorization: Bearer <token>