data_versions
Creates, updates, deletes, gets or lists a data_versions
resource.
Overview
Name | data_versions |
Type | Resource |
Id | azure.ml_services.data_versions |
Fields
- vw_data_versions
- data_versions
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
data_type | text | field from the properties object |
data_uri | text | field from the properties object |
is_anonymous | text | field from the properties object |
is_archived | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
version | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Data version base definition |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId, version, workspaceName | |
list | SELECT | name, resourceGroupName, subscriptionId, workspaceName | |
create_or_update | INSERT | name, resourceGroupName, subscriptionId, version, workspaceName, data__properties | |
delete | DELETE | name, resourceGroupName, subscriptionId, version, workspaceName | |
publish | EXEC | name, resourceGroupName, subscriptionId, version, workspaceName |
SELECT
examples
- vw_data_versions
- data_versions
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 }}';
SELECT
properties
FROM azure.ml_services.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: isAnonymous
value: boolean
- name: isArchived
value: boolean
- name: dataType
value: []
- name: dataUri
value: string
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 }}';