Skip to main content

registry_code_versions

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

Overview

Nameregistry_code_versions
TypeResource
Idazure.ml_services.registry_code_versions

Fields

NameDatatypeDescription
codeNametextfield 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
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcodeName, registryName, resourceGroupName, subscriptionId, version
listSELECTcodeName, registryName, resourceGroupName, subscriptionId
create_or_get_start_pending_uploadINSERTcodeName, registryName, resourceGroupName, subscriptionId, version
create_or_updateINSERTcodeName, registryName, resourceGroupName, subscriptionId, version, data__properties
deleteDELETEcodeName, registryName, resourceGroupName, subscriptionId, version

SELECT examples

SELECT
codeName,
code_uri,
is_anonymous,
is_archived,
provisioning_state,
registryName,
resourceGroupName,
subscriptionId,
version
FROM azure.ml_services.vw_registry_code_versions
WHERE codeName = '{{ codeName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified registry_code_versions resource.

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