Query Host Network Interface LLDP

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

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/all
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/hostNetworkInterface/lldp/{interfaceUuid}

Queryable Fields

Run the CLI command-line tool, enter QueryHostNetworkInterfaceLldp and press Tab to view all queryable fields and resource names that support cross-table queries.

API Response

Response Example

{
  "inventories": [
    {
      "interfaceUuid": "d90dd5538ca2343099ea96cb89857aca",
      "mode": "rx_only"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 4.1.0
inventoriesListSee inventories for details4.1.0
errorErrorCodeError code. If not null, the operation failed. If null, the operation succeeded. See error for details4.1.0

inventories

NameTypeDescriptionStarting Version
uuidStringUUID of the resource. Uniquely identifies the resource.4.1.0
interfaceUuidStringPhysical Network Interface UUID4.1.0
modeStringLLDP working mode4.1.0
createDateTimestampCreate time4.1.0
lastOpDateTimestampLast update time4.1.0
lldpHostNetworkInterfaceLldpRefInventorySee lldp 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

QueryHostNetworkInterfaceLldpAction action = new QueryHostNetworkInterfaceLldpAction();
action.conditions = asList();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryHostNetworkInterfaceLldpAction.Result res = action.call();

Python SDK

QueryHostNetworkInterfaceLldpAction action = QueryHostNetworkInterfaceLldpAction()
action.conditions = []
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryHostNetworkInterfaceLldpAction.Result res = action.call()