storage_account_credentials
Creates, updates, deletes, gets or lists a storage_account_credentials
resource.
Overview
Name | storage_account_credentials |
Type | Resource |
Id | azure_extras.storsimple_1200_series.storage_account_credentials |
Fields
- vw_storage_account_credentials
- storage_account_credentials
Name | Datatype | Description |
---|---|---|
id | text | The identifier. |
name | text | The name. |
access_key | text | field from the properties object |
cloud_type | text | field from the properties object |
credentialName | text | field from the properties object |
enable_ssl | text | field from the properties object |
end_point | text | field from the properties object |
location | text | field from the properties object |
login | text | field from the properties object |
managerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type. |
Name | Datatype | Description |
---|---|---|
id | string | The identifier. |
name | string | The name. |
properties | object | Storage account properties |
type | string | The type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | credentialName, managerName, resourceGroupName, subscriptionId | Returns the properties of the specified storage account credential name. |
list_by_manager | SELECT | managerName, resourceGroupName, subscriptionId | Retrieves all the storage account credentials in a manager. |
create_or_update | INSERT | credentialName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the storage account credential |
delete | DELETE | credentialName, managerName, resourceGroupName, subscriptionId | Deletes the storage account credential |
SELECT
examples
Retrieves all the storage account credentials in a manager.
- vw_storage_account_credentials
- storage_account_credentials
SELECT
id,
name,
access_key,
cloud_type,
credentialName,
enable_ssl,
end_point,
location,
login,
managerName,
resourceGroupName,
subscriptionId,
type
FROM azure_extras.storsimple_1200_series.vw_storage_account_credentials
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.storsimple_1200_series.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.storsimple_1200_series.storage_account_credentials (
credentialName,
managerName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ credentialName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: cloudType
value: string
- name: endPoint
value: string
- name: login
value: string
- name: location
value: string
- name: enableSSL
value: string
- name: accessKey
value:
- name: value
value: string
- name: encryptionCertificateThumbprint
value: string
- name: encryptionAlgorithm
value: string
DELETE
example
Deletes the specified storage_account_credentials
resource.
/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.storage_account_credentials
WHERE credentialName = '{{ credentialName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';