caches
Creates, updates, deletes, gets or lists a caches resource.
Overview
| Name | caches |
| Type | Resource |
| Id | azure.netapp.caches |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
actualThroughputMibps | number | Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. |
cacheState | string | Azure NetApp Files Cache lifecycle management. Known values are: "ClusterPeeringOfferSent", "VserverPeeringOfferSent", "Creating", "Succeeded", and "Failed". (ClusterPeeringOfferSent, VserverPeeringOfferSent, Creating, Succeeded, Failed) |
cacheSubnetResourceId | string | The Azure Resource URI for a delegated cache subnet that will be used to allocate data IPs. Required. |
cifsChangeNotifications | string | Flag indicating whether a CIFS change notification is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
encryption | string | Specifies if the cache is encryption or not. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
encryptionKeySource | string | Source of key used to encrypt data in the cache. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. Required. Known values are: "Microsoft.NetApp" and "Microsoft.KeyVault". (Microsoft.NetApp, Microsoft.KeyVault) |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
exportPolicy | object | Set of export policy rules. |
fileAccessLogs | string | Flag indicating whether file access logs are enabled for the Cache, based on active diagnostic settings present on the Cache. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
filePath | string | The file path of the Cache. Required. |
globalFileLocking | string | Flag indicating whether the global file lock is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
kerberos | string | Describe if a cache is Kerberos enabled. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
keyVaultPrivateEndpointResourceId | string | The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. |
language | string | Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar", "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en", "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu", "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck", "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko", "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru", "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8", "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8", "tr", "tr.utf-8", "en-us", and "en-us.utf-8". (c.utf-8, utf8mb4, ar, ar.utf-8, hr, hr.utf-8, cs, cs.utf-8, da, da.utf-8, nl, nl.utf-8, en, en.utf-8, fi, fi.utf-8, fr, fr.utf-8, de, de.utf-8, he, he.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja.utf-8, ja-v1, ja-v1.utf-8, ja-jp.pck, ja-jp.pck.utf-8, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ko, ko.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, c, ro, ro.utf-8, ru, ru.utf-8, zh, zh.utf-8, zh.gbk, zh.gbk.utf-8, zh-tw.big5, zh-tw.big5.utf-8, zh-tw, zh-tw.utf-8, sk, sk.utf-8, sl, sl.utf-8, es, es.utf-8, sv, sv.utf-8, tr, tr.utf-8, en-us, en-us.utf-8) |
ldap | string | Specifies whether LDAP is enabled or not for flexcache volume. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
ldapServerType | string | Specifies the type of LDAP server for flexcache volume. Known values are: "ActiveDirectory" and "OpenLDAP". (ActiveDirectory, OpenLDAP) |
location | string | The geo-location where the resource lives. Required. |
maximumNumberOfFiles | integer | Maximum number of files allowed. |
mountTargets | array | List of mount targets that can be used to mount this cache. |
originClusterInformation | object | Origin cluster information. Required. |
peeringSubnetResourceId | string | The Azure Resource URI for a delegated subnet that will be used for ANF Intercluster Interface IP addresses. Required. |
protocolTypes | array | Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol. |
provisioningState | string | Azure lifecycle management. Known values are: "Creating", "Updating", "Deleting", "Failed", "Succeeded", and "Canceled". (Creating, Updating, Deleting, Failed, Succeeded, Canceled) |
size | integer | Maximum storage quota allowed for a file system in bytes. Valid values are in the range 50GiB to 1PiB. Values expressed in bytes as multiples of 1GiB. Required. |
smbSettings | object | SMB information for the cache. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
throughputMibps | number | Maximum throughput in MiB/s that can be achieved by this cache volume and this will be accepted as input only for manual qosType cache. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
writeBack | string | Flag indicating whether writeback is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
zones | array | The availability zones. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
actualThroughputMibps | number | Actual throughput in MiB/s for auto qosType volumes calculated based on size and serviceLevel. |
cacheState | string | Azure NetApp Files Cache lifecycle management. Known values are: "ClusterPeeringOfferSent", "VserverPeeringOfferSent", "Creating", "Succeeded", and "Failed". (ClusterPeeringOfferSent, VserverPeeringOfferSent, Creating, Succeeded, Failed) |
cacheSubnetResourceId | string | The Azure Resource URI for a delegated cache subnet that will be used to allocate data IPs. Required. |
cifsChangeNotifications | string | Flag indicating whether a CIFS change notification is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
encryption | string | Specifies if the cache is encryption or not. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
encryptionKeySource | string | Source of key used to encrypt data in the cache. Applicable if NetApp account has encryption.keySource = 'Microsoft.KeyVault'. Possible values (case-insensitive) are: 'Microsoft.NetApp, Microsoft.KeyVault'. Required. Known values are: "Microsoft.NetApp" and "Microsoft.KeyVault". (Microsoft.NetApp, Microsoft.KeyVault) |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
exportPolicy | object | Set of export policy rules. |
fileAccessLogs | string | Flag indicating whether file access logs are enabled for the Cache, based on active diagnostic settings present on the Cache. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
filePath | string | The file path of the Cache. Required. |
globalFileLocking | string | Flag indicating whether the global file lock is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
kerberos | string | Describe if a cache is Kerberos enabled. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
keyVaultPrivateEndpointResourceId | string | The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. |
language | string | Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar", "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en", "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu", "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck", "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko", "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru", "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8", "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8", "tr", "tr.utf-8", "en-us", and "en-us.utf-8". (c.utf-8, utf8mb4, ar, ar.utf-8, hr, hr.utf-8, cs, cs.utf-8, da, da.utf-8, nl, nl.utf-8, en, en.utf-8, fi, fi.utf-8, fr, fr.utf-8, de, de.utf-8, he, he.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja.utf-8, ja-v1, ja-v1.utf-8, ja-jp.pck, ja-jp.pck.utf-8, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ko, ko.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, c, ro, ro.utf-8, ru, ru.utf-8, zh, zh.utf-8, zh.gbk, zh.gbk.utf-8, zh-tw.big5, zh-tw.big5.utf-8, zh-tw, zh-tw.utf-8, sk, sk.utf-8, sl, sl.utf-8, es, es.utf-8, sv, sv.utf-8, tr, tr.utf-8, en-us, en-us.utf-8) |
ldap | string | Specifies whether LDAP is enabled or not for flexcache volume. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
ldapServerType | string | Specifies the type of LDAP server for flexcache volume. Known values are: "ActiveDirectory" and "OpenLDAP". (ActiveDirectory, OpenLDAP) |
location | string | The geo-location where the resource lives. Required. |
maximumNumberOfFiles | integer | Maximum number of files allowed. |
mountTargets | array | List of mount targets that can be used to mount this cache. |
originClusterInformation | object | Origin cluster information. Required. |
peeringSubnetResourceId | string | The Azure Resource URI for a delegated subnet that will be used for ANF Intercluster Interface IP addresses. Required. |
protocolTypes | array | Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol. |
provisioningState | string | Azure lifecycle management. Known values are: "Creating", "Updating", "Deleting", "Failed", "Succeeded", and "Canceled". (Creating, Updating, Deleting, Failed, Succeeded, Canceled) |
size | integer | Maximum storage quota allowed for a file system in bytes. Valid values are in the range 50GiB to 1PiB. Values expressed in bytes as multiples of 1GiB. Required. |
smbSettings | object | SMB information for the cache. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
throughputMibps | number | Maximum throughput in MiB/s that can be achieved by this cache volume and this will be accepted as input only for manual qosType cache. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
writeBack | string | Flag indicating whether writeback is enabled for the cache. Known values are: "Disabled" and "Enabled". (Disabled, Enabled) |
zones | array | The availability zones. |
Methods
The following methods are available for this resource:
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 |
|---|---|---|
account_name | string | The name of the NetApp account. Required. |
cache_name | string | The name of the cache resource. Required. |
pool_name | string | The name of the capacity pool. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list
Get the details of the specified Cache.
SELECT
id,
name,
actualThroughputMibps,
cacheState,
cacheSubnetResourceId,
cifsChangeNotifications,
encryption,
encryptionKeySource,
etag,
exportPolicy,
fileAccessLogs,
filePath,
globalFileLocking,
kerberos,
keyVaultPrivateEndpointResourceId,
language,
ldap,
ldapServerType,
location,
maximumNumberOfFiles,
mountTargets,
originClusterInformation,
peeringSubnetResourceId,
protocolTypes,
provisioningState,
size,
smbSettings,
systemData,
tags,
throughputMibps,
type,
writeBack,
zones
FROM azure.netapp.caches
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND cache_name = '{{ cache_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List all Caches within the Capacity Pool.
SELECT
id,
name,
actualThroughputMibps,
cacheState,
cacheSubnetResourceId,
cifsChangeNotifications,
encryption,
encryptionKeySource,
etag,
exportPolicy,
fileAccessLogs,
filePath,
globalFileLocking,
kerberos,
keyVaultPrivateEndpointResourceId,
language,
ldap,
ldapServerType,
location,
maximumNumberOfFiles,
mountTargets,
originClusterInformation,
peeringSubnetResourceId,
protocolTypes,
provisioningState,
size,
smbSettings,
systemData,
tags,
throughputMibps,
type,
writeBack,
zones
FROM azure.netapp.caches
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Create or update the specified Cache within the Capacity Pool.
INSERT INTO azure.netapp.caches (
tags,
location,
properties,
zones,
resource_group_name,
account_name,
pool_name,
cache_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ zones }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ pool_name }}',
'{{ cache_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type,
zones
;
# Description fields are for documentation purposes
- name: caches
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the caches resource.
- name: account_name
value: "{{ account_name }}"
description: Required parameter for the caches resource.
- name: pool_name
value: "{{ pool_name }}"
description: Required parameter for the caches resource.
- name: cache_name
value: "{{ cache_name }}"
description: Required parameter for the caches resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the caches resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives. Required.
- name: properties
description: |
Cache properties. Required.
value:
filePath: "{{ filePath }}"
size: {{ size }}
exportPolicy:
rules:
- ruleIndex: {{ ruleIndex }}
unixReadOnly: {{ unixReadOnly }}
unixReadWrite: {{ unixReadWrite }}
kerberos5ReadOnly: {{ kerberos5ReadOnly }}
kerberos5ReadWrite: {{ kerberos5ReadWrite }}
kerberos5iReadOnly: {{ kerberos5iReadOnly }}
kerberos5iReadWrite: {{ kerberos5iReadWrite }}
kerberos5pReadOnly: {{ kerberos5pReadOnly }}
kerberos5pReadWrite: {{ kerberos5pReadWrite }}
cifs: {{ cifs }}
nfsv3: {{ nfsv3 }}
nfsv41: {{ nfsv41 }}
allowedClients: "{{ allowedClients }}"
hasRootAccess: {{ hasRootAccess }}
chownMode: "{{ chownMode }}"
protocolTypes:
- "{{ protocolTypes }}"
provisioningState: "{{ provisioningState }}"
cacheState: "{{ cacheState }}"
cacheSubnetResourceId: "{{ cacheSubnetResourceId }}"
peeringSubnetResourceId: "{{ peeringSubnetResourceId }}"
mountTargets:
- mountTargetId: "{{ mountTargetId }}"
ipAddress: "{{ ipAddress }}"
smbServerFqdn: "{{ smbServerFqdn }}"
kerberos: "{{ kerberos }}"
smbSettings:
smbEncryption: "{{ smbEncryption }}"
smbAccessBasedEnumeration: "{{ smbAccessBasedEnumeration }}"
smbNonBrowsable: "{{ smbNonBrowsable }}"
throughputMibps: {{ throughputMibps }}
actualThroughputMibps: {{ actualThroughputMibps }}
encryptionKeySource: "{{ encryptionKeySource }}"
keyVaultPrivateEndpointResourceId: "{{ keyVaultPrivateEndpointResourceId }}"
maximumNumberOfFiles: {{ maximumNumberOfFiles }}
encryption: "{{ encryption }}"
language: "{{ language }}"
ldap: "{{ ldap }}"
ldapServerType: "{{ ldapServerType }}"
originClusterInformation:
peerClusterName: "{{ peerClusterName }}"
peerAddresses:
- "{{ peerAddresses }}"
peerVserverName: "{{ peerVserverName }}"
peerVolumeName: "{{ peerVolumeName }}"
cifsChangeNotifications: "{{ cifsChangeNotifications }}"
globalFileLocking: "{{ globalFileLocking }}"
writeBack: "{{ writeBack }}"
fileAccessLogs: "{{ fileAccessLogs }}"
- name: zones
value:
- "{{ zones }}"
description: |
The availability zones.
UPDATE examples
- update
Patch the specified Cache.
UPDATE azure.netapp.caches
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND cache_name = '{{ cache_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type,
zones;
REPLACE examples
- create_or_update
Create or update the specified Cache within the Capacity Pool.
REPLACE azure.netapp.caches
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND cache_name = '{{ cache_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type,
zones;
DELETE examples
- delete
Delete the specified cache.
DELETE FROM azure.netapp.caches
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND cache_name = '{{ cache_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- list_peering_passphrases
- pool_change
- reset_smb_password
This operation will list the cluster peering command, cluster peering passphrase and the vserver peering command.
EXEC azure.netapp.caches.list_peering_passphrases
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@cache_name='{{ cache_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Moves Cache to another Capacity Pool.
EXEC azure.netapp.caches.pool_change
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@cache_name='{{ cache_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"newPoolResourceId": "{{ newPoolResourceId }}"
}'
;
Resets the SMB password for the cache.
EXEC azure.netapp.caches.reset_smb_password
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@cache_name='{{ cache_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;