Get Host Network Interface LLDP Info

GET/zstack/v1/hostNetworkInterface/lldp/{interfaceUuid}/info

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/hostNetworkInterface/lldp/e1b5f128aa183da6a6b719f136fdc5d2/info

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
interfaceUuidStringurlPhysical Network Interface UUID 4.1.0
systemTags (Optional)ListquerySystem Tags 4.1.0
userTags (Optional)ListqueryUser Tags 4.1.0

API Response

Response Example

{
  "lldp": {
    "lldpUuid": "6b7c1267888a38779eac7694315855f0",
    "chassisId": "mac 00:1e:08:1d:05:ba",
    "timeToLive": 120,
    "managementAddress": "172.25.2.4",
    "systemName": "BM-MN-3",
    "systemDescription": " CentecOS software, E530, Version 7.4.7 Copyright (C) 2004-2021 Centec Networks Inc.  All Rights Reserved.",
    "systemCapabilities": "Bridge, on  Router, on",
    "portId": "ifname eth-0-5",
    "portDescription": "eth-0-4",
    "vlanId": 3999,
    "aggregationPortId": 4294965248,
    "mtu": 9600
  }
}
NameTypeDescriptionStarting Version
successboolean 4.1.0
lldpHostNetworkInterfaceLldpRefInventorySee lldp for details4.1.0
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See error for details4.1.0

lldp

NameTypeDescriptionStarting Version
lldpUuidStringLLDP UUID4.1.0
chassisIdStringChassis identifier4.1.0
timeToLiveIntegerTime to live4.1.0
managementAddressStringManagement address4.1.0
systemNameStringSystem name4.1.0
systemDescriptionStringSystem description4.1.0
systemCapabilitiesStringSystem capabilities4.1.0
portIdStringPort identifier4.1.0
portDescriptionStringPort description4.1.0
vlanIdIntegerVLAN identifier4.1.0
aggregationPortIdLongAggregation port identifier4.1.0
mtuIntegerMaximum transmission unit4.1.0
createDateTimestampCreate time4.1.0
lastOpDateTimestampLast update time4.1.0

error

NameTypeDescriptionStarting Version
codeStringError code number. Globally unique identifier of the error, for example SYS.1000, HOST.1001.4.1.0
descriptionStringBrief error description4.1.0
detailsStringDetailed error information4.1.0
elaborationStringReserved field, defaults to null4.1.0
opaqueLinkedHashMapReserved field, defaults to null4.1.0
causeErrorCodeRoot cause error. The error that caused the current error. If there is no original error, this field is null.4.1.0

SDK Examples

Java SDK

GetHostNetworkInterfaceLldpAction action = new GetHostNetworkInterfaceLldpAction();
action.interfaceUuid = "e1b5f128aa183da6a6b719f136fdc5d2";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetHostNetworkInterfaceLldpAction.Result res = action.call();

Python SDK

GetHostNetworkInterfaceLldpAction action = GetHostNetworkInterfaceLldpAction()
action.interfaceUuid = "e1b5f128aa183da6a6b719f136fdc5d2"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetHostNetworkInterfaceLldpAction.Result res = action.call()