FetchExportWordTask

Updated at:

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.

Debug

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.

OperationAccess levelResource typeCondition keyDependent operation
aimiaobi:FetchExportWordTaskget
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

The unique identifier of the workspace: AgentKey

xxxxx_p_efm
TaskIdstringNo

The task ID

2e27abb32cb64f80a0c6e829b6c87a09

Response parameters

NameTypeDescriptionExample value
object

The response result

Codestring

The status code

NoData
Dataobject

The returned data.

FileUrlstring

The file URL

http://xxx/xxx.xls
TaskStatsstring

The task status

PENDING-pending, RUNNING-running, SUCCESSED-success, SUSPENDED-suspended, FAILED-failed, CANCELLED-cancelled
HttpStatusCodeinteger

The HTTP status code

200
Messagestring

The error description

success
RequestIdstring

The unique identifier of the request

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

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.