Enables an event rule.
URI
/openapi/enableRule
Request parameters
| Parameter | Type | Required | Example | Description |
| EventBusName | String | Yes | default | The name of the event bus. For more information, see Limits. |
| RuleName | String | Yes | myRule3 | The name of the event rule. For more information, see Limits. |
Response parameters
If the rule is enabled, the HTTP status code 200 is returned and no response body is returned.
Examples
Sample requests
POST /openapi/enableRule HTTP/1.1
Host: 123456789098****.eventbridge.cn-hangzhou.aliyuncs.com
Date: Sat, 18 Apr 2020 05:30:41 GMT
x-eventbridge-version: 2020-04-01
Authorization: acs vZ3VL0SuJdHi****:Jo2PbTjR******YAYoYslKLvWzg=
Content-Type: application/json;charset=UTF-8
Content-Length: 26
{
"EventBusName": "default",
"RuleName":"myRule3"
}Sample success response
HTTP/1.1 200 OK
Server: AliyunEventBridge
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Content-Length: 79
x-eventbridge-request-id: 5E9A9081333245F1D800****
Date: Sat, 18 Apr 2020 05:30:41 GMT该文章对您有帮助吗?