Skip to main content

registry_model_versions

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

Overview

Nameregistry_model_versions
TypeResource
Idazure.ml_services.registry_model_versions

Fields

NameDatatypeDescription
flavorstextfield from the properties object
is_anonymoustextfield from the properties object
is_archivedtextfield from the properties object
job_nametextfield from the properties object
modelNametextfield from the properties object
model_typetextfield from the properties object
model_uritextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
stagetextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmodelName, registryName, resourceGroupName, subscriptionId, version
listSELECTmodelName, registryName, resourceGroupName, subscriptionId
create_or_get_start_pending_uploadINSERTmodelName, registryName, resourceGroupName, subscriptionId, version
create_or_updateINSERTmodelName, registryName, resourceGroupName, subscriptionId, version, data__properties
deleteDELETEmodelName, registryName, resourceGroupName, subscriptionId, version

SELECT examples

SELECT
flavors,
is_anonymous,
is_archived,
job_name,
modelName,
model_type,
model_uri,
provisioning_state,
registryName,
resourceGroupName,
stage,
subscriptionId,
version
FROM azure.ml_services.vw_registry_model_versions
WHERE modelName = '{{ modelName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.ml_services.registry_model_versions (
modelName,
registryName,
resourceGroupName,
subscriptionId,
version,
pendingUploadId,
pendingUploadType
)
SELECT
'{{ modelName }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ pendingUploadId }}',
'{{ pendingUploadType }}'
;

DELETE example

Deletes the specified registry_model_versions resource.

/*+ delete */
DELETE FROM azure.ml_services.registry_model_versions
WHERE modelName = '{{ modelName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}';