Skip to main content

artifacts

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

Overview

Nameartifacts
TypeResource
Idazure.blueprints.artifacts

Fields

NameDatatypeDescription
idstringString Id used to locate any resource on Azure.
namestringName of this resource.
kindstringSpecifies the kind of blueprint artifact.
typestringType of this resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTartifactName, blueprintName, resourceScopeGet a blueprint artifact.
listSELECTblueprintName, resourceScopeList artifacts for a given blueprint definition.
create_or_updateINSERTartifactName, blueprintName, resourceScope, data__kindCreate or update blueprint artifact.
deleteDELETEartifactName, blueprintName, resourceScopeDelete 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.

/*+ create */
INSERT INTO azure.blueprints.artifacts (
artifactName,
blueprintName,
resourceScope,
data__kind,
kind
)
SELECT
'{{ artifactName }}',
'{{ blueprintName }}',
'{{ resourceScope }}',
'{{ data__kind }}',
'{{ kind }}'
;

DELETE example

Deletes the specified artifacts resource.

/*+ delete */
DELETE FROM azure.blueprints.artifacts
WHERE artifactName = '{{ artifactName }}'
AND blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}';