Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of cloud monitor event rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.getEventRules({
ruleName: "tftest",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.get_event_rules(rule_name="tftest")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloud_monitor.GetEventRules(ctx, &cloud_monitor.GetEventRulesArgs{
RuleName: pulumi.StringRef("tftest"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Cloud_monitor.GetEventRules.Invoke(new()
{
RuleName = "tftest",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_monitor.Cloud_monitorFunctions;
import com.pulumi.volcengine.cloud_monitor.inputs.GetEventRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = Cloud_monitorFunctions.getEventRules(GetEventRulesArgs.builder()
.ruleName("tftest")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:cloud_monitor:getEventRules
Arguments:
ruleName: tftest
Using getEventRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEventRules(args: GetEventRulesArgs, opts?: InvokeOptions): Promise<GetEventRulesResult>
function getEventRulesOutput(args: GetEventRulesOutputArgs, opts?: InvokeOptions): Output<GetEventRulesResult>def get_event_rules(output_file: Optional[str] = None,
rule_name: Optional[str] = None,
source: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEventRulesResult
def get_event_rules_output(output_file: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
source: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEventRulesResult]func GetEventRules(ctx *Context, args *GetEventRulesArgs, opts ...InvokeOption) (*GetEventRulesResult, error)
func GetEventRulesOutput(ctx *Context, args *GetEventRulesOutputArgs, opts ...InvokeOption) GetEventRulesResultOutput> Note: This function is named GetEventRules in the Go SDK.
public static class GetEventRules
{
public static Task<GetEventRulesResult> InvokeAsync(GetEventRulesArgs args, InvokeOptions? opts = null)
public static Output<GetEventRulesResult> Invoke(GetEventRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEventRulesResult> getEventRules(GetEventRulesArgs args, InvokeOptions options)
public static Output<GetEventRulesResult> getEventRules(GetEventRulesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cloud_monitor/getEventRules:getEventRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Output
File string - File name where to save data source results.
- Rule
Name string - Rule name, search rules by name using fuzzy search.
- Source string
- Event source.
- Output
File string - File name where to save data source results.
- Rule
Name string - Rule name, search rules by name using fuzzy search.
- Source string
- Event source.
- output
File String - File name where to save data source results.
- rule
Name String - Rule name, search rules by name using fuzzy search.
- source String
- Event source.
- output
File string - File name where to save data source results.
- rule
Name string - Rule name, search rules by name using fuzzy search.
- source string
- Event source.
- output_
file str - File name where to save data source results.
- rule_
name str - Rule name, search rules by name using fuzzy search.
- source str
- Event source.
- output
File String - File name where to save data source results.
- rule
Name String - Rule name, search rules by name using fuzzy search.
- source String
- Event source.
getEventRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<Get
Event Rules Rule> - The collection of query.
- Total
Count int - The total count of query.
- Output
File string - Rule
Name string - The name of the rule.
- Source string
- Event source corresponding to pattern matching.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]Get
Event Rules Rule - The collection of query.
- Total
Count int - The total count of query.
- Output
File string - Rule
Name string - The name of the rule.
- Source string
- Event source corresponding to pattern matching.
- id String
- The provider-assigned unique ID for this managed resource.
- rules
List<Get
Event Rules Rule> - The collection of query.
- total
Count Integer - The total count of query.
- output
File String - rule
Name String - The name of the rule.
- source String
- Event source corresponding to pattern matching.
- id string
- The provider-assigned unique ID for this managed resource.
- rules
Get
Event Rules Rule[] - The collection of query.
- total
Count number - The total count of query.
- output
File string - rule
Name string - The name of the rule.
- source string
- Event source corresponding to pattern matching.
- id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[Get
Event Rules Rule] - The collection of query.
- total_
count int - The total count of query.
- output_
file str - rule_
name str - The name of the rule.
- source str
- Event source corresponding to pattern matching.
- id String
- The provider-assigned unique ID for this managed resource.
- rules List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- output
File String - rule
Name String - The name of the rule.
- source String
- Event source corresponding to pattern matching.
Supporting Types
GetEventRulesRule
- Account
Id string - The id of the account.
- Contact
Group List<string>Ids - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- Contact
Methods List<string> - List of contact methods.
- Created
At int - The create time.
- Description string
- The description of the rule.
- Effect
End stringAt - The end time of the rule.
- Effect
Start stringAt - The start time of the rule.
- Endpoint string
- When the alarm notification method is alarm callback, it triggers the callback address.
- Event
Bus stringName - The name of the event bus.
- Event
Source string - The source of the event.
- Event
Types List<string> - The event type.
- Filter
Patterns List<GetEvent Rules Rule Filter Pattern> - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- Id string
- The id of the rule.
- Level string
- The level of the rule.
- Message
Queues List<GetEvent Rules Rule Message Queue> - The triggered message queue when the alarm notification method is Kafka message queue.
- Region string
- The name of the region.
- Rule
Id string - The id of the rule.
- Rule
Name string - Rule name, search rules by name using fuzzy search.
- Status string
- Enable the state of the rule.
- Tls
Targets List<GetEvent Rules Rule Tls Target> - The alarm method for log service triggers the configuration of the log service.
- Updated
At int - The updated time.
- Account
Id string - The id of the account.
- Contact
Group []stringIds - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- Contact
Methods []string - List of contact methods.
- Created
At int - The create time.
- Description string
- The description of the rule.
- Effect
End stringAt - The end time of the rule.
- Effect
Start stringAt - The start time of the rule.
- Endpoint string
- When the alarm notification method is alarm callback, it triggers the callback address.
- Event
Bus stringName - The name of the event bus.
- Event
Source string - The source of the event.
- Event
Types []string - The event type.
- Filter
Patterns []GetEvent Rules Rule Filter Pattern - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- Id string
- The id of the rule.
- Level string
- The level of the rule.
- Message
Queues []GetEvent Rules Rule Message Queue - The triggered message queue when the alarm notification method is Kafka message queue.
- Region string
- The name of the region.
- Rule
Id string - The id of the rule.
- Rule
Name string - Rule name, search rules by name using fuzzy search.
- Status string
- Enable the state of the rule.
- Tls
Targets []GetEvent Rules Rule Tls Target - The alarm method for log service triggers the configuration of the log service.
- Updated
At int - The updated time.
- account
Id String - The id of the account.
- contact
Group List<String>Ids - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods List<String> - List of contact methods.
- created
At Integer - The create time.
- description String
- The description of the rule.
- effect
End StringAt - The end time of the rule.
- effect
Start StringAt - The start time of the rule.
- endpoint String
- When the alarm notification method is alarm callback, it triggers the callback address.
- event
Bus StringName - The name of the event bus.
- event
Source String - The source of the event.
- event
Types List<String> - The event type.
- filter
Patterns List<GetEvent Rules Rule Filter Pattern> - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- id String
- The id of the rule.
- level String
- The level of the rule.
- message
Queues List<GetEvent Rules Rule Message Queue> - The triggered message queue when the alarm notification method is Kafka message queue.
- region String
- The name of the region.
- rule
Id String - The id of the rule.
- rule
Name String - Rule name, search rules by name using fuzzy search.
- status String
- Enable the state of the rule.
- tls
Targets List<GetEvent Rules Rule Tls Target> - The alarm method for log service triggers the configuration of the log service.
- updated
At Integer - The updated time.
- account
Id string - The id of the account.
- contact
Group string[]Ids - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods string[] - List of contact methods.
- created
At number - The create time.
- description string
- The description of the rule.
- effect
End stringAt - The end time of the rule.
- effect
Start stringAt - The start time of the rule.
- endpoint string
- When the alarm notification method is alarm callback, it triggers the callback address.
- event
Bus stringName - The name of the event bus.
- event
Source string - The source of the event.
- event
Types string[] - The event type.
- filter
Patterns GetEvent Rules Rule Filter Pattern[] - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- id string
- The id of the rule.
- level string
- The level of the rule.
- message
Queues GetEvent Rules Rule Message Queue[] - The triggered message queue when the alarm notification method is Kafka message queue.
- region string
- The name of the region.
- rule
Id string - The id of the rule.
- rule
Name string - Rule name, search rules by name using fuzzy search.
- status string
- Enable the state of the rule.
- tls
Targets GetEvent Rules Rule Tls Target[] - The alarm method for log service triggers the configuration of the log service.
- updated
At number - The updated time.
- account_
id str - The id of the account.
- contact_
group_ Sequence[str]ids - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact_
methods Sequence[str] - List of contact methods.
- created_
at int - The create time.
- description str
- The description of the rule.
- effect_
end_ strat - The end time of the rule.
- effect_
start_ strat - The start time of the rule.
- endpoint str
- When the alarm notification method is alarm callback, it triggers the callback address.
- event_
bus_ strname - The name of the event bus.
- event_
source str - The source of the event.
- event_
types Sequence[str] - The event type.
- filter_
patterns Sequence[GetEvent Rules Rule Filter Pattern] - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- id str
- The id of the rule.
- level str
- The level of the rule.
- message_
queues Sequence[GetEvent Rules Rule Message Queue] - The triggered message queue when the alarm notification method is Kafka message queue.
- region str
- The name of the region.
- rule_
id str - The id of the rule.
- rule_
name str - Rule name, search rules by name using fuzzy search.
- status str
- Enable the state of the rule.
- tls_
targets Sequence[GetEvent Rules Rule Tls Target] - The alarm method for log service triggers the configuration of the log service.
- updated_
at int - The updated time.
- account
Id String - The id of the account.
- contact
Group List<String>Ids - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods List<String> - List of contact methods.
- created
At Number - The create time.
- description String
- The description of the rule.
- effect
End StringAt - The end time of the rule.
- effect
Start StringAt - The start time of the rule.
- endpoint String
- When the alarm notification method is alarm callback, it triggers the callback address.
- event
Bus StringName - The name of the event bus.
- event
Source String - The source of the event.
- event
Types List<String> - The event type.
- filter
Patterns List<Property Map> - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
- id String
- The id of the rule.
- level String
- The level of the rule.
- message
Queues List<Property Map> - The triggered message queue when the alarm notification method is Kafka message queue.
- region String
- The name of the region.
- rule
Id String - The id of the rule.
- rule
Name String - Rule name, search rules by name using fuzzy search.
- status String
- Enable the state of the rule.
- tls
Targets List<Property Map> - The alarm method for log service triggers the configuration of the log service.
- updated
At Number - The updated time.
GetEventRulesRuleFilterPattern
GetEventRulesRuleMessageQueue
- Instance
Id string - The kafka instance id.
- Region string
- The name of the region.
- Topic string
- The topic name.
- Type string
- The message queue type, only support kafka now.
- Vpc
Id string - The vpc id.
- Instance
Id string - The kafka instance id.
- Region string
- The name of the region.
- Topic string
- The topic name.
- Type string
- The message queue type, only support kafka now.
- Vpc
Id string - The vpc id.
- instance
Id String - The kafka instance id.
- region String
- The name of the region.
- topic String
- The topic name.
- type String
- The message queue type, only support kafka now.
- vpc
Id String - The vpc id.
- instance
Id string - The kafka instance id.
- region string
- The name of the region.
- topic string
- The topic name.
- type string
- The message queue type, only support kafka now.
- vpc
Id string - The vpc id.
- instance_
id str - The kafka instance id.
- region str
- The name of the region.
- topic str
- The topic name.
- type str
- The message queue type, only support kafka now.
- vpc_
id str - The vpc id.
- instance
Id String - The kafka instance id.
- region String
- The name of the region.
- topic String
- The topic name.
- type String
- The message queue type, only support kafka now.
- vpc
Id String - The vpc id.
GetEventRulesRuleTlsTarget
- Project
Id string - The project id.
- Project
Name string - The project name.
- Region
Name stringCn - The Chinese region name.
- Region
Name stringEn - The English region name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- Project
Id string - The project id.
- Project
Name string - The project name.
- Region
Name stringCn - The Chinese region name.
- Region
Name stringEn - The English region name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- project
Id String - The project id.
- project
Name String - The project name.
- region
Name StringCn - The Chinese region name.
- region
Name StringEn - The English region name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
- project
Id string - The project id.
- project
Name string - The project name.
- region
Name stringCn - The Chinese region name.
- region
Name stringEn - The English region name.
- topic
Id string - The topic id.
- topic
Name string - The topic name.
- project_
id str - The project id.
- project_
name str - The project name.
- region_
name_ strcn - The Chinese region name.
- region_
name_ stren - The English region name.
- topic_
id str - The topic id.
- topic_
name str - The topic name.
- project
Id String - The project id.
- project
Name String - The project name.
- region
Name StringCn - The Chinese region name.
- region
Name StringEn - The English region name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
