SiteHybridConnectionNamespaceRelayCollection.CreateOrUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: 2024-04-01
- Resource: SiteHybridConnectionNamespaceRelayResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteHybridConnectionNamespaceRelayResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string namespaceName, string relayName, Azure.ResourceManager.AppService.HybridConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * string * Azure.ResourceManager.AppService.HybridConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteHybridConnectionNamespaceRelayResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * string * Azure.ResourceManager.AppService.HybridConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppService.SiteHybridConnectionNamespaceRelayResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, namespaceName As String, relayName As String, data As HybridConnectionData, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET