1. Packages
  2. Juniper Mist
  3. API Docs
  4. getConstAlarms
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

junipermist.getConstAlarms

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

    This data source provides the list of available Alarms. The alarm key can be used to configure the mist_org_alarmtemplate.rules.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const listOfAlarms = junipermist.getConstAlarms({});
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    list_of_alarms = junipermist.get_const_alarms()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := junipermist.GetConstAlarms(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using JuniperMist = Pulumi.JuniperMist;
    
    return await Deployment.RunAsync(() => 
    {
        var listOfAlarms = JuniperMist.GetConstAlarms.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.JunipermistFunctions;
    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 listOfAlarms = JunipermistFunctions.getConstAlarms();
    
        }
    }
    
    variables:
      listOfAlarms:
        fn::invoke:
          Function: junipermist:getConstAlarms
          Arguments: {}
    

    Using getConstAlarms

    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 getConstAlarms(opts?: InvokeOptions): Promise<GetConstAlarmsResult>
    function getConstAlarmsOutput(opts?: InvokeOptions): Output<GetConstAlarmsResult>
    def get_const_alarms(opts: Optional[InvokeOptions] = None) -> GetConstAlarmsResult
    def get_const_alarms_output(opts: Optional[InvokeOptions] = None) -> Output[GetConstAlarmsResult]
    func GetConstAlarms(ctx *Context, opts ...InvokeOption) (*GetConstAlarmsResult, error)
    func GetConstAlarmsOutput(ctx *Context, opts ...InvokeOption) GetConstAlarmsResultOutput

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

    public static class GetConstAlarms 
    {
        public static Task<GetConstAlarmsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetConstAlarmsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConstAlarmsResult> getConstAlarms(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: junipermist:index/getConstAlarms:getConstAlarms
      arguments:
        # arguments dictionary

    getConstAlarms Result

    The following output properties are available:

    ConstAlarms List<Pulumi.JuniperMist.Outputs.GetConstAlarmsConstAlarm>
    Id string
    The provider-assigned unique ID for this managed resource.
    ConstAlarms []GetConstAlarmsConstAlarm
    Id string
    The provider-assigned unique ID for this managed resource.
    constAlarms List<GetConstAlarmsConstAlarm>
    id String
    The provider-assigned unique ID for this managed resource.
    constAlarms GetConstAlarmsConstAlarm[]
    id string
    The provider-assigned unique ID for this managed resource.
    const_alarms Sequence[GetConstAlarmsConstAlarm]
    id str
    The provider-assigned unique ID for this managed resource.
    constAlarms List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetConstAlarmsConstAlarm

    Display string
    Description of the alarm type
    Group string
    Group to which the alarm belongs
    Key string
    Key name of the alarm type
    Severity string
    Severity of the alarm
    Display string
    Description of the alarm type
    Group string
    Group to which the alarm belongs
    Key string
    Key name of the alarm type
    Severity string
    Severity of the alarm
    display String
    Description of the alarm type
    group String
    Group to which the alarm belongs
    key String
    Key name of the alarm type
    severity String
    Severity of the alarm
    display string
    Description of the alarm type
    group string
    Group to which the alarm belongs
    key string
    Key name of the alarm type
    severity string
    Severity of the alarm
    display str
    Description of the alarm type
    group str
    Group to which the alarm belongs
    key str
    Key name of the alarm type
    severity str
    Severity of the alarm
    display String
    Description of the alarm type
    group String
    Group to which the alarm belongs
    key String
    Key name of the alarm type
    severity String
    Severity of the alarm

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi