Bagikan melalui


SiteSlotHybridConnectionNamespaceRelayCollection.CreateOrUpdateAsync Method

Definition

Description for Creates a new Hybrid Connection using a Service Bus relay.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}
  • Operation Id: WebApps_CreateOrUpdateHybridConnectionSlot
  • Default Api Version: 2021-02-01
  • Resource: SiteSlotHybridConnectionNamespaceRelayResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteSlotHybridConnectionNamespaceRelayResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string namespaceName, string relayName, Azure.ResourceManager.AppService.HybridConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * string * Azure.ResourceManager.AppService.HybridConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteSlotHybridConnectionNamespaceRelayResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * string * Azure.ResourceManager.AppService.HybridConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteSlotHybridConnectionNamespaceRelayResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, namespaceName As String, relayName As String, data As HybridConnectionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SiteSlotHybridConnectionNamespaceRelayResource))

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.

namespaceName
String

The namespace for this hybrid connection.

relayName
String

The relay name for this hybrid connection.

data
HybridConnectionData

The details of the hybrid connection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

namespaceName or relayName is an empty string, and was expected to be non-empty.

namespaceName, relayName or data is null.

Applies to