Mengkueri semua target event dari aturan event.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:ListTargets |
list |
*Rule
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EventBusName |
string |
No |
Nama EventBridge. |
my-event-bus |
| Limit |
integer |
No |
Jumlah maksimum entri yang dikembalikan dalam satu panggilan. |
10 |
| RuleName |
string |
No |
Nama aturan event. |
tf-testacc-rule |
| NextToken |
string |
No |
Jika Anda mengonfigurasi Limit dan terdapat nilai pengembalian yang melebihi batas, parameter ini akan dikembalikan. |
0 |
| Arn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) aturan event. |
acs:fc:cn-hangzhou:118609547428****:services/fc-connector.a1/functions/event |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Message |
string |
The returned error message. |
EventRuleNotExisted |
| RequestId |
string |
The request ID. |
5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| Data |
object |
The returned data. |
|
| Targets |
array<object> |
The event targets. |
|
|
array<object> |
The event target. |
||
| Type |
string |
The type of the event target. For more information, see Event target parameters. |
acs.fc.function |
| Endpoint |
string |
The endpoint of the event target. |
acs:fc:cn-hangzhou:123456789098****:services/guide.LATEST/functions/HelloFC |
| ParamList |
array<object> |
The parameters that are configured for the event target. |
|
|
object |
|||
| Value |
string |
The value of the event target parameter. |
{\"key\"=\"value\"} |
| Template |
string |
The template that is used by the event target parameter. |
The value of ${key} is ${value}! |
| Form |
string |
The format that is used by the event target parameter. |
TEMPLATE |
| ResourceKey |
string |
The resource parameter of the event target. |
body |
| ErrorsTolerance |
string |
The fault tolerance policy. Valid values: ALL and NONE.
|
ALL |
| Id |
string |
The ID of the event target. |
1453 |
| EventBusName |
string |
The name of the event bus. |
sls-beijing-one1-tf |
| RuleName |
string |
The name of the event rule. |
rule-uKAK2 |
| ConcurrentConfig |
object |
The concurrency configuration. |
|
| Concurrency |
integer |
The maximum number of concurrent events allowed in the event target. |
10 |
| NextToken |
string |
If excess return values exist, this parameter is returned. |
1 |
| Total |
integer |
The total number of entries. |
18 |
| Code |
string |
The returned response code. Valid values:
|
Success |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "EventRuleNotExisted",
"RequestId": "5DAF96FB-A4B6-548C-B999-0BFDCB2261B9",
"Data": {
"Targets": [
{
"Type": "acs.fc.function ",
"Endpoint": "acs:fc:cn-hangzhou:123456789098****:services/guide.LATEST/functions/HelloFC ",
"ParamList": [
{
"Value": "{\\\"key\\\"=\\\"value\\\"}",
"Template": "The value of ${key} is ${value}! ",
"Form": "TEMPLATE",
"ResourceKey": "body"
}
],
"ErrorsTolerance": "ALL",
"Id": "1453",
"EventBusName": "sls-beijing-one1-tf",
"RuleName": "rule-uKAK2",
"ConcurrentConfig": {
"Concurrency": 10
}
}
],
"NextToken": "1",
"Total": 18
},
"Code": "Success",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.