SiteHybridConnectionNamespaceRelayCollection.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}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}
  • Operation Id: WebApps_CreateOrUpdateHybridConnection
  • Default Api Version: 2023-12-01
  • Resource: SiteHybridConnectionNamespaceRelayResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteHybridConnectionNamespaceRelayResource>> 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.SiteHybridConnectionNamespaceRelayResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * string * Azure.ResourceManager.AppService.HybridConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteHybridConnectionNamespaceRelayResource>>
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 SiteHybridConnectionNamespaceRelayResource))

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