1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCesAlarmRulesV2
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud
opentelekomcloud logo
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for CES alarm rules you can get at documentation portal

    Use this data source to get the list of CES alarm rules within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const all = opentelekomcloud.getCesAlarmRulesV2({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    all = opentelekomcloud.get_ces_alarm_rules_v2()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCesAlarmRulesV2(ctx, &opentelekomcloud.GetCesAlarmRulesV2Args{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Opentelekomcloud.GetCesAlarmRulesV2.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCesAlarmRulesV2Args;
    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 all = OpentelekomcloudFunctions.getCesAlarmRulesV2(GetCesAlarmRulesV2Args.builder()
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: opentelekomcloud:getCesAlarmRulesV2
          arguments: {}
    

    Filter by alarm rule name

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const byName = opentelekomcloud.getCesAlarmRulesV2({
        name: "my-alarm-rule",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    by_name = opentelekomcloud.get_ces_alarm_rules_v2(name="my-alarm-rule")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCesAlarmRulesV2(ctx, &opentelekomcloud.GetCesAlarmRulesV2Args{
    			Name: pulumi.StringRef("my-alarm-rule"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var byName = Opentelekomcloud.GetCesAlarmRulesV2.Invoke(new()
        {
            Name = "my-alarm-rule",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCesAlarmRulesV2Args;
    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 byName = OpentelekomcloudFunctions.getCesAlarmRulesV2(GetCesAlarmRulesV2Args.builder()
                .name("my-alarm-rule")
                .build());
    
        }
    }
    
    variables:
      byName:
        fn::invoke:
          function: opentelekomcloud:getCesAlarmRulesV2
          arguments:
            name: my-alarm-rule
    

    Filter by namespace

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const byNamespace = opentelekomcloud.getCesAlarmRulesV2({
        namespace: "SYS.ECS",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    by_namespace = opentelekomcloud.get_ces_alarm_rules_v2(namespace="SYS.ECS")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCesAlarmRulesV2(ctx, &opentelekomcloud.GetCesAlarmRulesV2Args{
    			Namespace: pulumi.StringRef("SYS.ECS"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var byNamespace = Opentelekomcloud.GetCesAlarmRulesV2.Invoke(new()
        {
            Namespace = "SYS.ECS",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCesAlarmRulesV2Args;
    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 byNamespace = OpentelekomcloudFunctions.getCesAlarmRulesV2(GetCesAlarmRulesV2Args.builder()
                .namespace("SYS.ECS")
                .build());
    
        }
    }
    
    variables:
      byNamespace:
        fn::invoke:
          function: opentelekomcloud:getCesAlarmRulesV2
          arguments:
            namespace: SYS.ECS
    

    Using getCesAlarmRulesV2

    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 getCesAlarmRulesV2(args: GetCesAlarmRulesV2Args, opts?: InvokeOptions): Promise<GetCesAlarmRulesV2Result>
    function getCesAlarmRulesV2Output(args: GetCesAlarmRulesV2OutputArgs, opts?: InvokeOptions): Output<GetCesAlarmRulesV2Result>
    def get_ces_alarm_rules_v2(alarm_id: Optional[str] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               namespace: Optional[str] = None,
                               resource_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCesAlarmRulesV2Result
    def get_ces_alarm_rules_v2_output(alarm_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               namespace: Optional[pulumi.Input[str]] = None,
                               resource_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCesAlarmRulesV2Result]
    func GetCesAlarmRulesV2(ctx *Context, args *GetCesAlarmRulesV2Args, opts ...InvokeOption) (*GetCesAlarmRulesV2Result, error)
    func GetCesAlarmRulesV2Output(ctx *Context, args *GetCesAlarmRulesV2OutputArgs, opts ...InvokeOption) GetCesAlarmRulesV2ResultOutput

    > Note: This function is named GetCesAlarmRulesV2 in the Go SDK.

    public static class GetCesAlarmRulesV2 
    {
        public static Task<GetCesAlarmRulesV2Result> InvokeAsync(GetCesAlarmRulesV2Args args, InvokeOptions? opts = null)
        public static Output<GetCesAlarmRulesV2Result> Invoke(GetCesAlarmRulesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCesAlarmRulesV2Result> getCesAlarmRulesV2(GetCesAlarmRulesV2Args args, InvokeOptions options)
    public static Output<GetCesAlarmRulesV2Result> getCesAlarmRulesV2(GetCesAlarmRulesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCesAlarmRulesV2:getCesAlarmRulesV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AlarmId string
    Specifies the alarm rule ID.
    Id string
    The data source ID.
    Name string
    Specifies the name of an alarm rule.
    Namespace string
    Specifies the namespace of a service.
    ResourceId string
    Specifies the alarm resource ID.
    AlarmId string
    Specifies the alarm rule ID.
    Id string
    The data source ID.
    Name string
    Specifies the name of an alarm rule.
    Namespace string
    Specifies the namespace of a service.
    ResourceId string
    Specifies the alarm resource ID.
    alarmId String
    Specifies the alarm rule ID.
    id String
    The data source ID.
    name String
    Specifies the name of an alarm rule.
    namespace String
    Specifies the namespace of a service.
    resourceId String
    Specifies the alarm resource ID.
    alarmId string
    Specifies the alarm rule ID.
    id string
    The data source ID.
    name string
    Specifies the name of an alarm rule.
    namespace string
    Specifies the namespace of a service.
    resourceId string
    Specifies the alarm resource ID.
    alarm_id str
    Specifies the alarm rule ID.
    id str
    The data source ID.
    name str
    Specifies the name of an alarm rule.
    namespace str
    Specifies the namespace of a service.
    resource_id str
    Specifies the alarm resource ID.
    alarmId String
    Specifies the alarm rule ID.
    id String
    The data source ID.
    name String
    Specifies the name of an alarm rule.
    namespace String
    Specifies the namespace of a service.
    resourceId String
    Specifies the alarm resource ID.

    getCesAlarmRulesV2 Result

    The following output properties are available:

    Alarms List<GetCesAlarmRulesV2Alarm>
    The alarm rule list.
    Id string
    The data source ID.
    AlarmId string
    The alarm rule ID.
    Name string
    The name of the metric dimension.
    Namespace string
    The namespace of a service.
    ResourceId string
    Alarms []GetCesAlarmRulesV2Alarm
    The alarm rule list.
    Id string
    The data source ID.
    AlarmId string
    The alarm rule ID.
    Name string
    The name of the metric dimension.
    Namespace string
    The namespace of a service.
    ResourceId string
    alarms List<GetCesAlarmRulesV2Alarm>
    The alarm rule list.
    id String
    The data source ID.
    alarmId String
    The alarm rule ID.
    name String
    The name of the metric dimension.
    namespace String
    The namespace of a service.
    resourceId String
    alarms GetCesAlarmRulesV2Alarm[]
    The alarm rule list.
    id string
    The data source ID.
    alarmId string
    The alarm rule ID.
    name string
    The name of the metric dimension.
    namespace string
    The namespace of a service.
    resourceId string
    alarms Sequence[GetCesAlarmRulesV2Alarm]
    The alarm rule list.
    id str
    The data source ID.
    alarm_id str
    The alarm rule ID.
    name str
    The name of the metric dimension.
    namespace str
    The namespace of a service.
    resource_id str
    alarms List<Property Map>
    The alarm rule list.
    id String
    The data source ID.
    alarmId String
    The alarm rule ID.
    name String
    The name of the metric dimension.
    namespace String
    The namespace of a service.
    resourceId String

    Supporting Types

    GetCesAlarmRulesV2Alarm

    AlarmActions List<GetCesAlarmRulesV2AlarmAlarmAction>
    The action triggered by an alarm.
    AlarmEnabled bool
    Whether the alarm rule is enabled.
    AlarmId string
    Specifies the alarm rule ID.
    AlarmTemplateId string
    The ID of an alarm template associated with an alarm rule.
    Description string
    The alarm rule description.
    EnterpriseProjectId string
    The enterprise project ID.
    Name string
    Specifies the name of an alarm rule.
    Namespace string
    Specifies the namespace of a service.
    NotificationBeginTime string
    The time when the alarm notification was enabled.
    NotificationEnabled bool
    Whether the action to be triggered by an alarm is enabled.
    NotificationEndTime string
    The time when the alarm notification was disabled.
    OkActions List<GetCesAlarmRulesV2AlarmOkAction>
    The action triggered after an alarm is cleared.
    Policies List<GetCesAlarmRulesV2AlarmPolicy>
    The alarm policy list.
    Resources List<GetCesAlarmRulesV2AlarmResource>
    The resource list.
    Type string
    The type of action triggered by an alarm.
    AlarmActions []GetCesAlarmRulesV2AlarmAlarmAction
    The action triggered by an alarm.
    AlarmEnabled bool
    Whether the alarm rule is enabled.
    AlarmId string
    Specifies the alarm rule ID.
    AlarmTemplateId string
    The ID of an alarm template associated with an alarm rule.
    Description string
    The alarm rule description.
    EnterpriseProjectId string
    The enterprise project ID.
    Name string
    Specifies the name of an alarm rule.
    Namespace string
    Specifies the namespace of a service.
    NotificationBeginTime string
    The time when the alarm notification was enabled.
    NotificationEnabled bool
    Whether the action to be triggered by an alarm is enabled.
    NotificationEndTime string
    The time when the alarm notification was disabled.
    OkActions []GetCesAlarmRulesV2AlarmOkAction
    The action triggered after an alarm is cleared.
    Policies []GetCesAlarmRulesV2AlarmPolicy
    The alarm policy list.
    Resources []GetCesAlarmRulesV2AlarmResource
    The resource list.
    Type string
    The type of action triggered by an alarm.
    alarmActions List<GetCesAlarmRulesV2AlarmAlarmAction>
    The action triggered by an alarm.
    alarmEnabled Boolean
    Whether the alarm rule is enabled.
    alarmId String
    Specifies the alarm rule ID.
    alarmTemplateId String
    The ID of an alarm template associated with an alarm rule.
    description String
    The alarm rule description.
    enterpriseProjectId String
    The enterprise project ID.
    name String
    Specifies the name of an alarm rule.
    namespace String
    Specifies the namespace of a service.
    notificationBeginTime String
    The time when the alarm notification was enabled.
    notificationEnabled Boolean
    Whether the action to be triggered by an alarm is enabled.
    notificationEndTime String
    The time when the alarm notification was disabled.
    okActions List<GetCesAlarmRulesV2AlarmOkAction>
    The action triggered after an alarm is cleared.
    policies List<GetCesAlarmRulesV2AlarmPolicy>
    The alarm policy list.
    resources List<GetCesAlarmRulesV2AlarmResource>
    The resource list.
    type String
    The type of action triggered by an alarm.
    alarmActions GetCesAlarmRulesV2AlarmAlarmAction[]
    The action triggered by an alarm.
    alarmEnabled boolean
    Whether the alarm rule is enabled.
    alarmId string
    Specifies the alarm rule ID.
    alarmTemplateId string
    The ID of an alarm template associated with an alarm rule.
    description string
    The alarm rule description.
    enterpriseProjectId string
    The enterprise project ID.
    name string
    Specifies the name of an alarm rule.
    namespace string
    Specifies the namespace of a service.
    notificationBeginTime string
    The time when the alarm notification was enabled.
    notificationEnabled boolean
    Whether the action to be triggered by an alarm is enabled.
    notificationEndTime string
    The time when the alarm notification was disabled.
    okActions GetCesAlarmRulesV2AlarmOkAction[]
    The action triggered after an alarm is cleared.
    policies GetCesAlarmRulesV2AlarmPolicy[]
    The alarm policy list.
    resources GetCesAlarmRulesV2AlarmResource[]
    The resource list.
    type string
    The type of action triggered by an alarm.
    alarm_actions Sequence[GetCesAlarmRulesV2AlarmAlarmAction]
    The action triggered by an alarm.
    alarm_enabled bool
    Whether the alarm rule is enabled.
    alarm_id str
    Specifies the alarm rule ID.
    alarm_template_id str
    The ID of an alarm template associated with an alarm rule.
    description str
    The alarm rule description.
    enterprise_project_id str
    The enterprise project ID.
    name str
    Specifies the name of an alarm rule.
    namespace str
    Specifies the namespace of a service.
    notification_begin_time str
    The time when the alarm notification was enabled.
    notification_enabled bool
    Whether the action to be triggered by an alarm is enabled.
    notification_end_time str
    The time when the alarm notification was disabled.
    ok_actions Sequence[GetCesAlarmRulesV2AlarmOkAction]
    The action triggered after an alarm is cleared.
    policies Sequence[GetCesAlarmRulesV2AlarmPolicy]
    The alarm policy list.
    resources Sequence[GetCesAlarmRulesV2AlarmResource]
    The resource list.
    type str
    The type of action triggered by an alarm.
    alarmActions List<Property Map>
    The action triggered by an alarm.
    alarmEnabled Boolean
    Whether the alarm rule is enabled.
    alarmId String
    Specifies the alarm rule ID.
    alarmTemplateId String
    The ID of an alarm template associated with an alarm rule.
    description String
    The alarm rule description.
    enterpriseProjectId String
    The enterprise project ID.
    name String
    Specifies the name of an alarm rule.
    namespace String
    Specifies the namespace of a service.
    notificationBeginTime String
    The time when the alarm notification was enabled.
    notificationEnabled Boolean
    Whether the action to be triggered by an alarm is enabled.
    notificationEndTime String
    The time when the alarm notification was disabled.
    okActions List<Property Map>
    The action triggered after an alarm is cleared.
    policies List<Property Map>
    The alarm policy list.
    resources List<Property Map>
    The resource list.
    type String
    The type of action triggered by an alarm.

    GetCesAlarmRulesV2AlarmAlarmAction

    NotificationLists List<string>
    The list of objects to be notified if the alarm status changes.
    Type string
    The type of action triggered by an alarm.
    NotificationLists []string
    The list of objects to be notified if the alarm status changes.
    Type string
    The type of action triggered by an alarm.
    notificationLists List<String>
    The list of objects to be notified if the alarm status changes.
    type String
    The type of action triggered by an alarm.
    notificationLists string[]
    The list of objects to be notified if the alarm status changes.
    type string
    The type of action triggered by an alarm.
    notification_lists Sequence[str]
    The list of objects to be notified if the alarm status changes.
    type str
    The type of action triggered by an alarm.
    notificationLists List<String>
    The list of objects to be notified if the alarm status changes.
    type String
    The type of action triggered by an alarm.

    GetCesAlarmRulesV2AlarmOkAction

    NotificationLists List<string>
    The list of objects to be notified if the alarm status changes.
    Type string
    The type of action triggered by an alarm.
    NotificationLists []string
    The list of objects to be notified if the alarm status changes.
    Type string
    The type of action triggered by an alarm.
    notificationLists List<String>
    The list of objects to be notified if the alarm status changes.
    type String
    The type of action triggered by an alarm.
    notificationLists string[]
    The list of objects to be notified if the alarm status changes.
    type string
    The type of action triggered by an alarm.
    notification_lists Sequence[str]
    The list of objects to be notified if the alarm status changes.
    type str
    The type of action triggered by an alarm.
    notificationLists List<String>
    The list of objects to be notified if the alarm status changes.
    type String
    The type of action triggered by an alarm.

    GetCesAlarmRulesV2AlarmPolicy

    ComparisonOperator string
    The comparison condition of alarm thresholds.
    Count double
    The number of consecutive times that the alarm triggering conditions are met.
    Filter string
    The data rollup method.
    Level double
    The alarm severity.
    MetricName string
    The metric name of a resource.
    Period double
    The monitoring period of a metric.
    SuppressDuration double
    The interval for triggering an alarm if the alarm persists.
    Unit string
    The metric unit.
    Value double
    The value of the metric dimension.
    ComparisonOperator string
    The comparison condition of alarm thresholds.
    Count float64
    The number of consecutive times that the alarm triggering conditions are met.
    Filter string
    The data rollup method.
    Level float64
    The alarm severity.
    MetricName string
    The metric name of a resource.
    Period float64
    The monitoring period of a metric.
    SuppressDuration float64
    The interval for triggering an alarm if the alarm persists.
    Unit string
    The metric unit.
    Value float64
    The value of the metric dimension.
    comparisonOperator String
    The comparison condition of alarm thresholds.
    count Double
    The number of consecutive times that the alarm triggering conditions are met.
    filter String
    The data rollup method.
    level Double
    The alarm severity.
    metricName String
    The metric name of a resource.
    period Double
    The monitoring period of a metric.
    suppressDuration Double
    The interval for triggering an alarm if the alarm persists.
    unit String
    The metric unit.
    value Double
    The value of the metric dimension.
    comparisonOperator string
    The comparison condition of alarm thresholds.
    count number
    The number of consecutive times that the alarm triggering conditions are met.
    filter string
    The data rollup method.
    level number
    The alarm severity.
    metricName string
    The metric name of a resource.
    period number
    The monitoring period of a metric.
    suppressDuration number
    The interval for triggering an alarm if the alarm persists.
    unit string
    The metric unit.
    value number
    The value of the metric dimension.
    comparison_operator str
    The comparison condition of alarm thresholds.
    count float
    The number of consecutive times that the alarm triggering conditions are met.
    filter str
    The data rollup method.
    level float
    The alarm severity.
    metric_name str
    The metric name of a resource.
    period float
    The monitoring period of a metric.
    suppress_duration float
    The interval for triggering an alarm if the alarm persists.
    unit str
    The metric unit.
    value float
    The value of the metric dimension.
    comparisonOperator String
    The comparison condition of alarm thresholds.
    count Number
    The number of consecutive times that the alarm triggering conditions are met.
    filter String
    The data rollup method.
    level Number
    The alarm severity.
    metricName String
    The metric name of a resource.
    period Number
    The monitoring period of a metric.
    suppressDuration Number
    The interval for triggering an alarm if the alarm persists.
    unit String
    The metric unit.
    value Number
    The value of the metric dimension.

    GetCesAlarmRulesV2AlarmResource

    dimensions List<Property Map>
    The dimension information.

    GetCesAlarmRulesV2AlarmResourceDimension

    Name string
    Specifies the name of an alarm rule.
    Value string
    The value of the metric dimension.
    Name string
    Specifies the name of an alarm rule.
    Value string
    The value of the metric dimension.
    name String
    Specifies the name of an alarm rule.
    value String
    The value of the metric dimension.
    name string
    Specifies the name of an alarm rule.
    value string
    The value of the metric dimension.
    name str
    Specifies the name of an alarm rule.
    value str
    The value of the metric dimension.
    name String
    Specifies the name of an alarm rule.
    value String
    The value of the metric dimension.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    Viewing docs for opentelekomcloud 1.36.61
    published on Thursday, Mar 12, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.