擷取一個事件規則的詳細資料。
介面說明
擷取一個事件規則的詳細資料。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eventbridge:GetRule |
get |
*Rule
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| EventBusName |
string |
是 |
事件匯流排的名稱。 |
default |
| RuleName |
string |
是 |
規則名稱。 |
ram-changes |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Message |
string |
錯誤資訊。 |
The event rule not existed! |
| RequestId |
string |
阿里雲為該請求產生的唯一識別碼。 |
2BC1857D-E633-5E79-B2C2-43EF5F7730D8 |
| Data |
object |
返回結果。 |
|
| Status |
string |
規則的狀態。取值說明如下:
|
ENABLE |
| EventBusName |
string |
事件匯流排的名稱。 |
Housekeeping-Bus |
| RuleARN |
string |
規則 ARN。 |
acs:eventbridge:cn-hangzhou:123456789098****:eventbus/default/rule/myRule3 |
| Description |
string |
規則說明。 |
test |
| Targets |
array<object> |
事件目標列表。 |
|
|
array<object> |
事件目標。 |
||
| DetailMap |
object |
詳細資料。 |
|
| Type |
string |
事件目標類型。更多資訊,請參見事件目標參數。 |
acs.mns.queue |
| Endpoint |
string |
投遞端點連結。 |
acs:mns:cn-hangzhou:123456789098****:queues/myqueue |
| ParamList |
array<object> |
事件目標的參數列表。 |
|
|
object |
事件目標的參數。 |
||
| Value |
string |
事件目標參數的值。 |
{\"key\"=\"value\"} |
| Template |
string |
事件目標參數模板樣式。 |
The value of ${key} is ${value}! |
| Form |
string |
事件目標參數的格式。更多資訊,請參見使用限制。 |
TEMPLATE |
| ResourceKey |
string |
事件目標的資源參數。更多資訊,請參見使用限制。 |
body |
| PushSelector |
string |
發布選取器。 |
PARAM_TRANSFORMER |
| Id |
string |
自訂事件目標 Id。 |
Mlm123456JHd2RsRoKw |
| DeadLetterQueue |
object |
無效信件佇列。 |
|
| Arn |
string |
查詢到的無效信件佇列在阿里雲上的統一資源標識(ARN)。 |
acs:eventbridge:cn-hangzhou:164901546557****:eventbus/my-event-bus/eventsource/myRocketMQ.source |
| Network |
string |
無效信件佇列的網路類型。 |
|
| VpcId |
string |
VPC ID。 |
|
| VSwitchIds |
string |
虛擬交換器 ID。 |
|
| SecurityGroupId |
string |
安全性群組 ID。 |
|
| PushRetryStrategy |
string |
推送重試策略。取值說明如下:
|
BACKOFF_RETRY |
| ConcurrentConfig |
object |
並發配置。 |
|
| Concurrency |
integer |
並發數。 |
2 |
| ErrorsTolerance |
string |
容錯策略。取值說明如下:
|
ALL |
| FilterPattern |
string |
事件模式,JSON 格式。取值說明如下:
|
{\"source\":[\"acs.oss\"],\"type\":[\"oss:BucketQueried:GetBucketStat\"]} |
| CreatedTimestamp |
integer |
建立時間(時間戳記)。 |
1607071602000 |
| RuleName |
string |
規則名稱。 |
ramrolechange-fc |
| Code |
string |
介面返回碼。取值說明如下:
|
Success |
| Success |
boolean |
操作成功返回 true。 |
true |
樣本
正常返回樣本
JSON格式
{
"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
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。