Skip to main content

SubmitAsyncTask

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 resources is 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.
ActionAccess levelResource typeCondition keyRelated action
aimiaobi:SubmitAsyncTaskcreate
*All resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
AgentKeystringYes

Unique identifier of the business space: AgentKey

2daaa2e0c209xb26acb97009ea77bd4b_p_efm
TaskNamestringNo

Task name definition

Task name
TaskCodestringYes

Task definition: for more information, see the task definition table

MaterialDocumentUpload
TaskParamstringNo

Task submission parameters

{"fileUrl":"https://www.example.com/aaa.doc","fileName":"File name","shareAttr":1}
TaskExecuteTimestringNo

Task execution time. The task runs immediately by default. Format: YYYY-MM-DD HH:mm:ss

2023-10-14 14:30:00

Response parameters

NameTypeDescriptionExample value
object

PlainResult

Codestring

Status code

successful
Dataobject

Business data

TaskIdstring

Unique task ID

xxxx
TaskIntermediateResultany

Intermediate result

{}
TaskNamestring

Task name

Task name
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

successful
RequestIdstring

Unique request ID

3f7045e099474ba28ceca1b4eb6d6e21
Successboolean

Whether the request is successful: true indicates success, and false indicates failure

true

Examples

Success response JSON format
{
  "Code": "successful",
  "Data": {
    "TaskId": "xxxx",
    "TaskIntermediateResult": {},
    "TaskName": "任务名称"
  },
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.