Skip to main content

proxy_artifact

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

Overview

Nameproxy_artifact
TypeResource
Idazure_extras.hybrid_network.proxy_artifact

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
artifactStatestringThe artifact state. Known values are: "Unknown", "Preview", "Active", and "Deprecated".
artifactTypestringThe artifact type. Known values are: "Unknown", "OCIArtifact", "VhdImageFile", "ArmTemplate", and "ImageFile".
artifactVersionstringThe artifact version.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, publisher_name, artifact_store_name, subscription_id, artifactNameGet a Artifact overview information.
listselectresource_group_name, publisher_name, artifact_store_name, subscription_idLists all the available artifacts in the parent Artifact Store.
update_stateexecresource_group_name, publisher_name, artifact_store_name, artifact_version_name, subscription_id, artifactNameChange artifact state defined in artifact store.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
artifactNamestringThe name of the artifact. Required.
artifact_store_namestringThe name of the artifact store. Required.
artifact_version_namestringThe name of the artifact version. Required.
publisher_namestringThe name of the publisher. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a Artifact overview information.

SELECT
id,
name,
artifactState,
artifactType,
artifactVersion,
systemData,
type
FROM azure_extras.hybrid_network.proxy_artifact
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND artifact_store_name = '{{ artifact_store_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND artifactName = '{{ artifactName }}' -- required
;

Lifecycle Methods

Change artifact state defined in artifact store.

EXEC azure_extras.hybrid_network.proxy_artifact.update_state 
@resource_group_name='{{ resource_group_name }}' --required,
@publisher_name='{{ publisher_name }}' --required,
@artifact_store_name='{{ artifact_store_name }}' --required,
@artifact_version_name='{{ artifact_version_name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@artifactName='{{ artifactName }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;