Udostępnij za pośrednictwem


NetworkFunctionCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string networkFunctionName, Azure.ResourceManager.HybridNetwork.NetworkFunctionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HybridNetwork.NetworkFunctionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HybridNetwork.NetworkFunctionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridNetwork.NetworkFunctionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, networkFunctionName As String, data As NetworkFunctionData, Optional cancellationToken As CancellationToken = Nothing) As 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