Freigeben über


WebAppsOperationsExtensions.CreateOrUpdateHostNameBindingSlotAsync Methode

Definition

Erstellt eine Hostnamenbindung für eine App.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.HostNameBindingInner> CreateOrUpdateHostNameBindingSlotAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations operations, string resourceGroupName, string name, string hostName, Microsoft.Azure.Management.AppService.Fluent.Models.HostNameBindingInner hostNameBinding, string slot, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateHostNameBindingSlotAsync : Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations * string * string * string * Microsoft.Azure.Management.AppService.Fluent.Models.HostNameBindingInner * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.HostNameBindingInner>
<Extension()>
Public Function CreateOrUpdateHostNameBindingSlotAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, hostName As String, hostNameBinding As HostNameBindingInner, slot As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HostNameBindingInner)

Parameter

operations
IWebAppsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Name der Ressourcengruppe, zu der die Ressource gehört.

name
String

Name der App

hostName
String

Hostname in der Hostnamenbindung.

hostNameBinding
HostNameBindingInner

Bindungsdetails. Dies ist die JSON-Darstellung eines HostNameBinding-Objekts.

slot
String

Name des Bereitstellungsslots. Wenn kein Slot angegeben ist, erstellt die API eine Bindung für den Produktionsslot.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Beschreibung für Erstellt eine Hostnamenbindung für eine App.

Gilt für: