跳转到主要内容
资源中心/硬件设施/物理机相关接口

获取物理网口LLDP信息

获取物理网口LLDP信息

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

操作 ID

GetHostNetworkInterfaceLldp

起始版本

5.0.0

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

路径参数

  • interfaceUuid
    String必填

    路径参数。

查询参数

  • systemTags
    List

    系统标签

  • userTags
    List

    用户标签

响应状态

200 OK
200 OK

该 API 成功时返回以下响应结构。

  • success
    boolean必填

    操作是否成功。

  • lldp
    HostNetworkInterfaceLldpRefInventory必填

    详情参考lldp

    • lldpUuid
      String必填

      暂无描述。

    • chassisId
      String必填

      机箱标识

    • timeToLive
      Integer必填

      生存时间

    • managementAddress
      String必填

      管理地址

    • systemName
      String必填

      系统名称

    • systemDescription
      String必填

      系统描述

    • systemCapabilities
      String必填

      系统能力

    • portId
      String必填

      端口标识

    • portDescription
      String必填

      端口描述

    • vlanId
      Integer必填

      VLAN标识

    • aggregationPortId
      Long必填

      聚合端口标识

    • mtu
      Integer必填

      最大传输单元

    • createDate
      Timestamp必填

      创建时间

    • lastOpDate
      Timestamp必填

      最后一次修改时间

  • error
    ErrorCode必填

    错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error

    • code
      String必填

      错误码号,错误的全局唯一标识,例如SYS.1000, HOST.1001

    • description
      String必填

      错误的概要描述

    • details
      String必填

      错误的详细信息

    • elaboration
      String必填

      保留字段,默认为null

    • opaque
      LinkedHashMap必填

      保留字段,默认为null

    • cause
      ErrorCode必填

      根错误,引发当前错误的源错误,若无原错误,该字段为null