Share via


MapsCreatorCollection.CreateOrUpdateAsync Method

Definition

Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}
  • Operation Id: Creators_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Maps.MapsCreatorResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string creatorName, Azure.ResourceManager.Maps.MapsCreatorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Maps.MapsCreatorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Maps.MapsCreatorResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Maps.MapsCreatorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Maps.MapsCreatorResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, creatorName As String, data As MapsCreatorData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MapsCreatorResource))

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.

creatorName
String

The name of the Maps Creator instance.

data
MapsCreatorData

The new or updated parameters for the Creator resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

creatorName or data is null.

Applies to