1. Packages
  2. Packages
  3. Vsphere Provider
  4. API Docs
  5. getAlarm
Viewing docs for vSphere v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi
vsphere logo
Viewing docs for vSphere v4.17.0
published on Thursday, Jun 25, 2026 by Pulumi

    The vsphere.Alarm data source can be used to retrieve the property of a given alarm.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vsphere from "@pulumi/vsphere";
    
    const datacenter = vsphere.getDatacenter({
        name: "dc-01",
    });
    const alarm = vsphere.getAlarm({
        entityType: "Datacenter",
        entityId: dc.id,
        name: "example",
    });
    
    import pulumi
    import pulumi_vsphere as vsphere
    
    datacenter = vsphere.get_datacenter(name="dc-01")
    alarm = vsphere.get_alarm(entity_type="Datacenter",
        entity_id=dc["id"],
        name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vsphere.GetDatacenter(ctx, &vsphere.LookupDatacenterArgs{
    			Name: pulumi.StringRef("dc-01"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vsphere.GetAlarm(ctx, &vsphere.LookupAlarmArgs{
    			EntityType: "Datacenter",
    			EntityId:   dc.Id,
    			Name:       "example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using VSphere = Pulumi.VSphere;
    
    return await Deployment.RunAsync(() => 
    {
        var datacenter = VSphere.GetDatacenter.Invoke(new()
        {
            Name = "dc-01",
        });
    
        var alarm = VSphere.GetAlarm.Invoke(new()
        {
            EntityType = "Datacenter",
            EntityId = dc.Id,
            Name = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vsphere.VsphereFunctions;
    import com.pulumi.vsphere.inputs.GetDatacenterArgs;
    import com.pulumi.vsphere.inputs.GetAlarmArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
                .name("dc-01")
                .build());
    
            final var alarm = VsphereFunctions.getAlarm(GetAlarmArgs.builder()
                .entityType("Datacenter")
                .entityId(dc.id())
                .name("example")
                .build());
    
        }
    }
    
    variables:
      datacenter:
        fn::invoke:
          function: vsphere:getDatacenter
          arguments:
            name: dc-01
      alarm:
        fn::invoke:
          function: vsphere:getAlarm
          arguments:
            entityType: Datacenter
            entityId: ${dc.id}
            name: example
    
    pulumi {
      required_providers {
        vsphere = {
          source = "pulumi/vsphere"
        }
      }
    }
    
    data "vsphere_getdatacenter" "datacenter" {
      name = "dc-01"
    }
    data "vsphere_getalarm" "alarm" {
      entity_type = "Datacenter"
      entity_id   = dc.id
      name        = "example"
    }
    

    Using getAlarm

    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 getAlarm(args: GetAlarmArgs, opts?: InvokeOptions): Promise<GetAlarmResult>
    function getAlarmOutput(args: GetAlarmOutputArgs, opts?: InvokeOptions): Output<GetAlarmResult>
    def get_alarm(entity_id: Optional[str] = None,
                  entity_type: Optional[str] = None,
                  metric_expressions: Optional[Sequence[GetAlarmMetricExpression]] = None,
                  name: Optional[str] = None,
                  snmp_actions: Optional[Sequence[GetAlarmSnmpAction]] = None,
                  state_expressions: Optional[Sequence[GetAlarmStateExpression]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetAlarmResult
    def get_alarm_output(entity_id: pulumi.Input[Optional[str]] = None,
                  entity_type: pulumi.Input[Optional[str]] = None,
                  metric_expressions: pulumi.Input[Optional[Sequence[pulumi.Input[GetAlarmMetricExpressionArgs]]]] = None,
                  name: pulumi.Input[Optional[str]] = None,
                  snmp_actions: pulumi.Input[Optional[Sequence[pulumi.Input[GetAlarmSnmpActionArgs]]]] = None,
                  state_expressions: pulumi.Input[Optional[Sequence[pulumi.Input[GetAlarmStateExpressionArgs]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetAlarmResult]
    func LookupAlarm(ctx *Context, args *LookupAlarmArgs, opts ...InvokeOption) (*LookupAlarmResult, error)
    func LookupAlarmOutput(ctx *Context, args *LookupAlarmOutputArgs, opts ...InvokeOption) LookupAlarmResultOutput

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

    public static class GetAlarm 
    {
        public static Task<GetAlarmResult> InvokeAsync(GetAlarmArgs args, InvokeOptions? opts = null)
        public static Output<GetAlarmResult> Invoke(GetAlarmInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlarmResult> getAlarm(GetAlarmArgs args, InvokeOptions options)
    public static Output<GetAlarmResult> getAlarm(GetAlarmArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vsphere:index/getAlarm:getAlarm
      arguments:
        # arguments dictionary
    data "vsphere_getalarm" "name" {
        # arguments
    }

    The following arguments are supported:

    EntityId string
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    EntityType string
    The type of the entity the alarm will be created in.
    Name string
    The name of the host group.
    MetricExpressions List<Pulumi.VSphere.Inputs.GetAlarmMetricExpression>
    The metric expressions of the alarm.
    SnmpActions List<Pulumi.VSphere.Inputs.GetAlarmSnmpAction>
    The snmp alarm actions of the alarm.
    StateExpressions List<Pulumi.VSphere.Inputs.GetAlarmStateExpression>
    The state expressions of the alarm.
    EntityId string
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    EntityType string
    The type of the entity the alarm will be created in.
    Name string
    The name of the host group.
    MetricExpressions []GetAlarmMetricExpression
    The metric expressions of the alarm.
    SnmpActions []GetAlarmSnmpAction
    The snmp alarm actions of the alarm.
    StateExpressions []GetAlarmStateExpression
    The state expressions of the alarm.
    entity_id string
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    entity_type string
    The type of the entity the alarm will be created in.
    name string
    The name of the host group.
    metric_expressions list(object)
    The metric expressions of the alarm.
    snmp_actions list(object)
    The snmp alarm actions of the alarm.
    state_expressions list(object)
    The state expressions of the alarm.
    entityId String
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    entityType String
    The type of the entity the alarm will be created in.
    name String
    The name of the host group.
    metricExpressions List<GetAlarmMetricExpression>
    The metric expressions of the alarm.
    snmpActions List<GetAlarmSnmpAction>
    The snmp alarm actions of the alarm.
    stateExpressions List<GetAlarmStateExpression>
    The state expressions of the alarm.
    entityId string
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    entityType string
    The type of the entity the alarm will be created in.
    name string
    The name of the host group.
    metricExpressions GetAlarmMetricExpression[]
    The metric expressions of the alarm.
    snmpActions GetAlarmSnmpAction[]
    The snmp alarm actions of the alarm.
    stateExpressions GetAlarmStateExpression[]
    The state expressions of the alarm.
    entity_id str
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    entity_type str
    The type of the entity the alarm will be created in.
    name str
    The name of the host group.
    metric_expressions Sequence[GetAlarmMetricExpression]
    The metric expressions of the alarm.
    snmp_actions Sequence[GetAlarmSnmpAction]
    The snmp alarm actions of the alarm.
    state_expressions Sequence[GetAlarmStateExpression]
    The state expressions of the alarm.
    entityId String
    The [managed object reference ID][docs-about-morefs] of the entity the alarm will be created in.
    entityType String
    The type of the entity the alarm will be created in.
    name String
    The name of the host group.
    metricExpressions List<Property Map>
    The metric expressions of the alarm.
    snmpActions List<Property Map>
    The snmp alarm actions of the alarm.
    stateExpressions List<Property Map>
    The state expressions of the alarm.

    getAlarm Result

    The following output properties are available:

    AdvancedActions List<Pulumi.VSphere.Outputs.GetAlarmAdvancedAction>
    The advanced actions of the alarm.
    Description string
    EmailActions List<Pulumi.VSphere.Outputs.GetAlarmEmailAction>
    The email alarm actions of the alarm.
    Enabled bool
    Whether or not the alarm is enabled.
    EntityId string
    EntityType string
    EventExpressions List<Pulumi.VSphere.Outputs.GetAlarmEventExpression>
    The event expressions of the alarm.
    ExpressionOperator string
    The logical link between expressions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    MetricExpressions List<Pulumi.VSphere.Outputs.GetAlarmMetricExpression>
    The metric expressions of the alarm.
    SnmpActions List<Pulumi.VSphere.Outputs.GetAlarmSnmpAction>
    The snmp alarm actions of the alarm.
    StateExpressions List<Pulumi.VSphere.Outputs.GetAlarmStateExpression>
    The state expressions of the alarm.
    AdvancedActions []GetAlarmAdvancedAction
    The advanced actions of the alarm.
    Description string
    EmailActions []GetAlarmEmailAction
    The email alarm actions of the alarm.
    Enabled bool
    Whether or not the alarm is enabled.
    EntityId string
    EntityType string
    EventExpressions []GetAlarmEventExpression
    The event expressions of the alarm.
    ExpressionOperator string
    The logical link between expressions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    MetricExpressions []GetAlarmMetricExpression
    The metric expressions of the alarm.
    SnmpActions []GetAlarmSnmpAction
    The snmp alarm actions of the alarm.
    StateExpressions []GetAlarmStateExpression
    The state expressions of the alarm.
    advanced_actions list(object)
    The advanced actions of the alarm.
    description string
    email_actions list(object)
    The email alarm actions of the alarm.
    enabled bool
    Whether or not the alarm is enabled.
    entity_id string
    entity_type string
    event_expressions list(object)
    The event expressions of the alarm.
    expression_operator string
    The logical link between expressions.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    metric_expressions list(object)
    The metric expressions of the alarm.
    snmp_actions list(object)
    The snmp alarm actions of the alarm.
    state_expressions list(object)
    The state expressions of the alarm.
    advancedActions List<GetAlarmAdvancedAction>
    The advanced actions of the alarm.
    description String
    emailActions List<GetAlarmEmailAction>
    The email alarm actions of the alarm.
    enabled Boolean
    Whether or not the alarm is enabled.
    entityId String
    entityType String
    eventExpressions List<GetAlarmEventExpression>
    The event expressions of the alarm.
    expressionOperator String
    The logical link between expressions.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    metricExpressions List<GetAlarmMetricExpression>
    The metric expressions of the alarm.
    snmpActions List<GetAlarmSnmpAction>
    The snmp alarm actions of the alarm.
    stateExpressions List<GetAlarmStateExpression>
    The state expressions of the alarm.
    advancedActions GetAlarmAdvancedAction[]
    The advanced actions of the alarm.
    description string
    emailActions GetAlarmEmailAction[]
    The email alarm actions of the alarm.
    enabled boolean
    Whether or not the alarm is enabled.
    entityId string
    entityType string
    eventExpressions GetAlarmEventExpression[]
    The event expressions of the alarm.
    expressionOperator string
    The logical link between expressions.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    metricExpressions GetAlarmMetricExpression[]
    The metric expressions of the alarm.
    snmpActions GetAlarmSnmpAction[]
    The snmp alarm actions of the alarm.
    stateExpressions GetAlarmStateExpression[]
    The state expressions of the alarm.
    advanced_actions Sequence[GetAlarmAdvancedAction]
    The advanced actions of the alarm.
    description str
    email_actions Sequence[GetAlarmEmailAction]
    The email alarm actions of the alarm.
    enabled bool
    Whether or not the alarm is enabled.
    entity_id str
    entity_type str
    event_expressions Sequence[GetAlarmEventExpression]
    The event expressions of the alarm.
    expression_operator str
    The logical link between expressions.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    metric_expressions Sequence[GetAlarmMetricExpression]
    The metric expressions of the alarm.
    snmp_actions Sequence[GetAlarmSnmpAction]
    The snmp alarm actions of the alarm.
    state_expressions Sequence[GetAlarmStateExpression]
    The state expressions of the alarm.
    advancedActions List<Property Map>
    The advanced actions of the alarm.
    description String
    emailActions List<Property Map>
    The email alarm actions of the alarm.
    enabled Boolean
    Whether or not the alarm is enabled.
    entityId String
    entityType String
    eventExpressions List<Property Map>
    The event expressions of the alarm.
    expressionOperator String
    The logical link between expressions.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    metricExpressions List<Property Map>
    The metric expressions of the alarm.
    snmpActions List<Property Map>
    The snmp alarm actions of the alarm.
    stateExpressions List<Property Map>
    The state expressions of the alarm.

    Supporting Types

    GetAlarmAdvancedAction

    FinalState string
    Triggers the action only for this final state.
    Name string
    The name of the host group.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    FinalState string
    Triggers the action only for this final state.
    Name string
    The name of the host group.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    final_state string
    Triggers the action only for this final state.
    name string
    The name of the host group.
    repeat bool
    Whether or not the action should be repeated.
    start_state string
    Triggers the action only for this initial state.
    finalState String
    Triggers the action only for this final state.
    name String
    The name of the host group.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.
    finalState string
    Triggers the action only for this final state.
    name string
    The name of the host group.
    repeat boolean
    Whether or not the action should be repeated.
    startState string
    Triggers the action only for this initial state.
    final_state str
    Triggers the action only for this final state.
    name str
    The name of the host group.
    repeat bool
    Whether or not the action should be repeated.
    start_state str
    Triggers the action only for this initial state.
    finalState String
    Triggers the action only for this final state.
    name String
    The name of the host group.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.

    GetAlarmEmailAction

    Body string
    Email body.
    Cc string
    Email destination cc.
    FinalState string
    Triggers the action only for this final state.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    Subject string
    Email subject.
    To string
    Email destination.
    Body string
    Email body.
    Cc string
    Email destination cc.
    FinalState string
    Triggers the action only for this final state.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    Subject string
    Email subject.
    To string
    Email destination.
    body string
    Email body.
    cc string
    Email destination cc.
    final_state string
    Triggers the action only for this final state.
    repeat bool
    Whether or not the action should be repeated.
    start_state string
    Triggers the action only for this initial state.
    subject string
    Email subject.
    to string
    Email destination.
    body String
    Email body.
    cc String
    Email destination cc.
    finalState String
    Triggers the action only for this final state.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.
    subject String
    Email subject.
    to String
    Email destination.
    body string
    Email body.
    cc string
    Email destination cc.
    finalState string
    Triggers the action only for this final state.
    repeat boolean
    Whether or not the action should be repeated.
    startState string
    Triggers the action only for this initial state.
    subject string
    Email subject.
    to string
    Email destination.
    body str
    Email body.
    cc str
    Email destination cc.
    final_state str
    Triggers the action only for this final state.
    repeat bool
    Whether or not the action should be repeated.
    start_state str
    Triggers the action only for this initial state.
    subject str
    Email subject.
    to str
    Email destination.
    body String
    Email body.
    cc String
    Email destination cc.
    finalState String
    Triggers the action only for this final state.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.
    subject String
    Email subject.
    to String
    Email destination.

    GetAlarmEventExpression

    EventType string
    Type of Event (vim.event.Event).
    EventTypeId string
    Name of the event (vim.event).
    ObjectType string
    Type of object where the event applies on.
    Status string
    Alarm status once triggered.
    Comparisons List<Pulumi.VSphere.Inputs.GetAlarmEventExpressionComparison>
    Additional check that allows adding threshold on the given object attribute.
    EventType string
    Type of Event (vim.event.Event).
    EventTypeId string
    Name of the event (vim.event).
    ObjectType string
    Type of object where the event applies on.
    Status string
    Alarm status once triggered.
    Comparisons []GetAlarmEventExpressionComparison
    Additional check that allows adding threshold on the given object attribute.
    event_type string
    Type of Event (vim.event.Event).
    event_type_id string
    Name of the event (vim.event).
    object_type string
    Type of object where the event applies on.
    status string
    Alarm status once triggered.
    comparisons list(object)
    Additional check that allows adding threshold on the given object attribute.
    eventType String
    Type of Event (vim.event.Event).
    eventTypeId String
    Name of the event (vim.event).
    objectType String
    Type of object where the event applies on.
    status String
    Alarm status once triggered.
    comparisons List<GetAlarmEventExpressionComparison>
    Additional check that allows adding threshold on the given object attribute.
    eventType string
    Type of Event (vim.event.Event).
    eventTypeId string
    Name of the event (vim.event).
    objectType string
    Type of object where the event applies on.
    status string
    Alarm status once triggered.
    comparisons GetAlarmEventExpressionComparison[]
    Additional check that allows adding threshold on the given object attribute.
    event_type str
    Type of Event (vim.event.Event).
    event_type_id str
    Name of the event (vim.event).
    object_type str
    Type of object where the event applies on.
    status str
    Alarm status once triggered.
    comparisons Sequence[GetAlarmEventExpressionComparison]
    Additional check that allows adding threshold on the given object attribute.
    eventType String
    Type of Event (vim.event.Event).
    eventTypeId String
    Name of the event (vim.event).
    objectType String
    Type of object where the event applies on.
    status String
    Alarm status once triggered.
    comparisons List<Property Map>
    Additional check that allows adding threshold on the given object attribute.

    GetAlarmEventExpressionComparison

    AttributeName string
    Name of the attribute to compare.
    Operator string
    Comparison operator.
    Value string
    Value to compare.
    AttributeName string
    Name of the attribute to compare.
    Operator string
    Comparison operator.
    Value string
    Value to compare.
    attribute_name string
    Name of the attribute to compare.
    operator string
    Comparison operator.
    value string
    Value to compare.
    attributeName String
    Name of the attribute to compare.
    operator String
    Comparison operator.
    value String
    Value to compare.
    attributeName string
    Name of the attribute to compare.
    operator string
    Comparison operator.
    value string
    Value to compare.
    attribute_name str
    Name of the attribute to compare.
    operator str
    Comparison operator.
    value str
    Value to compare.
    attributeName String
    Name of the attribute to compare.
    operator String
    Comparison operator.
    value String
    Value to compare.

    GetAlarmMetricExpression

    MetricCounterId int
    ID of the metric.
    MetricInstance string
    ObjectType string
    Type of object of the metric, ie: HostSystem.
    Operator string
    Whether the metric is below or above the given threshold.
    Red int
    Critical threshold, for percentage, 9900 is 99%.
    RedInterval int
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    Yellow int
    Warning threshold, for percentage, 9900 is 99%.
    YellowInterval int
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    MetricCounterId int
    ID of the metric.
    MetricInstance string
    ObjectType string
    Type of object of the metric, ie: HostSystem.
    Operator string
    Whether the metric is below or above the given threshold.
    Red int
    Critical threshold, for percentage, 9900 is 99%.
    RedInterval int
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    Yellow int
    Warning threshold, for percentage, 9900 is 99%.
    YellowInterval int
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    metric_counter_id number
    ID of the metric.
    metric_instance string
    object_type string
    Type of object of the metric, ie: HostSystem.
    operator string
    Whether the metric is below or above the given threshold.
    red number
    Critical threshold, for percentage, 9900 is 99%.
    red_interval number
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    yellow number
    Warning threshold, for percentage, 9900 is 99%.
    yellow_interval number
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    metricCounterId Integer
    ID of the metric.
    metricInstance String
    objectType String
    Type of object of the metric, ie: HostSystem.
    operator String
    Whether the metric is below or above the given threshold.
    red Integer
    Critical threshold, for percentage, 9900 is 99%.
    redInterval Integer
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    yellow Integer
    Warning threshold, for percentage, 9900 is 99%.
    yellowInterval Integer
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    metricCounterId number
    ID of the metric.
    metricInstance string
    objectType string
    Type of object of the metric, ie: HostSystem.
    operator string
    Whether the metric is below or above the given threshold.
    red number
    Critical threshold, for percentage, 9900 is 99%.
    redInterval number
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    yellow number
    Warning threshold, for percentage, 9900 is 99%.
    yellowInterval number
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    metric_counter_id int
    ID of the metric.
    metric_instance str
    object_type str
    Type of object of the metric, ie: HostSystem.
    operator str
    Whether the metric is below or above the given threshold.
    red int
    Critical threshold, for percentage, 9900 is 99%.
    red_interval int
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    yellow int
    Warning threshold, for percentage, 9900 is 99%.
    yellow_interval int
    Amount of seconds the threshold must be crossed to trigger the warning alarm.
    metricCounterId Number
    ID of the metric.
    metricInstance String
    objectType String
    Type of object of the metric, ie: HostSystem.
    operator String
    Whether the metric is below or above the given threshold.
    red Number
    Critical threshold, for percentage, 9900 is 99%.
    redInterval Number
    Amount of seconds the threshold must be crossed to trigger the critical alarm.
    yellow Number
    Warning threshold, for percentage, 9900 is 99%.
    yellowInterval Number
    Amount of seconds the threshold must be crossed to trigger the warning alarm.

    GetAlarmSnmpAction

    FinalState string
    Triggers the action only for this final state.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    FinalState string
    Triggers the action only for this final state.
    Repeat bool
    Whether or not the action should be repeated.
    StartState string
    Triggers the action only for this initial state.
    final_state string
    Triggers the action only for this final state.
    repeat bool
    Whether or not the action should be repeated.
    start_state string
    Triggers the action only for this initial state.
    finalState String
    Triggers the action only for this final state.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.
    finalState string
    Triggers the action only for this final state.
    repeat boolean
    Whether or not the action should be repeated.
    startState string
    Triggers the action only for this initial state.
    final_state str
    Triggers the action only for this final state.
    repeat bool
    Whether or not the action should be repeated.
    start_state str
    Triggers the action only for this initial state.
    finalState String
    Triggers the action only for this final state.
    repeat Boolean
    Whether or not the action should be repeated.
    startState String
    Triggers the action only for this initial state.

    GetAlarmStateExpression

    ObjectType string
    Type of object where the event applies on, ie: HostSystem.
    Operator string
    Check if state is equal or unequal.
    Red string
    State value to trigger critical alarm.
    StatePath string
    State path: ie. runtime.connectionState.
    Yellow string
    State value to trigger warning alarm.
    ObjectType string
    Type of object where the event applies on, ie: HostSystem.
    Operator string
    Check if state is equal or unequal.
    Red string
    State value to trigger critical alarm.
    StatePath string
    State path: ie. runtime.connectionState.
    Yellow string
    State value to trigger warning alarm.
    object_type string
    Type of object where the event applies on, ie: HostSystem.
    operator string
    Check if state is equal or unequal.
    red string
    State value to trigger critical alarm.
    state_path string
    State path: ie. runtime.connectionState.
    yellow string
    State value to trigger warning alarm.
    objectType String
    Type of object where the event applies on, ie: HostSystem.
    operator String
    Check if state is equal or unequal.
    red String
    State value to trigger critical alarm.
    statePath String
    State path: ie. runtime.connectionState.
    yellow String
    State value to trigger warning alarm.
    objectType string
    Type of object where the event applies on, ie: HostSystem.
    operator string
    Check if state is equal or unequal.
    red string
    State value to trigger critical alarm.
    statePath string
    State path: ie. runtime.connectionState.
    yellow string
    State value to trigger warning alarm.
    object_type str
    Type of object where the event applies on, ie: HostSystem.
    operator str
    Check if state is equal or unequal.
    red str
    State value to trigger critical alarm.
    state_path str
    State path: ie. runtime.connectionState.
    yellow str
    State value to trigger warning alarm.
    objectType String
    Type of object where the event applies on, ie: HostSystem.
    operator String
    Check if state is equal or unequal.
    red String
    State value to trigger critical alarm.
    statePath String
    State path: ie. runtime.connectionState.
    yellow String
    State value to trigger warning alarm.

    Package Details

    Repository
    vSphere pulumi/pulumi-vsphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vsphere Terraform Provider.
    vsphere logo
    Viewing docs for vSphere v4.17.0
    published on Thursday, Jun 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial