Share via


DnsForwardingRulesetCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a DNS forwarding ruleset.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}
  • Operation Id: DnsForwardingRulesets_CreateOrUpdate
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsForwardingRulesetResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DnsResolver.DnsForwardingRulesetResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string rulesetName, Azure.ResourceManager.DnsResolver.DnsForwardingRulesetData data, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DnsResolver.DnsForwardingRulesetData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DnsResolver.DnsForwardingRulesetResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DnsResolver.DnsForwardingRulesetData * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DnsResolver.DnsForwardingRulesetResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, rulesetName As String, data As DnsForwardingRulesetData, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DnsForwardingRulesetResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

rulesetName
String

The name of the DNS forwarding ruleset.

data
DnsForwardingRulesetData

Parameters supplied to the CreateOrUpdate operation.

ifMatch
String

ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.

ifNoneMatch
String

Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

rulesetName is an empty string, and was expected to be non-empty.

rulesetName or data is null.

Applies to