Template Synchronization
Synchronize template to specified nodes.
Request
POST /api/v1/pve/template/:id/sync
Authorization: Bearer <token>
Content-Type: application/json
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| id | int | Template ID |
Request Body
{
"targetNodes": ["pve-node-02", "pve-node-03"],
"mode": "full"
}
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| targetNodes | array | Target node list |
| mode | string | Sync 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>