All Products
Search
Document Center

Resource Orchestration Service:ListAITaskEvents

Last Updated:Aug 28, 2026

Queries the events of an AI task.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ros:ListAITaskEvents

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

NextToken

string

No

The token for the next page of results. Leave empty for the first request. Set to the NextToken value from the previous response.

AAAAAdDWBF2****w==

MaxResults

string

No

The maximum number of results per page when NextToken is used for pagination.

Valid values: 1 to 100.

Default value: 50.

50

TaskId

string

No

The ID of the AI task.

t-asasas*****

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

B288A0BE-D927-4888-B0F7-B35EF84B6E6F

NextToken

string

The token for the next page of results. Empty if no more pages exist.

AAAAAdDWBF2****w==

HttpStatusCode

integer

The HTTP status code.

200

Success

string

Whether the request was successful. Valid values:

  • true

  • false

true

Code

string

The error code.

Forbidden

Events

array<object>

The events.

object

The event.

AgentType

string

The agent type for the AI task.

Valid values:

  • GenerateTemplateAgent

  • FixUserTemplateAgent

Valid values:

  • GenerateTemplateAgent :

    GenerateTemplateAgent

  • FixUserTemplateAgent :

    FixUserTemplateAgent

GenerateTemplateAgent

HandlerType

string

The handler type for the task.

Valid values:

  • TerraformTemplateGenerator

  • TemplateGenerator

  • ROSTemplateModifier

  • TerraformTemplateStaticFixer

  • TerraformTemplateDynamicFixer

  • DocumentTemplateGenerator

  • TerraformTemplateModifier

  • TemplateModifier

  • FixTemplateInputPreprocessor

  • TemplateStaticFixer

  • GenerateTemplateInputPreprocessor

  • ROSTemplateGenerator

  • TemplateDynamicFixer

  • BaseDynamicFixer

  • ROSTemplateStaticFixer

  • ROSTemplateDynamicFixer

Valid values:

  • TerraformTemplateGenerator :

    TerraformTemplateGenerator

  • TemplateGenerator :

    TemplateGenerator

  • ROSTemplateModifier :

    ROSTemplateModifier

  • TerraformTemplateStaticFixer :

    TerraformTemplateStaticFixer

  • TerraformTemplateDynamicFixer :

    TerraformTemplateDynamicFixer

  • DocumentTemplateGenerator :

    DocumentTemplateGenerator

  • TerraformTemplateModifier :

    TerraformTemplateModifier

  • TemplateModifier :

    TemplateModifier

  • FixTemplateInputPreprocessor :

    FixTemplateInputPreprocessor

  • TemplateStaticFixer :

    TemplateStaticFixer

  • GenerateTemplateInputPreprocessor :

    GenerateTemplateInputPreprocessor

  • ROSTemplateGenerator :

    ROSTemplateGenerator

  • TemplateDynamicFixer :

    TemplateDynamicFixer

  • BaseDynamicFixer :

    BaseDynamicFixer

  • ROSTemplateStaticFixer :

    ROSTemplateStaticFixer

  • ROSTemplateDynamicFixer :

    ROSTemplateDynamicFixer

ROSTemplateGenerator

HandlerProcessStatus

string

The handler execution status.

Valid values:

  • SUCCESS

  • RUNNING

  • FAILURE

Valid values:

  • SUCCESS :

    SUCCESS

  • RUNNING :

    RUNNING

  • FAILURE :

    FAILURE

RUNNING

EventData

string

The details of the event.

Document template generator started.

CreateTime

string

The event creation time in UTC. Format: YYYY-MM-DDThh:mm:ss (ISO 8601).

2019-08-01T04:07:39

EstimatedProcessingTime

string

The estimated execution time of the handler. Unit: seconds.

60

TaskId

string

The ID of the AI task.

t-asasas*****

TaskType

string

The AI task type.

  • GenerateTemplate: Generates a template.

  • FixTemplate: Fixes a template.

Valid values:

  • GenerateTemplate :

    GenerateTemplate

  • FixTemplate :

    FixTemplate

GenerateTemplate

TaskStatus

string

The AI task status.

  • PENDING

  • WAITING

  • RUNNING

  • SUCCESS

  • FAILURE

Valid values:

  • SUCCESS :

    SUCCESS

  • RUNNING :

    RUNNING

  • WAITING :

    WAITING

  • PENDING :

    PENDING

  • FAILURE :

    FAILURE

RUNNING

Examples

Success response

JSON format

{
  "RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
  "NextToken": "AAAAAdDWBF2****w==",
  "HttpStatusCode": 200,
  "Success": "true",
  "Code": "Forbidden",
  "Events": [
    {
      "AgentType": "GenerateTemplateAgent",
      "HandlerType": "ROSTemplateGenerator",
      "HandlerProcessStatus": "RUNNING",
      "EventData": "Document template generator started.",
      "CreateTime": "2019-08-01T04:07:39",
      "EstimatedProcessingTime": "60"
    }
  ],
  "TaskId": "t-asasas*****",
  "TaskType": "GenerateTemplate",
  "TaskStatus": "RUNNING"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.