Skip to main content

code_versions

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

Overview

Namecode_versions
TypeResource
Idazure.ml_services.code_versions

Fields

NameDatatypeDescription
nametextfield from the properties object
code_uritextfield from the properties object
is_anonymoustextfield from the properties object
is_archivedtextfield from the properties object
provisioning_statetextfield 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_get_start_pending_uploadINSERTname, resourceGroupName, subscriptionId, version, workspaceName
create_or_updateINSERTname, resourceGroupName, subscriptionId, version, workspaceName, data__properties
deleteDELETEname, resourceGroupName, subscriptionId, version, workspaceName
publishEXECname, resourceGroupName, subscriptionId, version, workspaceName

SELECT examples

SELECT
name,
code_uri,
is_anonymous,
is_archived,
provisioning_state,
resourceGroupName,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_code_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 code_versions resource.

/*+ create */
INSERT INTO azure.ml_services.code_versions (
name,
resourceGroupName,
subscriptionId,
version,
workspaceName,
pendingUploadId,
pendingUploadType
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ workspaceName }}',
'{{ pendingUploadId }}',
'{{ pendingUploadType }}'
;

DELETE example

Deletes the specified code_versions resource.

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