All Products
Search
Document Center

Resource Orchestration Service:ListAITaskEvents

Last Updated:May 14, 2025

Queries the events of an AI task.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ros:ListAITaskEventslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NextTokenstringNo

The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.

AAAAAdDWBF2****w==
MaxResultsstringNo

The maximum number of results to be returned from a single query when the NextToken parameter is used in the query.

Valid values: 1 to 100.

Default value: 50.

50
TaskIdstringNo

The ID of the AI task.

t-asasas*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

B288A0BE-D927-4888-B0F7-B35EF84B6E6F
NextTokenstring

A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.

AAAAAdDWBF2****w==
HttpStatusCodeinteger

The HTTP status code.

200
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The error code.

Forbidden
Eventsarray<object>

The events.

object

The event.

AgentTypestring

The type of the agent that is used to execute the AI task.

Valid values:

  • GenerateTemplateAgent
  • FixUserTemplateAgent
GenerateTemplateAgent
HandlerTypestring

The type of the handler that is used to execute the task.

Valid values:

  • TerraformTemplateGenerator
  • TemplateGenerator
  • ROSTemplateModifier
  • TerraformTemplateStaticFixer
  • TerraformTemplateDynamicFixer
  • DocumentTemplateGenerator
  • TerraformTemplateModifier
  • TemplateModifier
  • FixTemplateInputPreprocessor
  • TemplateStaticFixer
  • GenerateTemplateInputPreprocessor
  • ROSTemplateGenerator
  • TemplateDynamicFixer
  • BaseDynamicFixer
  • ROSTemplateStaticFixer
  • ROSTemplateDynamicFixer
ROSTemplateGenerator
HandlerProcessStatusstring

The execution state of the handler that process the AI task.

Valid values:

  • SUCCESS
  • RUNNING
  • FAILURE
RUNNING
EventDatastring

The details of the event.

Document template generator started.
CreateTimestring

The time when the event was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC.

2019-08-01T04:07:39
EstimatedProcessingTimestring

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

60
TaskIdstring

The ID of the AI task.

t-asasas*****
TaskTypestring

The type of the AI task.

  • GenerateTemplate: The AI task is used to generate a template.
  • FixTemplate: The AI task is used to fix a template.
GenerateTemplate
TaskStatusstring

The state of the AI task.

  • PENDING
  • WAITING
  • RUNNING
  • SUCCESS
  • FAILURE
RUNNING

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history