All Products
Search
Document Center

ActionTrail:ListDeliveryHistoryJobs

Last Updated:Nov 11, 2024

Queries a list of data backfill tasks.

Operation description

This topic provides an example on how to query a list of data backfill tasks. The returned result shows that a data backfill task with the ID 16602 is used to deliver historical events for a trail named trail-name to Simple Log Service.

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:
    • The required resource types are displayed in bold characters.
    • 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
actiontrail:ListDeliveryHistoryJobsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

The number of entries per page.

  • Valid values: 1 to 100.
  • Default value: 20.
20
PageNumberintegerNo

The page number.

  • Pages start from page 1.
  • Default value: 1.
1

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The number of historical event delivery tasks returned.

1
PageSizeinteger

The number of entries per page.

20
RequestIdstring

The ID of the request.

B190816C-6DCA-4DC5-9B8E-EE0367B57CFF
PageNumberinteger

The page number of the returned page.

1
DeliveryHistoryJobsarray<object>

The list of historical event delivery tasks.

DeliveryHistoryJobobject
TrailNamestring

The name of the trail.

trail-name
EndTimestring

The time when the task ended.

2021-04-26T03:22:04Z
StartTimestring

The time when the task started.

2021-01-26T03:17:04Z
JobStatusinteger

The task status. Valid values:

  • 0: The task is initializing.
  • 1: The task is delivering historical events.
  • 2: The task is complete.
  • 3: The task fails.
2
HomeRegionstring

The home region of the trail.

cn-hangzhou
UpdatedTimestring

The time when the task was updated.

2021-04-26T03:20:08Z
JobIdlong

The task ID.

16602
CreatedTimestring

The time when the task was created.

2021-04-26T03:17:04Z

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "PageSize": 20,
  "RequestId": "B190816C-6DCA-4DC5-9B8E-EE0367B57CFF",
  "PageNumber": 1,
  "DeliveryHistoryJobs": [
    {
      "TrailName": "trail-name",
      "EndTime": "2021-04-26T03:22:04Z",
      "StartTime": "2021-01-26T03:17:04Z",
      "JobStatus": 2,
      "HomeRegion": "cn-hangzhou",
      "UpdatedTime": "2021-04-26T03:20:08Z",
      "JobId": 16602,
      "CreatedTime": "2021-04-26T03:17:04Z"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
503ServiceUnavailableThe service is unavailable. Please try again later.An error occurred while processing your request.

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

Change history

Change timeSummary of changesOperation
No change history