Show / Hide Table of Contents

Class PowerDnsClient

A type-safe client for the PowerDNS API.

Inheritance
Object
PowerDnsClient
Implements
IPowerDnsClient
IEndpoint
Namespace: PowerDns.Client
Assembly: PowerDns.Client.dll
Syntax
public class PowerDnsClient : EntryEndpoint, IPowerDnsClient

Constructors

PowerDnsClient(Uri, HttpClient)

Creates a new PowerDNS API Client using a custom HttpClient. This is usually used for custom authentication schemes, e.g. client certificates.

Declaration
public PowerDnsClient(Uri uri, HttpClient httpClient)
Parameters
Type Name Description
Uri uri

The URI of the PowerDNS instance (without /api/v1).

HttpClient httpClient

The HttpClient to use for communication with PowerDNS.

PowerDnsClient(Uri, String)

Creates a new PowerDNS API Client.

Declaration
public PowerDnsClient(Uri uri, string apiKey)
Parameters
Type Name Description
Uri uri

The URI of the PowerDNS instance (without /api/v1).

String apiKey

The API key used for authentication.

Properties

Servers

Declaration
public IIndexerEndpoint<IServerElementEndpoint> Servers { get; }
Property Value
Type Description
IIndexerEndpoint<IServerElementEndpoint>

Implements

IPowerDnsClient
IEndpoint
In This Article
Back to top Copyright Bastian Eicher