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

--account-name -a

The name of the NetApp account.

--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--allowed-clients

Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.

--chown-mode

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.

accepted values: Restricted, Unrestricted
default value: Restricted
--cifs

Allows CIFS protocol.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--has-root-access

Has root access to volume.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: True
--kerberos5-read-only

Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--kerberos5-read-write

Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--kerberos5i-read-only

Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--kerberos5i-read-write

Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--kerberos5p-read-only

Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--kerberos5p-read-write

Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
default value: False
--nfsv3

Allows NFSv3 protocol. Enable only for NFSv3 type volumes.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--nfsv41

Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--rule-index

Order index.

--unix-read-only

Read only access.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--unix-read-write

Read and write access.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--account-name -a

The name of the NetApp account.

--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--account-name -a

The name of the NetApp account.

--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--rule-index

Order index.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--account-name -a

The name of the NetApp account.

--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--rule-index

Order index.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--account-name -a

The name of the NetApp account.

--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--rule-index

Order index.

Optional Parameters

--add

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

--allowed-clients

Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names.

--chown-mode

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.

accepted values: Restricted, Unrestricted
--cifs

Allows CIFS protocol.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--has-root-access

Has root access to volume.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-read-only

Kerberos5 Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-read-write

Kerberos5 Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-read-only

Kerberos5i Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-read-write

Kerberos5i Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-read-only

Kerberos5p Read only access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-read-write

Kerberos5p Read and write access. To be use with swagger version 2020-05-01 or later.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--nfsv3

Allows NFSv3 protocol. Enable only for NFSv3 type volumes.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--nfsv41

Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--unix-read-only

Read only access.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--unix-read-write

Read and write access.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--account-name -a

The name of the NetApp account.

--created

Wait until created with 'provisioningState' at 'Succeeded'.

default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

default value: False
--exists

Wait until the resource exists.

default value: False
--ids

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.

--interval

Polling interval in seconds.

default value: 30
--name --volume-name -n -v

The name of the volume.

--pool-name -p

The name of the capacity pool.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.