All Products
Search
Document Center

EventBridge:QueryTracedEventByEventId

Last Updated:Mar 15, 2024

Queries event traces by event ID.

Operation description

You can call this API operation to query event traces by event ID.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EventBusNamestringYes

The name of the event bus.

demo
EventSourcestringYes

The name of the event source.

mse
EventIdstringYes

The event ID.

1935debf-ddac-49dc-a090-d4f2857a046d

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The returned error message.

EventBusNotExist
RequestIdstring

The request ID.

A5D7B9F4-BF96-51A9-90B1-928955FABB5B
Dataobject []

The total number of entries returned.

NextTokenstring

If excess return values exist, this parameter is returned.

1000
Eventsobject []

The events.

EventIdstring

The event ID.

37C-1P6Yn6EM7TcH37Vod8w7rbSeimJ
EventBusNamestring

The name of the event bus.

default
EventReceivedTimelong

The time when the event was delivered to the event bus.

1661773573100
EventSourcestring

The name of the event source.

cert-api
EventTypestring

The event type.

eventbridge:Events:HTTPEvent
Totalinteger

The total number of entries returned.

18
Codestring

The returned HTTP status code. The HTTP status code 200 indicates that the request is successful.

200
Successboolean

Indicates whether the request is successful. Valid values: true and false.

true

Examples

Sample success responses

JSONformat

{
  "Message": "EventBusNotExist",
  "RequestId": "A5D7B9F4-BF96-51A9-90B1-928955FABB5B",
  "Data": [
    {
      "NextToken": "1000",
      "Events": [
        {
          "EventId": "37C-1P6Yn6EM7TcH37Vod8w7rbSeimJ",
          "EventBusName": "default",
          "EventReceivedTime": 1661773573100,
          "EventSource": "cert-api",
          "EventType": "eventbridge:Events:HTTPEvent"
        }
      ],
      "Total": 18
    }
  ],
  "Code": "200",
  "Success": true
}

Error codes

HTTP status codeError codeError message
403ServiceNotEnableService not enable

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