All Products
Search
Document Center

EventBridge:ListApiDestinations

Last Updated:Mar 15, 2024

Queries a list of API destinations.

Operation description

You can use this API operation to query a list of API destinations.

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
ApiDestinationNamePrefixstringNo

The prefix of the API destination name.

api-demo
ConnectionNamestringNo

The connection name.

connection-name
MaxResultslongNo

The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging.

  • Default value: 10.
10
NextTokenstringNo

If you set Limit and excess return values exist, this parameter is returned.

  • Default value: 0.
0

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

96D7C0AB-DCE5-5E82-96B8-4725E1706BB1
Messagestring

The returned message. If the request is successful, success is returned. If the request failed, an error code is returned.

success
Codestring

The returned response code. The value Success indicates that the request is successful.

Success
Dataobject

The returned data.

ApiDestinationsobject []

The API destinations.

ApiDestinationNamestring

The name of the API destination.

api-destination-2
ConnectionNamestring

The connection name.

connection-name
Descriptionstring

The description of the connection.

demo
HttpApiParametersobject

The request parameters that are configured for the API destination.

Endpointstring

The endpoint of the API destination.

http://127.0.0.1:8001/api
Methodstring

The HTTP request method. Valid values:

  • POST

  • GET

  • DELETE

  • PUT

  • HEAD

  • TRACE

  • PATCH

POST
GmtCreatelong

The time when the API destination was created.

1665223213000
NextTokenstring

If excess return values exist, this parameter is returned.

1
Totalfloat

The total number of entries returned.

2
MaxResultsfloat

The maximum number of entries returned per page.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "96D7C0AB-DCE5-5E82-96B8-4725E1706BB1",
  "Message": "success",
  "Code": "Success",
  "Data": {
    "ApiDestinations": [
      {
        "ApiDestinationName": "api-destination-2",
        "ConnectionName": "connection-name",
        "Description": "demo",
        "HttpApiParameters": {
          "Endpoint": "http://127.0.0.1:8001/api",
          "Method": "POST"
        },
        "GmtCreate": 1665223213000
      }
    ],
    "NextToken": "1",
    "Total": 2,
    "MaxResults": 10
  }
}

Error codes

HTTP status codeError codeError message
409RequestParameterExceptionRequest parameter exception

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

Change history

Change timeSummary of changesOperation
2023-09-13The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 409
    Added Error Codes: 500
2023-04-06The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 409
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ConnectionName
    delete Input Parameters: Description
Output ParametersThe response structure of the API has changed.