Skip to main content

storage_settings

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

Overview

Namestorage_settings
TypeResource
Idazure_stack.storage_admin.storage_settings

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource Name.
locationtextResource Location.
retention_period_for_deleted_storage_accounts_in_daystextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, subscriptionIdReturns the storage resource provider settings.
updateREPLACElocation, subscriptionIdUpdate storage resource provider settings.

SELECT examples

Returns the storage resource provider settings.

SELECT
id,
name,
location,
retention_period_for_deleted_storage_accounts_in_days,
subscriptionId,
type
FROM azure_stack.storage_admin.vw_storage_settings
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified storage_settings resource.

/*+ update */
REPLACE azure_stack.storage_admin.storage_settings
SET
properties = '{{ properties }}'
WHERE
location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';