setSubnetNetworkAcl

Prev Next

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 <subnet-no> \
    --networkAclNo <network-acl-no> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

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
--networkAclNo String Required Network ACL number

Common options

For information about the options common to all vpc subcommands, see VPC options.

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"
  }
}