Freigeben über


AppPlatformApiPortalCustomDomainCollection.CreateOrUpdate Methode

Definition

Erstellen oder aktualisieren Sie die benutzerdefinierte Domäne des API-Portals.

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

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.

domainName
String

Der Name der benutzerdefinierten Domäne des API-Portals.

data
AppPlatformApiPortalCustomDomainData

Die benutzerdefinierte Domäne des API-Portals für den Erstellungs- oder Aktualisierungsvorgang.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

domainName oder data ist NULL.

Gilt für: