az netappfiles volume export-policy

Manage Azure NetApp Files (ANF) Volume export policies.

Commands

az netappfiles volume export-policy add

Add a new rule to the export policy for a volume.

az netappfiles volume export-policy list

List the export policy rules for a volume.

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 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}
                                        --rule-index
                                        --unix-read-only {false, true}
                                        --unix-read-write {false, true}
                                        [--account-name]
                                        [--add]
                                        [--force-string]
                                        [--ids]
                                        [--name]
                                        [--pool-name]
                                        [--remove]
                                        [--resource-group]
                                        [--set]
                                        [--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

--allowed-clients

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

--cifs

Indication that CIFS protocol is allowed.

accepted values: false, true
--nfsv3

Indication that NFSv3 protocol is allowed.

accepted values: false, true
--nfsv41

Indication that NFSv4.1 protocol is allowed.

accepted values: false, true
--rule-index

Order index. No number can be repeated. Max 6 rules.

--unix-read-only

Indication of read only access.

accepted values: false, true
--unix-read-write

Indication of read and write access.

accepted values: false, true

Optional Parameters

--account-name -a

The name of the ANF account.

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

--force-string

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

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

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

The name of the ANF volume.

--pool-name -p

The name of the ANF pool.

--remove

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

--resource-group -g

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

--set

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

--subscription

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

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
                                         [--query-examples]
                                         [--subscription]

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

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

The name of the ANF volume.

--pool-name -p

The name of the ANF pool.

--resource-group -g

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

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

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]
                                           [--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

--rule-index

Order index. Range 1 to 6.

Optional Parameters

--account-name -a

The name of the ANF account.

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

--force-string

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

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

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

The name of the ANF volume.

--pool-name -p

The name of the ANF pool.

--remove

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

--resource-group -g

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

--set

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

--subscription

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