Share via


DataProductCollection.CreateOrUpdateAsync Method

Definition

Create data product resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}
  • Operation Id: DataProducts_Create
  • Default Api Version: 2023-11-15
  • Resource: DataProductResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkAnalytics.DataProductResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string dataProductName, Azure.ResourceManager.NetworkAnalytics.DataProductData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkAnalytics.DataProductData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkAnalytics.DataProductResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkAnalytics.DataProductData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkAnalytics.DataProductResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, dataProductName As String, data As DataProductData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataProductResource))

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.

dataProductName
String

The data product resource name.

data
DataProductData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataProductName or data is null.

Applies to