查询机器资源信息 接口描述 查询机器资源信息 请求方法 GET URI /v1/resource/machine 请求参数 名称 位置 类型 必选 说明 prodInstId query Long 是 实例id 响应参数 名称 二级节点 类型 说明 message String 消息提示 statusCode Integer 状态码 returnObj Array 机器资源列表 id Integer 机器资源唯一标识 prodInstId Integer 实例id userId Long 用户标识 host String 服务器地址 sshPort String ssh端口 machineType Byte 服务器类型 0:vm 1:physical machine adminUser String 管理员用户 cpuCount Byte cpu核数 memorySize Integer 内存大小 diskSize Integer 硬盘大小 createTime String 创建时间 示例 请求示例 /v1/resource/getMachineResource?prodInstId1 响应示例 { "message": "SUCCESS", "returnObj": [ { "adminUser": "hyugo", "cpuCount": 1, "createTime": "20220826 14:13:26", "diskSize": 100, "host": "192.168.174.182", "id": 1, "machineType": 0, "memorySize": 16, "prodInstId": 0, "sshPort": "22", "userId": 1 } ], "statusCode": 800 }