Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_isv.netapp.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
active_directoriestextfield from the properties object
disable_showmounttextfield from the properties object
encryptiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet the NetApp account
listSELECTresourceGroupName, subscriptionIdList and describe all NetApp accounts in the resource group.
list_by_subscriptionSELECTsubscriptionIdList and describe all NetApp accounts in the subscription.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionId, data__locationCreate or update the specified NetApp account within the resource group
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete the specified NetApp account
updateUPDATEaccountName, resourceGroupName, subscriptionIdPatch the specified NetApp account
renew_credentialsEXECaccountName, resourceGroupName, subscriptionIdRenew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it.

SELECT examples

List and describe all NetApp accounts in the subscription.

SELECT
accountName,
active_directories,
disable_showmount,
encryption,
etag,
identity,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure_isv.netapp.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.netapp.accounts (
accountName,
resourceGroupName,
subscriptionId,
data__location,
tags,
location,
properties,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_isv.netapp.accounts
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure_isv.netapp.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';