NetworkFabricRoutePolicyCollection.CreateOrUpdateAsync Method

Definition

Implements Route Policy PUT method.

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

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.

routePolicyName
String

Name of the Route Policy.

data
NetworkFabricRoutePolicyData

Request payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

routePolicyName or data is null.

Applies to