Skip to main content

kusto_pool_databases

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

Overview

Namekusto_pool_databases
TypeResource
Idazure.synapse.kusto_pool_databases

Fields

NameDatatypeDescription
kindstringKind of the database
locationstringResource location.
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameReturns a database.
list_by_kusto_poolSELECTkustoPoolName, resourceGroupName, subscriptionId, workspaceNameReturns the list of databases of the given Kusto pool.
create_or_updateINSERTdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__kindCreates or updates a database.
deleteDELETEdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceNameDeletes the database with the given name.
updateUPDATEdatabaseName, kustoPoolName, resourceGroupName, subscriptionId, workspaceName, data__kindUpdates a database.

SELECT examples

Returns the list of databases of the given Kusto pool.

SELECT
kind,
location,
systemData
FROM azure.synapse.kusto_pool_databases
WHERE kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.kusto_pool_databases (
databaseName,
kustoPoolName,
resourceGroupName,
subscriptionId,
workspaceName,
data__kind,
location,
kind
)
SELECT
'{{ databaseName }}',
'{{ kustoPoolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__kind }}',
'{{ location }}',
'{{ kind }}'
;

UPDATE example

Updates a kusto_pool_databases resource.

/*+ update */
UPDATE azure.synapse.kusto_pool_databases
SET
location = '{{ location }}',
kind = '{{ kind }}'
WHERE
databaseName = '{{ databaseName }}'
AND kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}'
AND data__kind = '{{ data__kind }}';

DELETE example

Deletes the specified kusto_pool_databases resource.

/*+ delete */
DELETE FROM azure.synapse.kusto_pool_databases
WHERE databaseName = '{{ databaseName }}'
AND kustoPoolName = '{{ kustoPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';