Available in VPC
Get network interface details.
Syntax
The getNetworkInterfaceDetail syntax is as follows:
./ncloud vserver getNetworkInterfaceDetail \
--networkInterfaceNo <nic-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getNetworkInterfaceDetail.
Required options
The following options are required for getNetworkInterfaceDetail.
| 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 retrieve detailed information about a network interface is successful, the network interface's identification information and network configuration are returned.
Command
The command example is as follows:
./ncloud vserver getNetworkInterfaceDetail \
--networkInterfaceNo 56789012 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getNetworkInterfaceDetailResponse": {
"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": [
"67890123"
],
"networkInterfaceDescription": "Test network interface",
"secondaryIpList": [
"192.0.2.11"
]
}
],
"requestId": "d3e4f567-8901-2345-def0-345678901234",
"returnCode": "0",
"returnMessage": "success"
}
}