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

获取物理机物理网络信息

获取物理机物理网络信息

GET/zstack/v1/hosts/network-facts/{hostUuid}

操作 ID

GetHostNetworkFacts

起始版本

3.5.0

执行模式

同步

认证信息

需要认证

认证信息

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

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

路径参数

  • hostUuid
    String必填

    物理机UUID

查询参数

  • systemTags
    List

    系统标签。

  • userTags
    List

    用户标签。

响应状态

200 OK
200 OK

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

  • success
    boolean必填

    操作是否成功。

  • error
    ErrorCode必填

    详情参考error

    • code
      String必填

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

    • description
      String必填

      错误的概要描述

    • details
      String必填

      错误的详细信息

    • elaboration
      String必填

      保留字段,默认为null

    • opaque
      LinkedHashMap必填

      保留字段,默认为null

    • cause
      ErrorCode必填

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

  • bondings
    List必填

    详情参考bondings

    • uuid
      String必填

      资源的UUID,唯一标示该资源

    • hostUuid
      String必填

      物理机UUID

    • bondingName
      String必填

      Bond名称

    • mode
      String必填

      Bond模式

    • xmitHashPolicy
      String必填

      哈希策略

    • miiStatus
      String必填

      mii状态

    • mac
      String必填

      MAC地址

    • ipAddresses
      List必填

      IP地址

    • miimon
      Long必填

      mii监控间隔

    • allSlavesActive
      Boolean必填

      slaves激活。

    • createDate
      Timestamp必填

      创建时间

    • lastOpDate
      Timestamp必填

      最后一次修改时间

    • slaves
      List必填

      详情参考slaves

      • uuid
        String必填

        资源的UUID,唯一标示该资源

      • hostUuid
        String必填

        物理机UUID

      • bondingUuid
        String必填

        暂无描述。

      • interfaceName
        String必填

        网卡名称

      • interfaceType
        String必填

        网卡应用状态,有nomaster、bridgeSlave、bondSlave

      • speed
        Long必填

        网卡速率

      • slaveActive
        Boolean必填

        Bond链路状态

      • carrierActive
        Boolean必填

        物理链路状态

      • ipAddresses
        List必填

        IP地址

      • mac
        String必填

        MAC地址

      • pciDeviceAddress
        String必填

        网卡PCI地址

      • createDate
        Timestamp必填

        创建时间

      • lastOpDate
        Timestamp必填

        最后一次修改时间

  • nics
    List必填

    详情参考nics

    • uuid
      String必填

      资源的UUID,唯一标示该资源

    • hostUuid
      String必填

      物理机UUID

    • bondingUuid
      String必填

      暂无描述。

    • interfaceName
      String必填

      网卡名称

    • interfaceType
      String必填

      网卡应用状态,有nomaster、bridgeSlave、bondSlave

    • speed
      Long必填

      网卡速率

    • slaveActive
      Boolean必填

      Bond链路状态

    • carrierActive
      Boolean必填

      物理链路状态

    • ipAddresses
      List必填

      IP地址

    • mac
      String必填

      MAC地址

    • pciDeviceAddress
      String必填

      网卡PCI地址

    • createDate
      Timestamp必填

      创建时间

    • lastOpDate
      Timestamp必填

      最后一次修改时间

  • error
    ErrorCode必填

    详情参考error

    • code
      String必填

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

    • description
      String必填

      错误的概要描述

    • details
      String必填

      错误的详细信息

    • elaboration
      String必填

      保留字段,默认为null

    • opaque
      LinkedHashMap必填

      保留字段,默认为null

    • cause
      ErrorCode必填

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