Share via


HybridDataManagerCollection.CreateOrUpdateAsync Method

Definition

Creates a new data manager resource with the specified parameters. Existing resources cannot be updated with this API and should instead be updated with the Update data manager resource API.

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

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.

dataManagerName
String

The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.

data
HybridDataManagerData

Data manager resource details from request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataManagerName or data is null.

Applies to