Поделиться через


DependencyMapCollection.CreateOrUpdate Method

Definition

Create a MapsResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DependencyMap/maps/{mapName}
  • Operation Id: MapsResource_CreateOrUpdate
  • Default Api Version: 2025-01-31-preview
  • Resource: DependencyMapResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DependencyMap.DependencyMapResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string mapName, Azure.ResourceManager.DependencyMap.DependencyMapData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DependencyMap.DependencyMapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DependencyMap.DependencyMapResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DependencyMap.DependencyMapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DependencyMap.DependencyMapResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, mapName As String, data As DependencyMapData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DependencyMapResource)

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.

mapName
String

Maps resource name.

data
DependencyMapData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

mapName or data is null.

Applies to