Share via


NetworkFabricIPPrefixCollection.CreateOrUpdateAsync Method

Definition

Implements IP Prefix PUT method.

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

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.

ipPrefixName
String

Name of the IP Prefix.

data
NetworkFabricIPPrefixData

Request payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ipPrefixName or data is null.

Applies to