artifacts
Creates, updates, deletes, gets or lists a artifacts
resource.
Overview
Name | artifacts |
Type | Resource |
Id | azure.blueprints.artifacts |
Fields
Name | Datatype | Description |
---|---|---|
id | string | String Id used to locate any resource on Azure. |
name | string | Name of this resource. |
kind | string | Specifies the kind of blueprint artifact. |
type | string | Type of this resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | artifactName, blueprintName, resourceScope | Get a blueprint artifact. |
list | SELECT | blueprintName, resourceScope | List artifacts for a given blueprint definition. |
create_or_update | INSERT | artifactName, blueprintName, resourceScope, data__kind | Create or update blueprint artifact. |
delete | DELETE | artifactName, blueprintName, resourceScope | Delete a blueprint artifact. |
SELECT
examples
List artifacts for a given blueprint definition.
SELECT
id,
name,
kind,
type
FROM azure.blueprints.artifacts
WHERE blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}';
INSERT
example
Use the following StackQL query and manifest file to create a new artifacts
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.blueprints.artifacts (
artifactName,
blueprintName,
resourceScope,
data__kind,
kind
)
SELECT
'{{ artifactName }}',
'{{ blueprintName }}',
'{{ resourceScope }}',
'{{ data__kind }}',
'{{ kind }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: type
value: string
- name: name
value: string
- name: kind
value: string
DELETE
example
Deletes the specified artifacts
resource.
/*+ delete */
DELETE FROM azure.blueprints.artifacts
WHERE artifactName = '{{ artifactName }}'
AND blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}';