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 show |
Show the export policy rule for a volume. |
Core | GA |
az netappfiles volume export-policy update |
Update the export policy rule for a volume. |
Core | GA |
az netappfiles volume export-policy wait |
Place the CLI in a waiting state until a condition is met. |
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 --account-name
--name
--pool-name
--resource-group
[--allowed-clients]
[--chown-mode {Restricted, Unrestricted}]
[--cifs {0, 1, f, false, n, no, t, true, y, yes}]
[--has-root-access {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5i-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5i-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5p-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5p-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--nfsv3 {0, 1, f, false, n, no, t, true, y, yes}]
[--nfsv41 {0, 1, f, false, n, no, t, true, y, yes}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--rule-index]
[--unix-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--unix-read-write {0, 1, f, false, n, no, t, true, y, yes}]
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
The name of the NetApp account.
The name of the volume.
The name of the capacity pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.
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.
Allows CIFS protocol.
Has root access to volume.
Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.
Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.
Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.
Allows NFSv3 protocol. Enable only for NFSv3 type volumes.
Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.
Do not wait for the long-running operation to finish.
Order index.
Read only access.
Read and write access.
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 NetApp account.
The name of the volume.
The name of the capacity 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 --account-name
--name
--pool-name
--resource-group
--rule-index
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--yes]
Examples
Remove an export policy rule from an ANF volume
az netappfiles volume export-policy remove -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --rule-index 4
Required Parameters
The name of the NetApp account.
The name of the volume.
The name of the capacity pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Order index.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
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 show
Show the export policy rule for a volume.
az netappfiles volume export-policy show --account-name
--name
--pool-name
--resource-group
--rule-index
Examples
Get an export policy rule for an ANF volume
az netappfiles volume export-policy show -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --rule-index 4
Required Parameters
The name of the NetApp account.
The name of the volume.
The name of the capacity pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Order index.
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 update
Update the export policy rule for a volume.
az netappfiles volume export-policy update --account-name
--name
--pool-name
--resource-group
--rule-index
[--add]
[--allowed-clients]
[--chown-mode {Restricted, Unrestricted}]
[--cifs {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--has-root-access {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5i-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5i-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5p-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--kerberos5p-read-write {0, 1, f, false, n, no, t, true, y, yes}]
[--nfsv3 {0, 1, f, false, n, no, t, true, y, yes}]
[--nfsv41 {0, 1, f, false, n, no, t, true, y, yes}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--set]
[--unix-read-only {0, 1, f, false, n, no, t, true, y, yes}]
[--unix-read-write {0, 1, f, false, n, no, t, true, y, yes}]
Examples
Update the export policy rule for a volume
az netappfiles volume export-policy update -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --rule-index 1 --allowed-clients '1.1.3.0/24'
Required Parameters
The name of the NetApp account.
The name of the volume.
The name of the capacity pool.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Order index.
Optional Parameters
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>.
Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.
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.
Allows CIFS protocol.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Has root access to volume.
Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.
Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.
Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.
Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.
Allows NFSv3 protocol. Enable only for NFSv3 type volumes.
Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.
Do not wait for the long-running operation to finish.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Read only access.
Read and write access.
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
Place the CLI in a waiting state until a condition is met.
az netappfiles volume export-policy wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--pool-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
The name of the NetApp 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.
The name of the volume.
The name of the capacity 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.
Azure CLI