Consulta todos os destinos de evento de uma regra de evento.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
eventbridge:ListTargets |
list |
*Rule
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| EventBusName |
string |
Não |
O nome do barramento de eventos. |
my-event-bus |
| Limit |
integer |
Não |
O número máximo de entradas retornadas em uma chamada. |
10 |
| RuleName |
string |
Não |
O nome da regra de evento. |
tf-testacc-rule |
| NextToken |
string |
Não |
Se você configurar Limit e existirem valores de retorno excedentes, este parâmetro é retornado. |
0 |
| Arn |
string |
Não |
O Alibaba Cloud Resource Name (ARN) da regra de evento. |
acs:fc:cn-hangzhou:118609547428****:services/fc-connector.a1/functions/event |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| Message |
string |
A mensagem de erro retornada. |
EventRuleNotExisted |
| RequestId |
string |
O ID da solicitação. |
5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| Data |
object |
Os dados retornados. |
|
| Targets |
array<object> |
Os destinos de evento. |
|
|
array<object> |
O destino de evento. |
||
| 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 |
Se existirem valores de retorno excedentes, este parâmetro é retornado. |
1 |
| Total |
integer |
O número total de entradas. |
18 |
| Code |
string |
O código de resposta retornado. Valores válidos:
|
Success |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.