启用事件规则。
该接口调用服务方较多,不建议高频调用,否则将触发限流。建议 QPS 值不大于 20。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | EnableEventRule | 接口名称。当前 API 的名称为 EnableEventRule 。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01 。 |
RuleId | Array of String | 是 | ["158474******8334720"] | 要启用的事件规则 ID。 |
POST https://open.volcengineapi.com?Action=EnableEventRule&Version=2018-01-01 Content-Type: application/json { "RuleId": [ "158474******8334720" ] }
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Object of RuleIDsVo | - | 事件规则返回数据。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
RuleId | Array of String | ["158474******8334720"] | 事件规则 ID。 |
{ "ResponseMetadata": { "Action": "EnableEventRule", "Region": "cn-beijing", "Service": "volc_observe", "Version": "2018-01-01", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Data": { "RuleId": [ "158474******8334720" ] } } }
本接口无特有的错误码,更多信息请参见 错误码。