Skip to main content

update_runs

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

Overview

Nameupdate_runs
TypeResource
Idazure_stack.azure_stack_hci.update_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectDescribes Update Run Properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, updateName, updateRunNameGet the Update run for a specified update
listselectsubscriptionId, resourceGroupName, clusterName, updateNameList all Update runs for a specified update
putreplacesubscriptionId, resourceGroupName, clusterName, updateName, updateRunNamePut Update runs for a specified update
deletedeletesubscriptionId, resourceGroupName, clusterName, updateName, updateRunNameDelete specified Update Run

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
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
updateNamestringThe name of the Update
updateRunNamestringThe name of the Update Run

SELECT examples

Get the Update run for a specified update

SELECT
location,
properties
FROM azure_stack.azure_stack_hci.update_runs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND updateName = '{{ updateName }}' -- required
AND updateRunName = '{{ updateRunName }}' -- required
;

REPLACE examples

Put Update runs for a specified update

REPLACE azure_stack.azure_stack_hci.update_runs
SET
data__location = '{{ location }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND updateName = '{{ updateName }}' --required
AND updateRunName = '{{ updateRunName }}' --required
RETURNING
location,
properties;

DELETE examples

Delete specified Update Run

DELETE FROM azure_stack.azure_stack_hci.update_runs
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND updateName = '{{ updateName }}' --required
AND updateRunName = '{{ updateRunName }}' --required
;