az netappfiles volume export-policy
Manage Azure NetApp Files (ANF) Volume export policies.
Commands
Name | Description | Type | Status |
---|---|---|---|
az netappfiles volume export-policy add |
Add a new rule to the export policy for a volume. |
Core | GA |
az netappfiles volume export-policy list |
List the export policy rules for a volume. |
Core | GA |
az netappfiles volume export-policy remove |
Remove a rule from the export policy for a volume by rule index. The current rules can be obtained by performing the subgroup list command. |
Core | GA |
az netappfiles volume export-policy wait |
Wait for a volume export-policy operation. |
Core | GA |
az netappfiles volume export-policy add
Add a new rule to the export policy for a volume.
az netappfiles volume export-policy add --allowed-clients
--cifs {false, true}
--nfsv3 {false, true}
--nfsv41 {false, true}
--unix-read-only {false, true}
--unix-read-write {false, true}
[--account-name]
[--chown-mode]
[--has-root-access {false, true}]
[--ids]
[--kerberos5-r]
[--kerberos5-rw]
[--kerberos5i-r]
[--kerberos5i-rw]
[--kerberos5p-r]
[--kerberos5p-rw]
[--name]
[--no-wait]
[--pool-name]
[--resource-group]
[--rule-index]
[--subscription]
Examples
Add an export policy rule for the ANF volume
az netappfiles volume export-policy add -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --allowed-clients "1.2.3.0/24" --rule-index 2 --unix-read-only true --unix-read-write false --cifs false --nfsv3 true --nfsv41 false
Required Parameters
Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names).
Indication that CIFS protocol is allowed.
Indication that NFSv3 protocol is allowed.
Indication that NFSv4.1 protocol is allowed.
Indication of read only access.
Indication of read and write access.
Optional Parameters
The name of the ANF account.
This parameter specifies who is authorized to change the ownership of a file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root users can change ownership of files that they own. Possible values include- Restricted, Unrestricted. Default value- Restricted.
Vol Has root access to volume.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Kerberos5 Read only access.
Kerberos5 Read and write access.
Kerberos5i Read only access.
Kerberos5i Read and write access.
Kerberos5p Read only access.
Kerberos5p Read and write access.
The name of the ANF volume.
Do not wait for the long-running operation to finish.
The name of the ANF pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Order index. No number can be repeated. Max 6 rules.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az netappfiles volume export-policy list
List the export policy rules for a volume.
az netappfiles volume export-policy list --account-name
--name
--pool-name
--resource-group
Examples
List the export policy rules for an ANF volume
az netappfiles volume export-policy list -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname
Required Parameters
The name of the ANF account.
The name of the ANF volume.
The name of the ANF pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az netappfiles volume export-policy remove
Remove a rule from the export policy for a volume by rule index. The current rules can be obtained by performing the subgroup list command.
az netappfiles volume export-policy remove --rule-index
[--account-name]
[--add]
[--force-string]
[--ids]
[--name]
[--no-wait]
[--pool-name]
[--remove]
[--resource-group]
[--set]
[--subscription]
Examples
Remove an export policy rule for an ANF volume
az netappfiles volume export-policy remove -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --rule-index 4
Required Parameters
Order index. Range 1 to 6.
Optional Parameters
The name of the ANF account.
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The name of the ANF volume.
Do not wait for the long-running operation to finish.
The name of the ANF pool.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az netappfiles volume export-policy wait
Wait for a volume export-policy operation.
az netappfiles volume export-policy wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--pool-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Name of the ANF account.
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Polling interval in seconds.
Name of the ANF volume.
Name of the ANF pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Feedback
Submit and view feedback for