FetchExportWordTask
Fetches the result of an asynchronous document export task.
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.
RAM authorization
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the operation. Details:
- Required resource types are marked with a leading asterisk (*).
- For operations that do not support resource-level authorization, All Resources is used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent operation: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| aimiaobi:FetchExportWordTask | get | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | The unique identifier of the workspace: AgentKey | xxxxx_p_efm |
| TaskId | string | No | The task ID | 2e27abb32cb64f80a0c6e829b6c87a09 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | The response result | ||
| Code | string | The status code | NoData |
| Data | object | The returned data. | |
| FileUrl | string | The file URL | http://xxx/xxx.xls |
| TaskStats | string | The task status | PENDING-pending, RUNNING-running, SUCCESSED-success, SUSPENDED-suspended, FAILED-failed, CANCELLED-cancelled |
| HttpStatusCode | integer | The HTTP status code | 200 |
| Message | string | The error description | success |
| RequestId | string | The unique identifier of the request | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Whether the request is successful: true for success, false for failure | true |
Examples
Success response
JSON format
{
"Code": "NoData",
"Data": {
"FileUrl": "http://xxx/xxx.xls",
"TaskStats": "PENDING-pending, RUNNING-running, SUCCESSED-success, SUSPENDED-suspended, FAILED-failed, CANCELLED-cancelled"
},
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.