Language

NotebookWorkspaceCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource> CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName notebookWorkspaceName, Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceName * Azure.ResourceManager.CosmosDB.Models.NotebookWorkspaceCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.NotebookWorkspaceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, notebookWorkspaceName As NotebookWorkspaceName, content As NotebookWorkspaceCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As 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