storage_accounts
Creates, updates, deletes, gets or lists a storage_accounts
resource.
Overview
Name | storage_accounts |
Type | Resource |
Id | azure.data_lake_analytics.storage_accounts |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_account
Successfully retrieved the specified Azure Storage account information.
Name | Datatype | Description |
---|---|---|
id | string | The resource identifier. |
name | string | The resource name. |
properties | object | The Azure Storage account properties. |
type | string | The resource type. |
Successfully retrieved the list of Azure Storage accounts.
Name | Datatype | Description |
---|---|---|
id | string | The resource identifier. |
name | string | The resource name. |
properties | object | The Azure Storage account properties. |
type | string | The resource type. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , accountName , storageAccountName | Gets the specified Azure Storage account linked to the given Data Lake Analytics account. | |
list_by_account | select | subscriptionId , resourceGroupName , accountName | $filter , $top , $skip , $select , $orderby , $count | Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. |
update | update | subscriptionId , resourceGroupName , accountName , storageAccountName | Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix. | |
delete | delete | subscriptionId , resourceGroupName , accountName , storageAccountName | Updates the specified Data Lake Analytics account to remove an Azure Storage account. | |
add | exec | subscriptionId , resourceGroupName , accountName , storageAccountName , properties | Updates the specified Data Lake Analytics account to add an Azure Storage account. |
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.
Name | Datatype | Description |
---|---|---|
accountName | string | The name of the Data Lake Analytics account. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
storageAccountName | string | The name of the Azure Storage account to add |
subscriptionId | string | The ID of the target subscription. |
$count | boolean | The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. |
$filter | string | The OData filter. Optional. |
$orderby | string | OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. |
$select | string | OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. |
$skip | integer (int32) | The number of items to skip over before returning elements. Optional. |
$top | integer (int32) | The number of items to return. Optional. |
SELECT
examples
- get
- list_by_account
Gets the specified Azure Storage account linked to the given Data Lake Analytics account.
SELECT
id,
name,
properties,
type
FROM azure.data_lake_analytics.storage_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND storageAccountName = '{{ storageAccountName }}' -- required
;
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
SELECT
id,
name,
properties,
type
FROM azure.data_lake_analytics.storage_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
AND $select = '{{ $select }}'
AND $orderby = '{{ $orderby }}'
AND $count = '{{ $count }}'
;
UPDATE
examples
- update
Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
UPDATE azure.data_lake_analytics.storage_accounts
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND storageAccountName = '{{ storageAccountName }}' --required;
DELETE
examples
- delete
Updates the specified Data Lake Analytics account to remove an Azure Storage account.
DELETE FROM azure.data_lake_analytics.storage_accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND storageAccountName = '{{ storageAccountName }}' --required
;
Lifecycle Methods
- add
Updates the specified Data Lake Analytics account to add an Azure Storage account.
EXEC azure.data_lake_analytics.storage_accounts.add
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@storageAccountName='{{ storageAccountName }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;