technitium 0.4.0

Typed async Rust client for the Technitium DNS Server API
Documentation
# Admin: Resync Cluster

## Endpoint

`/api/admin/cluster/secondary/resync`

## Method

GET

## Description

Allows an admin user to manually trigger a complete configuration resync on the Secondary node. When triggered, the Secondary node will use the Transfer Config call to sync the complete configuration from the Primary node. This call can only be made at the Secondary node.

## Authentication

Required. Token must be provided via the `token` parameter.

## Permissions

Administration: Modify

## Parameters

| Name | Type | Required | Conditional | Description |
|------|------|----------|-------------|-------------|
| `token` | string | Yes | No | The session token generated by the `login` or the `createToken` call. |
| `node` | string | No | No | The node domain name for which the API call is intended. When unspecified, the current node is used. Can only be used when Clustering is initialized. |

## Response Fields

No response body fields beyond the status. Response is simply:

```json
{
    "status": "ok"
}
```

## Conditional Logic Notes

- This call can only be made at a Secondary node.
- Unlike the scheduled automatic sync, this triggers a full (not incremental) configuration resync.
- The resync is performed asynchronously; the API returns immediately and the sync happens in the background.

## Edge Cases

- If the Primary node is unreachable, the resync will fail (silently or with a delayed error).
- This triggers a complete sync, which may be resource-intensive for large configurations.