Skip to main content

notebook_workspaces

Creates, updates, deletes, gets or lists a notebook_workspaces resource.

Overview

Namenotebook_workspaces
TypeResource
Idazure.cosmos_db.notebook_workspaces

Fields

NameDatatypeDescription
idtextThe unique resource identifier of the database account.
nametextThe name of the database account.
accountNametextfield from the properties object
notebookWorkspaceNametextfield from the properties object
notebook_server_endpointtextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of Azure resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, notebookWorkspaceName, resourceGroupName, subscriptionIdGets the notebook workspace for a Cosmos DB account.
list_by_database_accountSELECTaccountName, resourceGroupName, subscriptionIdGets the notebook workspace resources of an existing Cosmos DB account.
create_or_updateINSERTaccountName, notebookWorkspaceName, resourceGroupName, subscriptionIdCreates the notebook workspace for a Cosmos DB account.
deleteDELETEaccountName, notebookWorkspaceName, resourceGroupName, subscriptionIdDeletes the notebook workspace for a Cosmos DB account.
regenerate_auth_tokenEXECaccountName, notebookWorkspaceName, resourceGroupName, subscriptionIdRegenerates the auth token for the notebook workspace
startEXECaccountName, notebookWorkspaceName, resourceGroupName, subscriptionIdStarts the notebook workspace

SELECT examples

Gets the notebook workspace resources of an existing Cosmos DB account.

SELECT
id,
name,
accountName,
notebookWorkspaceName,
notebook_server_endpoint,
resourceGroupName,
status,
subscriptionId,
type
FROM azure.cosmos_db.vw_notebook_workspaces
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new notebook_workspaces resource.

/*+ create */
INSERT INTO azure.cosmos_db.notebook_workspaces (
accountName,
notebookWorkspaceName,
resourceGroupName,
subscriptionId
)
SELECT
'{{ accountName }}',
'{{ notebookWorkspaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified notebook_workspaces resource.

/*+ delete */
DELETE FROM azure.cosmos_db.notebook_workspaces
WHERE accountName = '{{ accountName }}'
AND notebookWorkspaceName = '{{ notebookWorkspaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';