Skip to main content

updates

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

Overview

Nameupdates
TypeResource
Idazure_stack.azure_stack_hci.updates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectUpdate properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, updateNameGet specified Update
listselectsubscriptionId, resourceGroupName, clusterNameList all Updates
putreplacesubscriptionId, resourceGroupName, clusterName, updateNamePut specified Update
deletedeletesubscriptionId, resourceGroupName, clusterName, updateNameDelete specified Update
postexecsubscriptionId, resourceGroupName, clusterName, updateNameApply Update

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

SELECT examples

Get specified Update

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

REPLACE examples

Put specified Update

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

DELETE examples

Delete specified Update

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

Lifecycle Methods

Apply Update

EXEC azure_stack.azure_stack_hci.updates.post 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required,
@updateName='{{ updateName }}' --required
;