artifact_sources
Creates, updates, deletes, gets or lists a artifact_sources
resource.
Overview
Name | artifact_sources |
Type | Resource |
Id | azure.dev_test_labs.artifact_sources |
Fields
- vw_artifact_sources
- artifact_sources
Name | Datatype | Description |
---|---|---|
id | text | The identifier of the resource. |
name | text | The name of the resource. |
arm_template_folder_path | text | field from the properties object |
branch_ref | text | field from the properties object |
created_date | text | field from the properties object |
display_name | text | field from the properties object |
folder_path | text | field from the properties object |
labName | text | field from the properties object |
location | text | The location of the resource. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
security_token | text | field from the properties object |
source_type | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | The tags of the resource. |
type | text | The type of the resource. |
unique_identifier | text | field from the properties object |
uri | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The identifier of the resource. |
name | string | The name of the resource. |
location | string | The location of the resource. |
properties | object | Properties of an artifact source. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | labName, name, resourceGroupName, subscriptionId | Get artifact source. |
list | SELECT | labName, resourceGroupName, subscriptionId | List artifact sources in a given lab. |
create_or_update | INSERT | labName, name, resourceGroupName, subscriptionId, data__properties | Create or replace an existing artifact source. |
delete | DELETE | labName, name, resourceGroupName, subscriptionId | Delete artifact source. |
update | UPDATE | labName, name, resourceGroupName, subscriptionId | Allows modifying tags of artifact sources. All other properties will be ignored. |
SELECT
examples
List artifact sources in a given lab.
- vw_artifact_sources
- artifact_sources
SELECT
id,
name,
arm_template_folder_path,
branch_ref,
created_date,
display_name,
folder_path,
labName,
location,
provisioning_state,
resourceGroupName,
security_token,
source_type,
status,
subscriptionId,
tags,
type,
unique_identifier,
uri
FROM azure.dev_test_labs.vw_artifact_sources
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.dev_test_labs.artifact_sources
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new artifact_sources
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dev_test_labs.artifact_sources (
labName,
name,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ labName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: displayName
value: string
- name: uri
value: string
- name: sourceType
value: string
- name: folderPath
value: string
- name: armTemplateFolderPath
value: string
- name: branchRef
value: string
- name: securityToken
value: string
- name: status
value: string
- name: createdDate
value: string
- name: provisioningState
value: string
- name: uniqueIdentifier
value: string
UPDATE
example
Updates a artifact_sources
resource.
/*+ update */
UPDATE azure.dev_test_labs.artifact_sources
SET
tags = '{{ tags }}'
WHERE
labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified artifact_sources
resource.
/*+ delete */
DELETE FROM azure.dev_test_labs.artifact_sources
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';