Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.28 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.28 KB

sdk-dotnet-safedns

This is the official .NET SDK for ANS SafeDNS

You should refer to the Getting Started section of the API documentation before proceeding below

Basic usage

To get started, we'll first instantiate an instance of IANSSafeDNSClient:

IANSSafeDNSClient client = new ANSSafeDNSClient(new ClientConnection("myapikey"));

Next, we'll obtain an instance of IZoneOperations to perform operations on DNS zones:

var zoneOps = client.ZoneOperations();

Finally, we'll retrieve all zones using the instance of IZoneOperations:

IList<Zone> zones = await zoneOps.GetZonesAsync();

Operations

Several operations are available via IANSSafeDNSClient:

  • ZoneOperations() - returns an instance of IZoneOperations for performing zone operations
  • ZoneRecordOperations() - returns an instance of IZoneRecordOperations for performing zone record operations
  • ZoneNoteOperations() - returns an instance of IZoneNoteOperations for performing zone note operations
  • TemplateOperations() - returns an instance of ITemplateOperations for performing template operations
  • TemplateRecordOperations() - returns an instance of ITemplateRecordOperations for performing template record operations