accounts
Creates, updates, deletes, gets or lists a accounts
resource.
Overview
Name | accounts |
Type | Resource |
Id | azure_isv.netapp.accounts |
Fields
- vw_accounts
- accounts
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
active_directories | text | field from the properties object |
disable_showmount | text | field from the properties object |
encryption | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
etag | string | A unique read-only string that changes whenever the resource is updated. |
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | NetApp account properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, resourceGroupName, subscriptionId | Get the NetApp account |
list | SELECT | resourceGroupName, subscriptionId | List and describe all NetApp accounts in the resource group. |
list_by_subscription | SELECT | subscriptionId | List and describe all NetApp accounts in the subscription. |
create_or_update | INSERT | accountName, resourceGroupName, subscriptionId, data__location | Create or update the specified NetApp account within the resource group |
delete | DELETE | accountName, resourceGroupName, subscriptionId | Delete the specified NetApp account |
update | UPDATE | accountName, resourceGroupName, subscriptionId | Patch the specified NetApp account |
renew_credentials | EXEC | accountName, resourceGroupName, subscriptionId | 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. |
SELECT
examples
List and describe all NetApp accounts in the subscription.
- vw_accounts
- accounts
SELECT
accountName,
active_directories,
disable_showmount,
encryption,
etag,
identity,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure_isv.netapp.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
identity,
location,
properties,
tags
FROM azure_isv.netapp.accounts
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new accounts
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: etag
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: activeDirectories
value:
- - name: activeDirectoryId
value: string
- name: username
value: string
- name: password
value: string
- name: domain
value: string
- name: dns
value: string
- name: status
value: string
- name: statusDetails
value: string
- name: smbServerName
value: string
- name: organizationalUnit
value: string
- name: site
value: string
- name: backupOperators
value:
- string
- name: administrators
value:
- string
- name: kdcIP
value: string
- name: adName
value: string
- name: serverRootCACertificate
value: string
- name: aesEncryption
value: boolean
- name: ldapSigning
value: boolean
- name: securityOperators
value:
- string
- name: ldapOverTLS
value: boolean
- name: allowLocalNfsUsersWithLdap
value: boolean
- name: encryptDCConnections
value: boolean
- name: ldapSearchScope
value:
- name: userDN
value: string
- name: groupDN
value: string
- name: groupMembershipFilter
value: string
- name: preferredServersForLdapClient
value: string
- name: encryption
value:
- name: keySource
value: string
- name: keyVaultProperties
value:
- name: keyVaultId
value: string
- name: keyVaultUri
value: string
- name: keyName
value: string
- name: keyVaultResourceId
value: string
- name: status
value: string
- name: identity
value:
- name: principalId
value: string
- name: userAssignedIdentity
value: string
- name: disableShowmount
value: boolean
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
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 }}';