Queries information about a specified API destination.
Operation description
Queries information about a specified API destination, such as the connection, HTTP parameters, and creation time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:GetApiDestination |
get |
*ApiDestination
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApiDestinationName |
string |
Yes |
The name of the API destination. |
api-destination-name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B896B484-F16D-59DE-9E23-DD0E5C361108 |
| Message |
string |
The returned message. If the request is successful, success is returned. If the request fails, an error code is returned. |
success |
| Code |
string |
The response code. A value of Success indicates that the request is successful. |
Success |
| Data |
object |
The returned data. |
|
| ApiDestinationName |
string |
The name of the API destination. |
demo |
| ConnectionName |
string |
The connection name. |
test-basic |
| Description |
string |
The description of the API destination. |
demo |
| HttpApiParameters |
object |
The HTTP request parameters of the API destination. |
|
| Endpoint |
string |
The endpoint of the API destination. |
http://127.0.0.1:8001/api |
| Method |
string |
The HTTP request method. Valid values:
|
POST |
| GmtCreate |
integer |
The time when the API destination was created. |
1649055710565 |
Examples
Success response
JSON format
{
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | InternalError | |
| 409 | RequestParameterException | Request parameter exception | |
| 409 | ApiDestinationNotExist | The api-destination not existed! |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.