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

NameDatatypeDescription
clusterNametextfield from the properties object
durationtextfield from the properties object
last_updated_timetextfield from the properties object
locationtextThe geo-location where the resource lives
progresstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
time_startedtextfield from the properties object
updateNametextfield from the properties object
updateRunNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionId, updateName, updateRunNameGet the Update run for a specified update
listSELECTclusterName, resourceGroupName, subscriptionId, updateNameList all Update runs for a specified update
deleteDELETEclusterName, resourceGroupName, subscriptionId, updateName, updateRunNameDelete specified Update Run
putREPLACEclusterName, resourceGroupName, subscriptionId, updateName, updateRunNamePut Update runs for a specified update

SELECT examples

List all Update runs for a specified update

SELECT
clusterName,
duration,
last_updated_time,
location,
progress,
provisioning_state,
resourceGroupName,
state,
subscriptionId,
time_started,
updateName,
updateRunName
FROM azure_stack.azure_stack_hci.vw_update_runs
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateName = '{{ updateName }}';

REPLACE example

Replaces all fields in the specified update_runs resource.

/*+ update */
REPLACE azure_stack.azure_stack_hci.update_runs
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateName = '{{ updateName }}'
AND updateRunName = '{{ updateRunName }}';

DELETE example

Deletes the specified update_runs resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.update_runs
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND updateName = '{{ updateName }}'
AND updateRunName = '{{ updateRunName }}';