All Products
Search
Document Center

EventBridge:GetApiDestination

Last Updated:Mar 15, 2024

Queries the information about an API destination.

Operation description

You can call this API operation to query the information about an API destination.

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
ApiDestinationNamestringYes

The name of the API destination.

api-destination-name

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

B896B484-F16D-59DE-9E23-DD0E5C361108
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.

ApiDestinationNamestring

The name of the API destination.

demo
ConnectionNamestring

The connection name.

test-basic
Descriptionstring

The description of the API destination.

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.

1649055710565

Examples

Sample success responses

JSONformat

{
  "RequestId": "B896B484-F16D-59DE-9E23-DD0E5C361108",
  "Message": "success",
  "Code": "Success",
  "Data": {
    "ApiDestinationName": "demo",
    "ConnectionName": "test-basic",
    "Description": "demo",
    "HttpApiParameters": {
      "Endpoint": "http://127.0.0.1:8001/api\n",
      "Method": "POST"
    },
    "GmtCreate": 1649055710565
  }
}

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.
    Error Codes 409 change
    Added Error Codes: 500
2023-04-06The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 409