Delen via


HybridDataManagerCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridData.HybridDataManagerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string dataManagerName, Azure.ResourceManager.HybridData.HybridDataManagerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HybridData.HybridDataManagerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridData.HybridDataManagerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HybridData.HybridDataManagerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HybridData.HybridDataManagerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, dataManagerName As String, data As HybridDataManagerData, Optional cancellationToken As CancellationToken = Nothing) As 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