Gets the results of a document translation task from Tongyi Multimodal Translation.
Operation description
API for querying the results of document translation tasks.
Debug
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. For more information, see the following:
- Action: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the operation. For more information, see the following:
- Required resource types are marked with a leading 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: the other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| anytrans:GetDocTranslateTask | none | *All Resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | The ID of the Model Studio workspace used for the current request. | llm-kqtrcpdee4xm29xx |
| taskId | string | Yes | The document translation task ID. | d3a2397bc2c14ab4a2e40a4f5b46241b |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | The response status code. | success |
| message | string | The response message. | success |
| requestId | string | The request ID, used to trace the API call chain. | AC642EEB-C29D-54DF-8F52-622565BBB78A |
| success | boolean | Indicates whether the API call was successful. | true |
| httpStatusCode | string | The HTTP response code. | 200 |
| data | object | The response data. | |
| taskId | string | The document translation task ID. | d3a2397bc2c14ab4a2e40a4f5b46241b |
| status | string | The translation status. Valid values:
| translated |
| charactersCount | integer | The character count. | 4 |
| pageCount | integer | The page count. | 2 |
| translateFileUrl | string | The translation result URL. | http://translate-ai-data-dev.oss-cn-hangzhou.aliyuncs.com/tongyiTranslate/123456789/a7630164ce894c799cca0f0822c36f84_merge.md |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
Release notes
| Change time | Change summary | Operation |
|---|