文档

获取异步预测结果

更新时间:

调用GetAsyncPredict获取异步预测结果。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetAsyncPredict

系统规定参数。取值:GetAsyncPredict

AsyncPredictId Integer 1629

异步预测ID,通过调用CreateAsyncPredict接口获取。

返回数据

名称 类型 示例值 描述
AsyncPredictId Integer 1629

异步预测ID,通过调用CreateAsyncPredict接口获取。

Status Integer 2

异步预测状态,状态类型说明:

  • 1:处理中。
  • 2:处理完成。
  • 3:处理失败。
RequestId String EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2

请求ID。

Content String json string

异步预测结果,JSON字符串格式文本。

示例

请求示例

http(s)://[Endpoint]/?Action=GetAsyncPredict
&AsyncPredictId=1629
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAsyncPredictResponse>
    <requestId>EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2</requestId>
    <asyncPredictId>1629</asyncPredictId>
    <status>2</status>
    <content></content>
</GetAsyncPredictResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "EBF1AAD7-A3FB-4A78-B5E9-8356324B12B2",
  "asyncPredictId" : 1629,
  "status" : 2,
  "content" : "[]"
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidAccountStatus.ServiceUnavailable The NLP Auto Machine Learning service has not been activated. 用户未开通NLP自学习服务。
400 InvalidParameter.ModelId The specified modelId is invalid. 参数modelId不合法。
400 InvalidParameter.ModelVersion The specified modelVersion is invalid. 参数modelVersion不合法。
400 InvalidContentLength The length of content exceeds the limit. 内容长度过长。
500 InternalError An error occurred while processing your request. 未知错误。
403 Forbbiden You are not authorized to operate on the specified resource. 用户未被授权操作指定的资源。
404 ResourceNotFound The specified Model does not exist. 指定的模型不存在。
503 ServiceUnavailable An error occurred while processing your request. 服务内部错误。

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈