reload_zone

Function reload_zone 

Source
pub async fn reload_zone(
    client: &Arc<Client>,
    token: &Arc<String>,
    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 client
  • token - Authentication token
  • zone_name - Name of the zone to reload
  • server - API server address (e.g., “bind9-primary-api:8080”)

§Errors

Returns an error if the HTTP request fails or the zone cannot be reloaded.