Retrieves the result of an asynchronous task.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the API runs successfully, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information of the API. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details are as follows:
- Action: the specific permission point.
- Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. Details are as follows:
- Required resource types are marked with a preceding asterisk (*).
- For operations that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| dianjin:GetTaskResult | get | *All Resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | The workspace ID. | llm-xxxx |
| taskId | string | Yes | The task ID. | 17071319 |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | ResultCode | ||
| cost | long | The time consumed. | null |
| data | object | The result of the asynchronous task.PDF translation taskThe returned file_url is a downloadable file address. | { "file_url": "https://finllmworks.oss-cn-zhangjiakou.aliyuncs.com/render_pdf/5336180997111160501.pdf" } |
| dataType | string | The data type. | null |
| errCode | string | The error code. | 0 |
| message | string | The error message. | ok |
| requestId | string | The request ID. | 9D5D6BB5-BEAE-53C8-A70A-7275CC1F856C |
| success | boolean | Indicates whether the request was successful. | true |
| time | string | The timestamp. | 2024-04-24 11:54:34 |
Examples
Success response
JSON format