共用方式為


ZonesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a DNS zone. Does not modify DNS records within the zone.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Dns.Fluent.Models.ZoneInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Dns.Fluent.IZonesOperations operations, string resourceGroupName, string zoneName, Microsoft.Azure.Management.Dns.Fluent.Models.ZoneInner parameters, string ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Dns.Fluent.IZonesOperations * string * string * Microsoft.Azure.Management.Dns.Fluent.Models.ZoneInner * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Dns.Fluent.Models.ZoneInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IZonesOperations, resourceGroupName As String, zoneName As String, parameters As ZoneInner, Optional ifMatch As String = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ZoneInner)

Parameters

operations
IZonesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

zoneName
String

The name of the DNS zone (without a terminating dot).

parameters
ZoneInner

Parameters supplied to the CreateOrUpdate operation.

ifMatch
String

The etag of the DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen etag value to prevent accidentally overwritting any concurrent changes.

ifNoneMatch
String

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to