Executes predefined asynchronous 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 policy statement to grant RAM users or RAM roles 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 action. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For actions that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| aimiaobi:SubmitAsyncTask | create | *All resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier of the business space: AgentKey | 2daaa2e0c209xb26acb97009ea77bd4b_p_efm |
| TaskName | string | No | Task name definition | Task name |
| TaskCode | string | Yes | Task definition: for more information, see the task definition table | MaterialDocumentUpload |
| TaskParam | string | No | Task submission parameters | {"fileUrl":"https://www.example.com/aaa.doc","fileName":"File name","shareAttr":1} |
| TaskExecuteTime | string | No | Task execution time. The task runs immediately by default. Format: YYYY-MM-DD HH:mm:ss | 2023-10-14 14:30:00 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | Status code | successful |
| Data | object | Business data | |
| TaskId | string | Unique task ID | xxxx |
| TaskIntermediateResult | any | Intermediate result | {} |
| TaskName | string | Task name | Task name |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | successful |
| RequestId | string | Unique request ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Success | boolean | Whether the request is successful: true indicates success, and false indicates failure | true |
Examples
Success response
JSON format