Skip to main content

datastores

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

Overview

Namedatastores
TypeResource
Idazure.ml_services.datastores

Fields

NameDatatypeDescription
nametextfield from the properties object
descriptiontextfield from the properties object
credentialstextfield from the properties object
datastore_typetextfield from the properties object
is_defaulttextfield from the properties object
propertiestextBase definition for datastore contents configuration.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionId, workspaceName
listSELECTresourceGroupName, subscriptionId, workspaceName
create_or_updateINSERTname, resourceGroupName, subscriptionId, workspaceName, data__properties
deleteDELETEname, resourceGroupName, subscriptionId, workspaceName

SELECT examples

SELECT
name,
description,
credentials,
datastore_type,
is_default,
properties,
resourceGroupName,
subscriptionId,
tags,
workspaceName
FROM azure.ml_services.vw_datastores
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.ml_services.datastores (
name,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified datastores resource.

/*+ delete */
DELETE FROM azure.ml_services.datastores
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';