Show / Hide Table of Contents

Class ZoneEndpointExtensions

Inheritance
Object
ZoneEndpointExtensions
Namespace: PowerDns.Client
Assembly: PowerDns.Client.dll
Syntax
public static class ZoneEndpointExtensions : Object

Methods

GetRecordSetAsync(IElementEndpoint<Zone>, CanonicalName, CancellationToken)

Gets a specific RecordSet identified by a recordSetName.

Declaration
public static Task<RecordSet> GetRecordSetAsync(this IElementEndpoint<Zone> endpoint, CanonicalName recordSetName, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IElementEndpoint<Zone> endpoint
CanonicalName recordSetName
CancellationToken cancellationToken
Returns
Type Description
Task<RecordSet>
Exceptions
Type Condition
RecordSetNotFoundException

PatchRecordSetAsync(IElementEndpoint<Zone>, RecordSet, CancellationToken)

Modifies existing RecordSets.

Declaration
public static Task PatchRecordSetAsync(this IElementEndpoint<Zone> endpoint, RecordSet recordSet, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IElementEndpoint<Zone> endpoint
RecordSet recordSet
CancellationToken cancellationToken
Returns
Type Description
Task
Remarks

ChangeType must be set accordingly.

Exceptions
Type Condition
ArgumentNullException

If ChangeType is not set.

InvalidDataException BadRequest
AuthenticationException Unauthorized
UnauthorizedAccessException Forbidden
KeyNotFoundException NotFound or Gone
HttpRequestException

Other non-success status code.

UpsertZoneRecordSetAsync(IElementEndpoint<Zone>, RecordSet, CancellationToken)

Upserts the given recordSet.

Declaration
public static Task UpsertZoneRecordSetAsync(this IElementEndpoint<Zone> endpoint, RecordSet recordSet, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IElementEndpoint<Zone> endpoint
RecordSet recordSet
CancellationToken cancellationToken
Returns
Type Description
Task
In This Article
Back to top Copyright Bastian Eicher