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.

deleteNetworkInterface

Prev Next

Available in VPC

Terminate a network interface.

Syntax

The deleteNetworkInterface syntax is as follows:

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

Options

This section describes the options available when running deleteNetworkInterface.

Required options

The following options are required for deleteNetworkInterface.

Options Type Required Description
--networkInterfaceNo String Required Network interface number

Common options

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

Examples

If the request to terminate a network interface is successful, the identification information and network configuration of the terminated network interface are returned.

Command

The command example is as follows:

./ncloud vserver deleteNetworkInterface \
    --networkInterfaceNo 56789012 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "deleteNetworkInterfaceResponse": {
    "totalRows": 1,
    "networkInterfaceList": [
      {
        "networkInterfaceNo": "56789012",
        "networkInterfaceName": "test-nic-01",
        "subnetNo": "23456789",
        "deleteOnTermination": false,
        "isDefault": false,
        "deviceName": "",
        "networkInterfaceStatus": {
          "code": "NOTUSED",
          "codeName": "Not used"
        },
        "ip": "192.0.2.10",
        "macAddress": "F2:20:AF:00:00:01",
        "enableFlowLog": false,
        "accessControlGroupNoList": [],
        "networkInterfaceDescription": "Test network interface",
        "secondaryIpList": [
          "192.0.2.14",
          "192.0.2.11"
        ]
      }
    ],
    "requestId": "7d456789-0123-4567-7890-345678901234",
    "returnCode": "0",
    "returnMessage": "success"
  }
}