pub async fn reload_zone(
client: &Arc<Client>,
token: Option<&str>,
zone_name: &str,
server: &str,
) -> Result<()>Expand description
Reload a specific zone via HTTP API.
This operation is idempotent - if the zone doesn’t exist, it returns an error with a clear message indicating the zone was not found.
§Arguments
client- HTTP clienttoken- Optional authentication token (None if auth disabled)zone_name- Name of the zone to reloadserver- API server address (e.g., “bind9-primary-api:8080”)
§Errors
Returns an error if the HTTP request fails or the zone cannot be reloaded.