Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud
published on Thursday, Mar 12, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud
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 dictionaryThe following arguments are supported:
- Alarm
Id 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.
- Resource
Id string - Specifies the alarm resource ID.
- Alarm
Id 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.
- Resource
Id string - Specifies the alarm resource ID.
- alarm
Id 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.
- resource
Id String - Specifies the alarm resource ID.
- alarm
Id 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.
- resource
Id 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.
- alarm
Id 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.
- resource
Id String - Specifies the alarm resource ID.
getCesAlarmRulesV2 Result
The following output properties are available:
- Alarms
List<Get
Ces Alarm Rules V2Alarm> - The alarm rule list.
- Id string
- The data source ID.
- Alarm
Id string - The alarm rule ID.
- Name string
- The name of the metric dimension.
- Namespace string
- The namespace of a service.
- Resource
Id string
- Alarms
[]Get
Ces Alarm Rules V2Alarm - The alarm rule list.
- Id string
- The data source ID.
- Alarm
Id string - The alarm rule ID.
- Name string
- The name of the metric dimension.
- Namespace string
- The namespace of a service.
- Resource
Id string
- alarms
List<Get
Ces Alarm Rules V2Alarm> - The alarm rule list.
- id String
- The data source ID.
- alarm
Id String - The alarm rule ID.
- name String
- The name of the metric dimension.
- namespace String
- The namespace of a service.
- resource
Id String
- alarms
Get
Ces Alarm Rules V2Alarm[] - The alarm rule list.
- id string
- The data source ID.
- alarm
Id string - The alarm rule ID.
- name string
- The name of the metric dimension.
- namespace string
- The namespace of a service.
- resource
Id string
- alarms
Sequence[Get
Ces Alarm Rules V2Alarm] - 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.
- alarm
Id String - The alarm rule ID.
- name String
- The name of the metric dimension.
- namespace String
- The namespace of a service.
- resource
Id String
Supporting Types
GetCesAlarmRulesV2Alarm
- Alarm
Actions List<GetCes Alarm Rules V2Alarm Alarm Action> - The action triggered by an alarm.
- Alarm
Enabled bool - Whether the alarm rule is enabled.
- Alarm
Id string - Specifies the alarm rule ID.
- Alarm
Template stringId - The ID of an alarm template associated with an alarm rule.
- Description string
- The alarm rule description.
- Enterprise
Project stringId - The enterprise project ID.
- Name string
- Specifies the name of an alarm rule.
- Namespace string
- Specifies the namespace of a service.
- Notification
Begin stringTime - The time when the alarm notification was enabled.
- Notification
Enabled bool - Whether the action to be triggered by an alarm is enabled.
- Notification
End stringTime - The time when the alarm notification was disabled.
- Ok
Actions List<GetCes Alarm Rules V2Alarm Ok Action> - The action triggered after an alarm is cleared.
- Policies
List<Get
Ces Alarm Rules V2Alarm Policy> - The alarm policy list.
- Resources
List<Get
Ces Alarm Rules V2Alarm Resource> - The resource list.
- Type string
- The type of action triggered by an alarm.
- Alarm
Actions []GetCes Alarm Rules V2Alarm Alarm Action - The action triggered by an alarm.
- Alarm
Enabled bool - Whether the alarm rule is enabled.
- Alarm
Id string - Specifies the alarm rule ID.
- Alarm
Template stringId - The ID of an alarm template associated with an alarm rule.
- Description string
- The alarm rule description.
- Enterprise
Project stringId - The enterprise project ID.
- Name string
- Specifies the name of an alarm rule.
- Namespace string
- Specifies the namespace of a service.
- Notification
Begin stringTime - The time when the alarm notification was enabled.
- Notification
Enabled bool - Whether the action to be triggered by an alarm is enabled.
- Notification
End stringTime - The time when the alarm notification was disabled.
- Ok
Actions []GetCes Alarm Rules V2Alarm Ok Action - The action triggered after an alarm is cleared.
- Policies
[]Get
Ces Alarm Rules V2Alarm Policy - The alarm policy list.
- Resources
[]Get
Ces Alarm Rules V2Alarm Resource - The resource list.
- Type string
- The type of action triggered by an alarm.
- alarm
Actions List<GetCes Alarm Rules V2Alarm Alarm Action> - The action triggered by an alarm.
- alarm
Enabled Boolean - Whether the alarm rule is enabled.
- alarm
Id String - Specifies the alarm rule ID.
- alarm
Template StringId - The ID of an alarm template associated with an alarm rule.
- description String
- The alarm rule description.
- enterprise
Project StringId - The enterprise project ID.
- name String
- Specifies the name of an alarm rule.
- namespace String
- Specifies the namespace of a service.
- notification
Begin StringTime - The time when the alarm notification was enabled.
- notification
Enabled Boolean - Whether the action to be triggered by an alarm is enabled.
- notification
End StringTime - The time when the alarm notification was disabled.
- ok
Actions List<GetCes Alarm Rules V2Alarm Ok Action> - The action triggered after an alarm is cleared.
- policies
List<Get
Ces Alarm Rules V2Alarm Policy> - The alarm policy list.
- resources
List<Get
Ces Alarm Rules V2Alarm Resource> - The resource list.
- type String
- The type of action triggered by an alarm.
- alarm
Actions GetCes Alarm Rules V2Alarm Alarm Action[] - The action triggered by an alarm.
- alarm
Enabled boolean - Whether the alarm rule is enabled.
- alarm
Id string - Specifies the alarm rule ID.
- alarm
Template stringId - The ID of an alarm template associated with an alarm rule.
- description string
- The alarm rule description.
- enterprise
Project stringId - The enterprise project ID.
- name string
- Specifies the name of an alarm rule.
- namespace string
- Specifies the namespace of a service.
- notification
Begin stringTime - The time when the alarm notification was enabled.
- notification
Enabled boolean - Whether the action to be triggered by an alarm is enabled.
- notification
End stringTime - The time when the alarm notification was disabled.
- ok
Actions GetCes Alarm Rules V2Alarm Ok Action[] - The action triggered after an alarm is cleared.
- policies
Get
Ces Alarm Rules V2Alarm Policy[] - The alarm policy list.
- resources
Get
Ces Alarm Rules V2Alarm Resource[] - The resource list.
- type string
- The type of action triggered by an alarm.
- alarm_
actions Sequence[GetCes Alarm Rules V2Alarm Alarm Action] - 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_ strid - The ID of an alarm template associated with an alarm rule.
- description str
- The alarm rule description.
- enterprise_
project_ strid - The enterprise project ID.
- name str
- Specifies the name of an alarm rule.
- namespace str
- Specifies the namespace of a service.
- notification_
begin_ strtime - The time when the alarm notification was enabled.
- notification_
enabled bool - Whether the action to be triggered by an alarm is enabled.
- notification_
end_ strtime - The time when the alarm notification was disabled.
- ok_
actions Sequence[GetCes Alarm Rules V2Alarm Ok Action] - The action triggered after an alarm is cleared.
- policies
Sequence[Get
Ces Alarm Rules V2Alarm Policy] - The alarm policy list.
- resources
Sequence[Get
Ces Alarm Rules V2Alarm Resource] - The resource list.
- type str
- The type of action triggered by an alarm.
- alarm
Actions List<Property Map> - The action triggered by an alarm.
- alarm
Enabled Boolean - Whether the alarm rule is enabled.
- alarm
Id String - Specifies the alarm rule ID.
- alarm
Template StringId - The ID of an alarm template associated with an alarm rule.
- description String
- The alarm rule description.
- enterprise
Project StringId - The enterprise project ID.
- name String
- Specifies the name of an alarm rule.
- namespace String
- Specifies the namespace of a service.
- notification
Begin StringTime - The time when the alarm notification was enabled.
- notification
Enabled Boolean - Whether the action to be triggered by an alarm is enabled.
- notification
End StringTime - The time when the alarm notification was disabled.
- ok
Actions 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
- Notification
Lists List<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 []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 List<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 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.
- notification
Lists 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
- Notification
Lists List<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 []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 List<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 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.
- notification
Lists 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
- Comparison
Operator 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.
- Metric
Name string - The metric name of a resource.
- Period double
- The monitoring period of a metric.
- Suppress
Duration double - The interval for triggering an alarm if the alarm persists.
- Unit string
- The metric unit.
- Value double
- The value of the metric dimension.
- Comparison
Operator 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.
- Metric
Name string - The metric name of a resource.
- Period float64
- The monitoring period of a metric.
- Suppress
Duration float64 - The interval for triggering an alarm if the alarm persists.
- Unit string
- The metric unit.
- Value float64
- The value of the metric dimension.
- comparison
Operator 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.
- metric
Name String - The metric name of a resource.
- period Double
- The monitoring period of a metric.
- suppress
Duration Double - The interval for triggering an alarm if the alarm persists.
- unit String
- The metric unit.
- value Double
- The value of the metric dimension.
- comparison
Operator 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.
- metric
Name string - The metric name of a resource.
- period number
- The monitoring period of a metric.
- suppress
Duration 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.
- comparison
Operator 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.
- metric
Name String - The metric name of a resource.
- period Number
- The monitoring period of a metric.
- suppress
Duration 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<Get
Ces Alarm Rules V2Alarm Resource Dimension> - The dimension information.
- Dimensions
[]Get
Ces Alarm Rules V2Alarm Resource Dimension - The dimension information.
- dimensions
List<Get
Ces Alarm Rules V2Alarm Resource Dimension> - The dimension information.
- dimensions
Get
Ces Alarm Rules V2Alarm Resource Dimension[] - The dimension information.
- dimensions
Sequence[Get
Ces Alarm Rules V2Alarm Resource Dimension] - The dimension information.
- dimensions List<Property Map>
- The dimension information.
GetCesAlarmRulesV2AlarmResourceDimension
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud
published on Thursday, Mar 12, 2026 by opentelekomcloud
