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.

removeNetworkInterfaceAccessControlGroup

Prev Next

Available in VPC

Delete an ACG applied to a network interface. However, at least 1 ACG per network interface must be applied.

Syntax

The removeNetworkInterfaceAccessControlGroup syntax is as follows:

./ncloud vserver removeNetworkInterfaceAccessControlGroup \
    --networkInterfaceNo <nic-no> \
    --accessControlGroupNoList <acg-no-list> \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running removeNetworkInterfaceAccessControlGroup.

Required options

The following options are required for removeNetworkInterfaceAccessControlGroup.

Options Type Required Description
--networkInterfaceNo String Required Network interface number
--accessControlGroupNoList List Required ACG number list

Common options

For information about the options common to all vserver subcommands, see Server (VPC) options.

Examples

If the request to delete an ACG from a network interface is successful, the network interface's configuration information and the list of remaining ACGs are returned.

Command

The command example is as follows:

./ncloud vserver removeNetworkInterfaceAccessControlGroup \
    --networkInterfaceNo 56789012 \
    --accessControlGroupNoList 67890124 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "removeNetworkInterfaceAccessControlGroupResponse": {
    "totalRows": 1,
    "networkInterfaceList": [
      {
        "networkInterfaceNo": "56789012",
        "networkInterfaceName": "test-nic-01",
        "subnetNo": "23456789",
        "deleteOnTermination": false,
        "isDefault": false,
        "deviceName": "eth1",
        "networkInterfaceStatus": {
          "code": "USED",
          "codeName": "In use"
        },
        "instanceType": {
          "code": "VSVR",
          "codeName": "Server (VPC)"
        },
        "instanceNo": "34567890",
        "ip": "192.0.2.10",
        "macAddress": "F2:20:AF:00:00:01",
        "enableFlowLog": false,
        "accessControlGroupNoList": [
          "67890123"
        ],
        "networkInterfaceDescription": "Test network interface",
        "secondaryIpList": []
      }
    ],
    "requestId": "06789012-3456-7890-0123-678901234567",
    "returnCode": "0",
    "returnMessage": "success"
  }
}