code_containers
Creates, updates, deletes, gets or lists a code_containers
resource.
Overview
Name | code_containers |
Type | Resource |
Id | azure.ml_services.code_containers |
Fields
- vw_code_containers
- code_containers
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
is_archived | text | field from the properties object |
latest_version | text | field from the properties object |
next_version | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Container for code asset versions. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId, workspaceName | |
list | SELECT | resourceGroupName, subscriptionId, workspaceName | |
create_or_update | INSERT | name, resourceGroupName, subscriptionId, workspaceName, data__properties | |
delete | DELETE | name, resourceGroupName, subscriptionId, workspaceName |
SELECT
examples
- vw_code_containers
- code_containers
SELECT
name,
is_archived,
latest_version,
next_version,
provisioning_state,
resourceGroupName,
subscriptionId,
workspaceName
FROM azure.ml_services.vw_code_containers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
properties
FROM azure.ml_services.code_containers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new code_containers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.ml_services.code_containers (
name,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: isArchived
value: boolean
- name: latestVersion
value: string
- name: nextVersion
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified code_containers
resource.
/*+ delete */
DELETE FROM azure.ml_services.code_containers
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';