Mengkueri daftar sumber event untuk pemanggilan fungsi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListEventSources |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/services/{serviceName}/functions/{functionName}/event-sources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
demo-service |
| functionName |
string |
Yes |
Nama fungsi. |
demo-function |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
Versi atau alias layanan. |
LATEST |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Nilainya dalam format EEE,d MMM yyyy HH:mm:ss GMT. |
Sat, 14 Jul 2017 07:02:38 GMT |
| X-Fc-Trace-Id |
string |
No |
ID jejak permintaan untuk API Function Compute. |
asdf**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| eventSources |
array<object> |
The event sources. |
|
|
object |
The information about the event source. |
||
| sourceArn |
string |
The Alibaba Cloud Resource Name (ARN) of the event source. |
acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc |
| createdTime |
string |
The time when the event source was created. |
2016-08-15T16:06:05.000+0000 |
Contoh
Respons sukses
JSONformat
{
"eventSources": [
{
"sourceArn": "acs:eventbridge:cn-shanghai:123456:eventbus/mns-test/rule/fc-test1/target/abc",
"createdTime": "2016-08-15T16:06:05.000+0000"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.