Skip to main content

storage_account_credentials

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

Overview

Namestorage_account_credentials
TypeResource
Idazure_extras.storsimple_8000_series.storage_account_credentials

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe name of the object.
access_keytextfield from the properties object
end_pointtextfield from the properties object
kindtextThe Kind of the object. Currently only Series8000 is supported
managerNametextfield from the properties object
resourceGroupNametextfield from the properties object
ssl_statustextfield from the properties object
storageAccountCredentialNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe hierarchical type of the object.
volumes_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagerName, resourceGroupName, storageAccountCredentialName, subscriptionIdGets the properties of the specified storage account credential name.
list_by_managerSELECTmanagerName, resourceGroupName, subscriptionIdGets all the storage account credentials in a manager.
create_or_updateINSERTmanagerName, resourceGroupName, storageAccountCredentialName, subscriptionId, data__propertiesCreates or updates the storage account credential.
deleteDELETEmanagerName, resourceGroupName, storageAccountCredentialName, subscriptionIdDeletes the storage account credential.

SELECT examples

Gets all the storage account credentials in a manager.

SELECT
id,
name,
access_key,
end_point,
kind,
managerName,
resourceGroupName,
ssl_status,
storageAccountCredentialName,
subscriptionId,
type,
volumes_count
FROM azure_extras.storsimple_8000_series.vw_storage_account_credentials
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new storage_account_credentials resource.

/*+ create */
INSERT INTO azure_extras.storsimple_8000_series.storage_account_credentials (
managerName,
resourceGroupName,
storageAccountCredentialName,
subscriptionId,
data__properties,
kind,
properties
)
SELECT
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ storageAccountCredentialName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified storage_account_credentials resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_8000_series.storage_account_credentials
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageAccountCredentialName = '{{ storageAccountCredentialName }}'
AND subscriptionId = '{{ subscriptionId }}';