Mengambil detail aturan event.
Deskripsi operasi
Mendapatkan detail aturan event.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:GetRule |
get |
*Rule
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EventBusName |
string |
Yes |
Nama event bus. |
default |
| RuleName |
string |
Yes |
Nama aturan. |
ram-changes |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
Pesan kesalahan. |
The event rule not existed! |
| RequestId |
string |
ID permintaan unik yang dihasilkan oleh Alibaba Cloud. |
2BC1857D-E633-5E79-B2C2-43EF5F7730D8 |
| Data |
object |
Data respons. |
|
| Status |
string |
Status aturan. Nilai yang valid:
|
ENABLE |
| EventBusName |
string |
Nama event bus. |
Housekeeping-Bus |
| RuleARN |
string |
ARN aturan. |
acs:eventbridge:cn-hangzhou:123456789098****:eventbus/default/rule/myRule3 |
| Description |
string |
Deskripsi aturan. |
test |
| Targets |
array<object> |
Daftar target event. |
|
|
array<object> |
Sebuah target event. |
||
| 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 endpoint to which the event is delivered. |
acs:mns:cn-hangzhou:123456789098****:queues/myqueue |
| ParamList |
array<object> |
The list of parameters for the event target. |
|
|
object |
An event target parameter. |
||
| Value |
string |
The value of the event target parameter. |
{\"key\"=\"value\"} |
| Template |
string |
The template for 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 parameter 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 |
||
| VpcId |
string |
The ID of the VPC. |
|
| VSwitchIds |
string |
The VSwitch IDs. |
|
| SecurityGroupId |
string |
The ID of the security group. |
|
| PushRetryStrategy |
string |
The push retry strategy. Valid values:
|
BACKOFF_RETRY |
| ConcurrentConfig |
object |
The concurrency settings. |
|
| Concurrency |
integer |
The number of concurrent executions. |
2 |
| ErrorsTolerance |
string |
The fault tolerance policy. Valid values:
|
ALL |
| FilterPattern |
string |
Pola event dalam format JSON. Mode berikut didukung:
|
{\"source\":[\"acs.oss\"],\"type\":[\"oss:BucketQueried:GetBucketStat\"]} |
| CreatedTimestamp |
integer |
Timestamp pembuatan aturan. |
1607071602000 |
| RuleName |
string |
Nama aturan. |
ramrolechange-fc |
| Code |
string |
Kode respons. Nilai yang valid:
|
Success |
| Success |
boolean |
Menunjukkan apakah operasi berhasil. Nilai |
true |
Contoh
Respons sukses
JSONformat
{
"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
}
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.