Obtém os detalhes de uma regra de evento.
Descrição da operação
Obtém os detalhes 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:GetRule |
get |
*Rule
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| EventBusName |
string |
Sim |
O nome do barramento de eventos. |
default |
| RuleName |
string |
Sim |
O nome da regra. |
ram-changes |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Message |
string |
A mensagem de erro. |
The event rule not existed! |
| RequestId |
string |
O ID de solicitação exclusivo gerado pelo Alibaba Cloud. |
2BC1857D-E633-5E79-B2C2-43EF5F7730D8 |
| Data |
object |
Os dados da resposta. |
|
| Status |
string |
O status da regra. Valores válidos:
|
ENABLE |
| EventBusName |
string |
O nome do barramento de eventos. |
Housekeeping-Bus |
| RuleARN |
string |
O ARN da regra. |
acs:eventbridge:cn-hangzhou:123456789098****:eventbus/default/rule/myRule3 |
| Description |
string |
A descrição da regra. |
test |
| Targets |
array<object> |
A lista de destinos de evento. |
|
|
array<object> |
Um destino de evento. |
||
| DetailMap |
object |
The details of the event target. |
|
| Type |
string |
The type of the event target. For more information, see Event target parameters. |
acs.mns.queue |
| Endpoint |
string |
The delivery endpoint for the event. |
acs:mns:cn-hangzhou:123456789098****:queues/myqueue |
| ParamList |
array<object> |
The list of parameters for the event target. |
|
|
object |
A parameter for the event target. |
||
| Value |
string |
The value of the event target parameter. |
{\"key\"=\"value\"} |
| Template |
string |
The template of the event target parameter. |
The value of ${key} is ${value}! |
| Form |
string |
The format of the event target parameter. For more information, see Limits. |
TEMPLATE |
| ResourceKey |
string |
The resource key of the event target. For more information, see Limits. |
body |
| PushSelector |
string |
The push selector. |
PARAM_TRANSFORMER |
| Id |
string |
The custom ID of the event target. |
Mlm123456JHd2RsRoKw |
| DeadLetterQueue |
object |
The dead-letter queue. |
|
| Arn |
string |
The Alibaba Cloud Resource Name (ARN) of the dead-letter queue. |
acs:eventbridge:cn-hangzhou:164901546557****:eventbus/my-event-bus/eventsource/myRocketMQ.source |
| Network |
string |
The network type of the dead-letter queue. |
|
| VpcId |
string |
The VPC ID. |
|
| VSwitchIds |
string |
The vSwitch IDs. |
|
| SecurityGroupId |
string |
The security group ID. |
|
| PushRetryStrategy |
string |
The retry policy for pushing events. Valid values:
|
BACKOFF_RETRY |
| ConcurrentConfig |
object |
The concurrency settings. |
|
| Concurrency |
integer |
The maximum number of concurrent pushes. |
2 |
| ErrorsTolerance |
string |
The fault tolerance policy. Valid values:
|
ALL |
| FilterPattern |
string |
O padrão de evento no formato JSON. Os seguintes modos são suportados:
|
{\"source\":[\"acs.oss\"],\"type\":[\"oss:BucketQueried:GetBucketStat\"]} |
| CreatedTimestamp |
integer |
O timestamp de criação da regra. |
1607071602000 |
| RuleName |
string |
O nome da regra. |
ramrolechange-fc |
| Code |
string |
O código de resposta. Valores válidos:
|
Success |
| Success |
boolean |
Indica se a operação foi bem-sucedida. Um valor |
true |
Exemplos
Resposta de sucesso
JSON formato
{
"Message": "The event rule not existed!",
"RequestId": "2BC1857D-E633-5E79-B2C2-43EF5F7730D8",
"Data": {
"Status": "ENABLE",
"EventBusName": "Housekeeping-Bus",
"RuleARN": "acs:eventbridge:cn-hangzhou:123456789098****:eventbus/default/rule/myRule3",
"Description": "test",
"Targets": [
{
"DetailMap": {
"test": "test",
"test2": 1
},
"Type": "acs.mns.queue",
"Endpoint": "acs:mns:cn-hangzhou:123456789098****:queues/myqueue",
"ParamList": [
{
"Value": "{\\\"key\\\"=\\\"value\\\"}",
"Template": "The value of ${key} is ${value}!",
"Form": "TEMPLATE",
"ResourceKey": "body"
}
],
"PushSelector": "PARAM_TRANSFORMER",
"Id": "Mlm123456JHd2RsRoKw\n",
"DeadLetterQueue": {
"Arn": "acs:eventbridge:cn-hangzhou:164901546557****:eventbus/my-event-bus/eventsource/myRocketMQ.source",
"Network": "",
"VpcId": "",
"VSwitchIds": "",
"SecurityGroupId": ""
},
"PushRetryStrategy": "BACKOFF_RETRY",
"ConcurrentConfig": {
"Concurrency": 2
},
"ErrorsTolerance": "ALL"
}
],
"FilterPattern": "{\\\"source\\\":[\\\"acs.oss\\\"],\\\"type\\\":[\\\"oss:BucketQueried:GetBucketStat\\\"]}",
"CreatedTimestamp": 1607071602000,
"RuleName": "ramrolechange-fc"
},
"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.