Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_isv.netapp.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
etagstringA unique read-only string that changes whenever the resource is updated.
identityobjectThe identity used for the resource.
locationstringThe geo-location where the resource lives
propertiesobjectNetApp Account properties
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameGet the NetApp account
listselectsubscriptionId, resourceGroupNameList and describe all NetApp accounts in the resource group.
list_by_subscriptionselectsubscriptionIdList and describe all NetApp accounts in the subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, accountName, data__locationCreate or update the specified NetApp account within the resource group
updateupdatesubscriptionId, resourceGroupName, accountNamePatch the specified NetApp account
deletedeletesubscriptionId, resourceGroupName, accountNameDelete the specified NetApp account
renew_credentialsexecsubscriptionId, resourceGroupName, accountNameRenew 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.

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.

NameDatatypeDescription
accountNamestringThe name of the NetApp account
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the NetApp account

SELECT
etag,
identity,
location,
properties,
tags
FROM azure_isv.netapp.accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Create or update the specified NetApp account within the resource group

INSERT INTO azure_isv.netapp.accounts (
data__tags,
data__location,
data__properties,
data__identity,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
etag,
identity,
location,
properties,
tags
;

UPDATE examples

Patch the specified NetApp account

UPDATE azure_isv.netapp.accounts
SET
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
etag,
identity,
location,
properties,
tags;

DELETE examples

Delete the specified NetApp account

DELETE FROM azure_isv.netapp.accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
;

Lifecycle Methods

Renew 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.

EXEC azure_isv.netapp.accounts.renew_credentials 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required
;