Share via


NetworkFunctionCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a network function resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/networkFunctions/{networkFunctionName}
  • Operation Id: NetworkFunctions_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string networkFunctionName, Azure.ResourceManager.HybridNetwork.NetworkFunctionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HybridNetwork.NetworkFunctionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HybridNetwork.NetworkFunctionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, networkFunctionName As String, data As NetworkFunctionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetworkFunctionResource))

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.

networkFunctionName
String

Resource name for the network function resource.

data
NetworkFunctionData

Parameters supplied in the body to the create or update network function operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

networkFunctionName is an empty string, and was expected to be non-empty.

networkFunctionName or data is null.

Applies to