MongoDBAtlasProjectCollection.CreateOrUpdateAsync Method

Definition

Create a Project

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}.
  • Operation Id. : Projects_CreateOrUpdate.
  • Default Api Version. : 2026-03-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string projectName, Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.MongoDBAtlas.MongoDBAtlasProjectResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, projectName As String, data As MongoDBAtlasProjectData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MongoDBAtlasProjectResource))

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.

projectName
String

Name of the MongoDB Atlas Project resource.

data
MongoDBAtlasProjectData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

projectName or data is null.

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

Applies to