--- title: "addNasVolumeAccessControl" slug: "cli-server-addnasvolumeaccesscontrol" tags: ["Server", "NAS"] updated: 2026-09-17T10:08:35Z published: 2026-09-17T10:08:35Z canonical: "cli.ncloud-docs.com/cli-server-addnasvolumeaccesscontrol" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # addNasVolumeAccessControl Can be used in a Classic environment. ## Overview Adds the access control for NAS volume instances. ## Description Adds the access control for NAS. The access control permissions that have been set up can be viewed through the [getNasVolumeAccessControlRuleList](/docs/en/cli-server-getnasvolumeaccesscontrolrulelist) action. ## Request parameter | Parameter name | Requirement status | Type | Restrictions | Description | | --- | --- | --- | --- | --- | | nasVolumeInstanceNo | Yes | String | | - NAS volume instance number You can obtain nasVolumeInstanceNo through the getNasVolumeInstanceList action. | | accessControlRuleList.N.serverInstanceNo | No | String | It can't be duplicated. | - Server instance number You can obtain serverInstanceNo through the getServerInstanceList action. Only instance numbers of the servers owned by the user can be entered. Enter either serverInstanceNo or customIp, not both, for a single rule. | | accessControlRuleList.N.customIp | No | String | It can't be duplicated. | - Custom IP You can obtain customIp through the getServerInstanceList action. Only private IPs can be set. `Public IPs can't be set.` Enter either serverInstanceNo or customIp, not both, for a single rule. | | accessControlRuleList.N.writeAccess | No | Boolean | | - Whether writing permission is allowed Options: true \| false Default: true | ## Response data type - NasVolumeInstanceList type | NasVolumeInstanceList extends CommonResponse | | --- | | private int totalRows; | | private List nasVolumeInstanceList = new ArrayList(); | | NasVolumeInstance | | --- | | private String nasVolumeInstanceNo; | | private CommonCode nasVolumeInstanceStatus; | | private CommonCode nasVolumeInstanceOperation; | | private String nasVolumeInstanceStatusName; | | private Date createDate; | | private String nasVolumeInstanceDescription; | | private String mountInformation; | | private CommonCode volumeAllotmentProtocolType; | | private String volumeName; | | private long volumeTotalSize; | | private long volumeSize; | | private float snapshotVolumeConfigurationRatio; | | private CommonCode snapshotVolumeConfigPeriodType; | | private CommonCode snapshotVolumeConfigDayOfWeekType; | | private Integer snapshotVolumeConfigTime; | | private long snapshotVolumeSize; | | private Boolean isSnapshotConfiguration; | | private Boolean isEventConfiguration; | | private Region region; | | private Zone zone; | | private Boolean isReturnProtection; | | private List nasVolumeInstanceCustomIpList = new ArrayList(); | | private List nasVolumeServerInstanceList = new ArrayList(); | ## Examples ### Call ``` ncloud server addNasVolumeAccessControl --nasVolumeInstanceNo ***7367 --accessControlRuleList "serverInstanceNo=***7364, writeAccess=true" ``` ### Response ``` { "addNasVolumeAccessControlResponse": { "requestId": "70d52934-c1b9-4044-b34c-ce654d32d512", "returnCode": "0", "returnMessage": "success", "totalRows": 1, "nasVolumeInstanceList": [ { "nasVolumeInstanceNo": "***7367", "nasVolumeInstanceStatus": { "code": "CREAT", "codeName": "NAS create" }, "nasVolumeInstanceOperation": { "code": "NULL", "codeName": "NAS NULL OP" }, "nasVolumeInstanceStatusName": "created", "createDate": "2018-02-23T15:49:22+0900", "nasVolumeInstanceDescription": "", "mountInformation": "***.***.84.81:/n***212_mktest", "volumeAllotmentProtocolType": { "code": "NFS", "codeName": "NFS" }, "volumeName": "n***212_mktest", "volumeTotalSize": 21474836480, "volumeSize": 21474836480, "snapshotVolumeConfigurationRatio": 0.0, "snapshotVolumeSize": 0, "isSnapshotConfiguration": false, "isEventConfiguration": false, "region": { "regionNo": "1", "regionCode": "KR", "regionName": "Korea" }, "zone": { "zoneNo": "2", "zoneName": "KR-1", "zoneCode": "KR-1", "zoneDescription": "KR-1 zone", "regionNo" : "1" }, "isReturnProtection": false, "nasVolumeInstanceCustomIpList": [ { "customIp": "***.***.1.1" }, { "customIp": "***.***.1.2" } ], "nasVolumeServerInstanceList": [ { "serverInstanceNo": "***7364", "serverName": "ncloud-mktest3", "serverDescription": "", "cpuCount": 2, "memorySize": 2147483648, "baseBlockStorageSize": 53687091200, "platformType": { "code": "LNX64", "codeName": "Linux 64 Bit" }, "loginKeyName": "ysw", "isFeeChargingMonitoring": false, "publicIp": "", "privateIp": "***.***.245.164", "serverImageName": "centos-7.3-64", "serverInstanceStatus": { "code": "NSTOP", "codeName": "Server normal stopped state" }, "serverInstanceOperation": { "code": "NULL", "codeName": "Server NULL OP" }, "serverInstanceStatusName": "stopped", "createDate": "2018-02-23T15:44:59+0900", "uptime": "2018-02-23T15:57:56+0900", "serverImageProductCode": "SPSW0LINUX000046", "serverProductCode": "SPSVRSTAND000049", "isProtectServerTermination": false, "portForwardingPublicIp": "***.***.120.111", "zone": { "zoneNo": "2", "zoneName": "KR-1", "zoneCode": "KR-1", "zoneDescription": "KR-1 zone", "regionNo" : "1" }, "region": { "regionNo": "1", "regionCode": "KR", "regionName": "Korea" }, "baseBlockStorageDiskType": { "code": "NET", "codeName": "Network Storage" }, "baseBlockStroageDiskDetailType": { "code": "HDD", "codeName": "HDD" }, "userData": "", "accessControlGroupList": [ { "accessControlGroupConfigurationNo": "***1038", "accessControlGroupName": "ncloud-default-acg", "accessControlGroupDescription": "Default AccessControlGroup", "isDefault": true, "createDate": "2013-12-03T10:37:39+0900" } ] } ] } ] } } ``` ``` 70d52934-c1b9-4044-b34c-ce654d32d512 0 success 1 ***7367 CREAT NAS create NULL NAS NULL OP created 2018-02-23T15:49:22+0900 ***.***.84.81:/n***212_mktest NFS NFS n***212_mktest 21474836480 21474836480 0 0 false false 1 KR Korea 2 KR-1 KR-1 KR-1 zone 1 false ***.***.1.1 ***.***.1.2 ***7364 ncloud-mktest3 2 2147483648 53687091200 LNX64 Linux 64 Bit ysw false ***.***.245.164 centos-7.3-64 NSTOP Server normal stopped state NULL Server NULL OP stopped 2018-02-23T15:44:59+0900 2018-02-23T15:57:56+0900 SPSW0LINUX000046 SPSVRSTAND000049 false ***.***.120.111 2 KR-1 KR-1 KR-1 zone 1 1 KR Korea NET Network Storage HDD HDD ***1038 ncloud-default-acg Default AccessControlGroup true 2013-12-03T10:37:39+0900 ```