Mengkueri informasi tujuan API.
Deskripsi operasi
You can call this API operation to query the information about an API destination.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:GetApiDestination |
get |
*ApiDestination
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ApiDestinationName |
string |
Yes |
Nama tujuan API. |
api-destination-name |
Elemen respons
|
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 failed, an error code is returned. |
success |
| Code |
string |
The returned response code. The value 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 request parameters that are configured for 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 |
Contoh
Respons sukses
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
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | InternalError | |
| 409 | RequestParameterException | Request parameter exception | |
| 409 | ApiDestinationNotExist | The api-destination not existed! |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.