Freigeben über


AppPlatformApiPortalCollection.CreateOrUpdateAsync Methode

Definition

Erstellen Sie das STANDARD-API-Portal, oder aktualisieren Sie das vorhandene API-Portal.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}
  • Vorgangs-IdApiPortals_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformApiPortalResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string apiPortalName, Azure.ResourceManager.AppPlatform.AppPlatformApiPortalData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformApiPortalData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformApiPortalResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppPlatform.AppPlatformApiPortalData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppPlatform.AppPlatformApiPortalResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, apiPortalName As String, data As AppPlatformApiPortalData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AppPlatformApiPortalResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

apiPortalName
String

Der Name des API-Portals.

data
AppPlatformApiPortalData

Das API-Portal für den Erstellungs- oder Aktualisierungsvorgang.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

apiPortalName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

apiPortalName oder data ist NULL.

Gilt für: