Share via


MobileDataNetworkCollection.CreateOrUpdate Method

Definition

Creates or updates a data network. Must be created in the same location as its parent mobile network.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}
  • Operation Id: DataNetworks_CreateOrUpdate
  • Default Api Version: 2024-02-01
  • Resource: MobileDataNetworkResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileDataNetworkResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string dataNetworkName, Azure.ResourceManager.MobileNetwork.MobileDataNetworkData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileDataNetworkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileDataNetworkResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.MobileNetwork.MobileDataNetworkData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MobileNetwork.MobileDataNetworkResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, dataNetworkName As String, data As MobileDataNetworkData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MobileDataNetworkResource)

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.

dataNetworkName
String

The name of the data network.

data
MobileDataNetworkData

Parameters supplied to the create or update data network operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataNetworkName or data is null.

Applies to