厂商侧上传整机占位信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
mct_capture_param | MctCaptureParam | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | DataResult | result | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAisMetaMctServerproductinfoRequest req = new AlibabaAisMetaMctServerproductinfoRequest(); AlibabaAisMetaMctServerproductinfoRequest.MctCaptureParam obj1 = new AlibabaAisMetaMctServerproductinfoRequest.MctCaptureParam(); obj1.setResult( "Pass" ); obj1.setDirectiveNumber( "001" ); obj1.setModel( "F41.22.CYXXXX" ); obj1.setNodeSn( "20171123001" ); obj1.setForm( "2U1" ); obj1.setParam( "{\"timeout\":200}" ); obj1.setRequestId( "001" ); obj1.setChassisSn( "20171123001" ); obj1.setOssFileKey( "xxxx/ato/xxx/34567_AOI.txt" ); obj1.setStationId(1L); obj1.setVersion( "{\"main_version\": \"001\"}" ); obj1.setMessage( "power failed" ); obj1.setBoardSn( "20171123001" ); obj1.setFinishedTime(StringUtils.parseDateTime( "2016-11-01 10:16:00" )); obj1.setMct( "F41" ); obj1.setBrand( "Huawei" ); obj1.setStationName( "AOI" ); obj1.setWorkorderId( "XXX-001" ); obj1.setManufacturerName( "浪潮顺达" ); obj1.setStartedTime(StringUtils.parseDateTime( "2016-11-01 10:16:00" )); obj1.setType( "MOC" ); List<AlibabaAisMetaMctServerproductinfoRequest.TestCaseResultDto> list3 = new ArrayList<AlibabaAisMetaMctServerproductinfoRequest.TestCaseResultDto>(); AlibabaAisMetaMctServerproductinfoRequest.TestCaseResultDto obj4 = new AlibabaAisMetaMctServerproductinfoRequest.TestCaseResultDto(); list3.add(obj4); obj4.setTestCase( "CPU TEST" ); obj4.setResult( "Pass" ); obj4.setErrorModel( "CPU" ); obj4.setErrorModelPnList( "MG06ACA800E" ); obj4.setErrorModelSnList( "7930A02JFLFF" ); obj4.setErrorMsg( "CPU FAIL" ); obj4.setStartedTime(StringUtils.parseDateTime( "2016-11-01 10:16:00" )); obj4.setFinishedTime(StringUtils.parseDateTime( "2016-11-01 10:18:00" )); obj1.setTestCaseResultList(list3); req.setMctCaptureParam(obj1); AlibabaAisMetaMctServerproductinfoResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < alibaba_ais_meta_mct_serverproductinfo_response > < result > < err_code >000000</ err_code > < is_success >true</ is_success > < err_msg >go</ err_msg > </ result > </ alibaba_ais_meta_mct_serverproductinfo_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|