--- title: "setSubnetNetworkAcl" slug: "cli-vpc-networkacl-setsubnetnetworkacl" tags: ["VPC"] updated: 2026-10-08T05:06:36Z published: 2026-10-08T05:06:36Z canonical: "cli.ncloud-docs.com/cli-vpc-networkacl-setsubnetnetworkacl" --- > ## 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. # setSubnetNetworkAcl Available in VPC Set the network ACL for a specific subnet in a VPC. ## Syntax The `setSubnetNetworkAcl` syntax is as follows: ``` ./ncloud vpc setSubnetNetworkAcl \ --subnetNo \ --networkAclNo \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `setSubnetNetworkAcl`. ### Required options The following options are required for `setSubnetNetworkAcl`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--subnetNo` | String | Required | Subnet number - See [getSubnetList](/docs/en/cli-vpc-subnetmanagement-getsubnetlist). | | `--networkAclNo` | String | Required | Network ACL number - See [getNetworkAclList](/docs/en/cli-vpc-networkacl-getnetworkacllist). | ### Common options For information about the options common to all `vpc` subcommands, see [VPC options](/docs/en/cli-vpc#%EC%98%B5%EC%85%98). ## Examples If the request to configure the network ACL for a subnet is successful, the network ACL configuration information is returned. ### Command The command example is as follows: ``` ./ncloud vpc setSubnetNetworkAcl \ --subnetNo 23456789 \ --networkAclNo 34567890 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "setSubnetNetworkAclResponse": { "totalRows": 1, "networkAclList": [ { "networkAclNo": "34567890", "networkAclName": "test-acl-01", "vpcNo": "12345678", "networkAclStatus": { "code": "RUN", "codeName": "In operation" }, "networkAclDescription": "Updated network ACL description", "createDate": "2026-07-07T14:37:10+0900", "isDefault": false } ], "requestId": "e5f6a7b8-c9d0-1234-efab-567890123456", "returnCode": "0", "returnMessage": "success" } } ```