Skip to main content

data_versions

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

Overview

Namedata_versions
TypeResource
Idazure.ml_services.data_versions

Fields

NameDatatypeDescription
nametextfield from the properties object
data_typetextfield from the properties object
data_uritextfield from the properties object
is_anonymoustextfield from the properties object
is_archivedtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionId, version, workspaceName
listSELECTname, resourceGroupName, subscriptionId, workspaceName
create_or_updateINSERTname, resourceGroupName, subscriptionId, version, workspaceName, data__properties
deleteDELETEname, resourceGroupName, subscriptionId, version, workspaceName
publishEXECname, resourceGroupName, subscriptionId, version, workspaceName

SELECT examples

SELECT
name,
data_type,
data_uri,
is_anonymous,
is_archived,
resourceGroupName,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_data_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

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

DELETE example

Deletes the specified data_versions resource.

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