1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getAlarmtemplates
Juniper Mist v0.2.1 published on Friday, Jan 24, 2025 by Pulumi

junipermist.org.getAlarmtemplates

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.2.1 published on Friday, Jan 24, 2025 by Pulumi

    This data source provides the list of Alarm Templates.

    An Alarm Template is a set of Alarm Rules that could be applied to one or more sites (while each site can only pick one Alarm Template), or to the whole org.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const alarmtemplates = junipermist.org.getAlarmtemplates({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    alarmtemplates = junipermist.org.get_alarmtemplates(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := org.GetAlarmtemplates(ctx, &org.GetAlarmtemplatesArgs{
    			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    		}, 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 alarmtemplates = JuniperMist.Org.GetAlarmtemplates.Invoke(new()
        {
            OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.org.OrgFunctions;
    import com.pulumi.junipermist.org.inputs.GetAlarmtemplatesArgs;
    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 alarmtemplates = OrgFunctions.getAlarmtemplates(GetAlarmtemplatesArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      alarmtemplates:
        fn::invoke:
          function: junipermist:org:getAlarmtemplates
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getAlarmtemplates

    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 getAlarmtemplates(args: GetAlarmtemplatesArgs, opts?: InvokeOptions): Promise<GetAlarmtemplatesResult>
    function getAlarmtemplatesOutput(args: GetAlarmtemplatesOutputArgs, opts?: InvokeOptions): Output<GetAlarmtemplatesResult>
    def get_alarmtemplates(org_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAlarmtemplatesResult
    def get_alarmtemplates_output(org_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAlarmtemplatesResult]
    func GetAlarmtemplates(ctx *Context, args *GetAlarmtemplatesArgs, opts ...InvokeOption) (*GetAlarmtemplatesResult, error)
    func GetAlarmtemplatesOutput(ctx *Context, args *GetAlarmtemplatesOutputArgs, opts ...InvokeOption) GetAlarmtemplatesResultOutput

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

    public static class GetAlarmtemplates 
    {
        public static Task<GetAlarmtemplatesResult> InvokeAsync(GetAlarmtemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetAlarmtemplatesResult> Invoke(GetAlarmtemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlarmtemplatesResult> getAlarmtemplates(GetAlarmtemplatesArgs args, InvokeOptions options)
    public static Output<GetAlarmtemplatesResult> getAlarmtemplates(GetAlarmtemplatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getAlarmtemplates:getAlarmtemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    OrgId string
    orgId String
    orgId string
    org_id str
    orgId String

    getAlarmtemplates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgAlarmtemplates List<Pulumi.JuniperMist.Org.Outputs.GetAlarmtemplatesOrgAlarmtemplate>
    OrgId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgAlarmtemplates []GetAlarmtemplatesOrgAlarmtemplate
    OrgId string
    id String
    The provider-assigned unique ID for this managed resource.
    orgAlarmtemplates List<GetAlarmtemplatesOrgAlarmtemplate>
    orgId String
    id string
    The provider-assigned unique ID for this managed resource.
    orgAlarmtemplates GetAlarmtemplatesOrgAlarmtemplate[]
    orgId string
    id str
    The provider-assigned unique ID for this managed resource.
    org_alarmtemplates Sequence[GetAlarmtemplatesOrgAlarmtemplate]
    org_id str
    id String
    The provider-assigned unique ID for this managed resource.
    orgAlarmtemplates List<Property Map>
    orgId String

    Supporting Types

    GetAlarmtemplatesOrgAlarmtemplate

    CreatedTime double
    when the object has been created, in epoch
    Delivery Pulumi.JuniperMist.Org.Inputs.GetAlarmtemplatesOrgAlarmtemplateDelivery
    Delivery object to configure the alarm delivery
    Id string
    Unique ID of the object instance in the Mist Organnization
    ModifiedTime double
    when the object has been modified for the last time, in epoch
    Name string
    Some string to name the alarm template
    OrgId string
    Rules Dictionary<string, Pulumi.JuniperMist.Org.Inputs.GetAlarmtemplatesOrgAlarmtemplateRules>
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.
    CreatedTime float64
    when the object has been created, in epoch
    Delivery GetAlarmtemplatesOrgAlarmtemplateDelivery
    Delivery object to configure the alarm delivery
    Id string
    Unique ID of the object instance in the Mist Organnization
    ModifiedTime float64
    when the object has been modified for the last time, in epoch
    Name string
    Some string to name the alarm template
    OrgId string
    Rules map[string]GetAlarmtemplatesOrgAlarmtemplateRules
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.
    createdTime Double
    when the object has been created, in epoch
    delivery GetAlarmtemplatesOrgAlarmtemplateDelivery
    Delivery object to configure the alarm delivery
    id String
    Unique ID of the object instance in the Mist Organnization
    modifiedTime Double
    when the object has been modified for the last time, in epoch
    name String
    Some string to name the alarm template
    orgId String
    rules Map<String,GetAlarmtemplatesOrgAlarmtemplateRules>
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.
    createdTime number
    when the object has been created, in epoch
    delivery GetAlarmtemplatesOrgAlarmtemplateDelivery
    Delivery object to configure the alarm delivery
    id string
    Unique ID of the object instance in the Mist Organnization
    modifiedTime number
    when the object has been modified for the last time, in epoch
    name string
    Some string to name the alarm template
    orgId string
    rules {[key: string]: GetAlarmtemplatesOrgAlarmtemplateRules}
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.
    created_time float
    when the object has been created, in epoch
    delivery GetAlarmtemplatesOrgAlarmtemplateDelivery
    Delivery object to configure the alarm delivery
    id str
    Unique ID of the object instance in the Mist Organnization
    modified_time float
    when the object has been modified for the last time, in epoch
    name str
    Some string to name the alarm template
    org_id str
    rules Mapping[str, GetAlarmtemplatesOrgAlarmtemplateRules]
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.
    createdTime Number
    when the object has been created, in epoch
    delivery Property Map
    Delivery object to configure the alarm delivery
    id String
    Unique ID of the object instance in the Mist Organnization
    modifiedTime Number
    when the object has been modified for the last time, in epoch
    name String
    Some string to name the alarm template
    orgId String
    rules Map<Property Map>
    Alarm Rules object to configure the individual alarm keys/types. Property key is the alarm name.

    GetAlarmtemplatesOrgAlarmtemplateDelivery

    AdditionalEmails List<string>
    List of additional email string to deliver the alarms via emails
    Enabled bool
    Whether to enable the alarm delivery via emails or not
    ToOrgAdmins bool
    Whether to deliver the alarms via emails to Org admins or not
    ToSiteAdmins bool
    Whether to deliver the alarms via emails to Site admins or not
    AdditionalEmails []string
    List of additional email string to deliver the alarms via emails
    Enabled bool
    Whether to enable the alarm delivery via emails or not
    ToOrgAdmins bool
    Whether to deliver the alarms via emails to Org admins or not
    ToSiteAdmins bool
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails List<String>
    List of additional email string to deliver the alarms via emails
    enabled Boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins Boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins Boolean
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails string[]
    List of additional email string to deliver the alarms via emails
    enabled boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins boolean
    Whether to deliver the alarms via emails to Site admins or not
    additional_emails Sequence[str]
    List of additional email string to deliver the alarms via emails
    enabled bool
    Whether to enable the alarm delivery via emails or not
    to_org_admins bool
    Whether to deliver the alarms via emails to Org admins or not
    to_site_admins bool
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails List<String>
    List of additional email string to deliver the alarms via emails
    enabled Boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins Boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins Boolean
    Whether to deliver the alarms via emails to Site admins or not

    GetAlarmtemplatesOrgAlarmtemplateRules

    Delivery GetAlarmtemplatesOrgAlarmtemplateRulesDelivery
    Delivery object to configure the alarm delivery
    Enabled bool
    delivery GetAlarmtemplatesOrgAlarmtemplateRulesDelivery
    Delivery object to configure the alarm delivery
    enabled Boolean
    delivery GetAlarmtemplatesOrgAlarmtemplateRulesDelivery
    Delivery object to configure the alarm delivery
    enabled boolean
    delivery GetAlarmtemplatesOrgAlarmtemplateRulesDelivery
    Delivery object to configure the alarm delivery
    enabled bool
    delivery Property Map
    Delivery object to configure the alarm delivery
    enabled Boolean

    GetAlarmtemplatesOrgAlarmtemplateRulesDelivery

    AdditionalEmails List<string>
    List of additional email string to deliver the alarms via emails
    Enabled bool
    Whether to enable the alarm delivery via emails or not
    ToOrgAdmins bool
    Whether to deliver the alarms via emails to Org admins or not
    ToSiteAdmins bool
    Whether to deliver the alarms via emails to Site admins or not
    AdditionalEmails []string
    List of additional email string to deliver the alarms via emails
    Enabled bool
    Whether to enable the alarm delivery via emails or not
    ToOrgAdmins bool
    Whether to deliver the alarms via emails to Org admins or not
    ToSiteAdmins bool
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails List<String>
    List of additional email string to deliver the alarms via emails
    enabled Boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins Boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins Boolean
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails string[]
    List of additional email string to deliver the alarms via emails
    enabled boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins boolean
    Whether to deliver the alarms via emails to Site admins or not
    additional_emails Sequence[str]
    List of additional email string to deliver the alarms via emails
    enabled bool
    Whether to enable the alarm delivery via emails or not
    to_org_admins bool
    Whether to deliver the alarms via emails to Org admins or not
    to_site_admins bool
    Whether to deliver the alarms via emails to Site admins or not
    additionalEmails List<String>
    List of additional email string to deliver the alarms via emails
    enabled Boolean
    Whether to enable the alarm delivery via emails or not
    toOrgAdmins Boolean
    Whether to deliver the alarms via emails to Org admins or not
    toSiteAdmins Boolean
    Whether to deliver the alarms via emails to Site admins or not

    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.2.1 published on Friday, Jan 24, 2025 by Pulumi