Language

NotebookWorkspaceCollection.CreateOrUpdateAsync Method

Definition

Creates the notebook workspace for a Cosmos DB account.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/notebookWorkspaces/{notebookWorkspaceName}.
  • Operation Id. : NotebookWorkspaces_CreateOrUpdate.
  • Default Api Version. : 2026-03-15.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName notebookWorkspaceName, Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, notebookWorkspaceName As NotebookWorkspaceName, content As NotebookWorkspaceCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NotebookWorkspaceResource))

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.

notebookWorkspaceName
NotebookWorkspaceName

The name of the notebook workspace resource.

content
NotebookWorkspaceCreateOrUpdateContent

The notebook workspace to create for the current database account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to