getNasVolumeAccessControlRuleList

Prev Next

Available in VPC

Get the list of access control rules set on a NAS volume instance.

Syntax

The getNasVolumeAccessControlRuleList syntax is as follows:

./ncloud vnas getNasVolumeAccessControlRuleList \
    --nasVolumeInstanceNo <nas-volume-instance-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getNasVolumeAccessControlRuleList.

Required options

The following options are required for getNasVolumeAccessControlRuleList.

Options Type Required Description
--nasVolumeInstanceNo String Required NAS volume instance number

Common options

For information about the options common to all vnas subcommands, see NAS (VPC) options.

Examples

If the request to retrieve the list of access control rules is successful, the server identification and permission information for each rule will be returned.

Command

The command example is as follows:

./ncloud vnas getNasVolumeAccessControlRuleList \
    --nasVolumeInstanceNo 10234567 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getNasVolumeAccessControlRuleListResponse": {
    "totalRows": 1,
    "nasVolumeAccessControlRuleList": [
      {
        "serverInstanceNo": "34567890",
        "readAccess": true,
        "writeAccess": true
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}