1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getAlertrules
zenduty 0.2.6 published on Wednesday, Jan 15, 2025 by zenduty

zenduty.getAlertrules

Explore with Pulumi AI

zenduty logo
zenduty 0.2.6 published on Wednesday, Jan 15, 2025 by zenduty
    
    data "zenduty_alertrules" "examplealertrules" {
        team_id = ""
        service_id = ""
        integration_id = ""
        #alert_rule_id = ""
    
    }
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const zendutyAlertrules = data.zenduty_alertrules.examplealertrules.alertrules;
    
    import pulumi
    
    pulumi.export("zendutyAlertrules", data["zenduty_alertrules"]["examplealertrules"]["alertrules"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("zendutyAlertrules", data.Zenduty_alertrules.Examplealertrules.Alertrules)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["zendutyAlertrules"] = data.Zenduty_alertrules.Examplealertrules.Alertrules,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            ctx.export("zendutyAlertrules", data.zenduty_alertrules().examplealertrules().alertrules());
        }
    }
    
    outputs:
      zendutyAlertrules: ${data.zenduty_alertrules.examplealertrules.alertrules}
    

    Using getAlertrules

    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 getAlertrules(args: GetAlertrulesArgs, opts?: InvokeOptions): Promise<GetAlertrulesResult>
    function getAlertrulesOutput(args: GetAlertrulesOutputArgs, opts?: InvokeOptions): Output<GetAlertrulesResult>
    def get_alertrules(alert_rule_id: Optional[str] = None,
                       id: Optional[str] = None,
                       integration_id: Optional[str] = None,
                       service_id: Optional[str] = None,
                       team_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAlertrulesResult
    def get_alertrules_output(alert_rule_id: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       integration_id: Optional[pulumi.Input[str]] = None,
                       service_id: Optional[pulumi.Input[str]] = None,
                       team_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAlertrulesResult]
    func LookupAlertrules(ctx *Context, args *LookupAlertrulesArgs, opts ...InvokeOption) (*LookupAlertrulesResult, error)
    func LookupAlertrulesOutput(ctx *Context, args *LookupAlertrulesOutputArgs, opts ...InvokeOption) LookupAlertrulesResultOutput

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

    public static class GetAlertrules 
    {
        public static Task<GetAlertrulesResult> InvokeAsync(GetAlertrulesArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertrulesResult> Invoke(GetAlertrulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertrulesResult> getAlertrules(GetAlertrulesArgs args, InvokeOptions options)
    public static Output<GetAlertrulesResult> getAlertrules(GetAlertrulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zenduty:index/getAlertrules:getAlertrules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IntegrationId string
    unique_id of the integration
    ServiceId string
    unique_id of the service
    TeamId string
    unique_id of the team
    AlertRuleId string
    unique_id of the alert rule
    Id string
    IntegrationId string
    unique_id of the integration
    ServiceId string
    unique_id of the service
    TeamId string
    unique_id of the team
    AlertRuleId string
    unique_id of the alert rule
    Id string
    integrationId String
    unique_id of the integration
    serviceId String
    unique_id of the service
    teamId String
    unique_id of the team
    alertRuleId String
    unique_id of the alert rule
    id String
    integrationId string
    unique_id of the integration
    serviceId string
    unique_id of the service
    teamId string
    unique_id of the team
    alertRuleId string
    unique_id of the alert rule
    id string
    integration_id str
    unique_id of the integration
    service_id str
    unique_id of the service
    team_id str
    unique_id of the team
    alert_rule_id str
    unique_id of the alert rule
    id str
    integrationId String
    unique_id of the integration
    serviceId String
    unique_id of the service
    teamId String
    unique_id of the team
    alertRuleId String
    unique_id of the alert rule
    id String

    getAlertrules Result

    The following output properties are available:

    Supporting Types

    GetAlertrulesAlertrule

    Actions List<GetAlertrulesAlertruleAction>
    The actions of the alert rule as a list of maps:
    Description string
    The description of the alert rule
    Position double
    RuleJson string
    The JSON representation of the alert rule
    RuleType double
    Stop bool
    UniqueId string
    The unique_id of the action
    Actions []GetAlertrulesAlertruleAction
    The actions of the alert rule as a list of maps:
    Description string
    The description of the alert rule
    Position float64
    RuleJson string
    The JSON representation of the alert rule
    RuleType float64
    Stop bool
    UniqueId string
    The unique_id of the action
    actions List<GetAlertrulesAlertruleAction>
    The actions of the alert rule as a list of maps:
    description String
    The description of the alert rule
    position Double
    ruleJson String
    The JSON representation of the alert rule
    ruleType Double
    stop Boolean
    uniqueId String
    The unique_id of the action
    actions GetAlertrulesAlertruleAction[]
    The actions of the alert rule as a list of maps:
    description string
    The description of the alert rule
    position number
    ruleJson string
    The JSON representation of the alert rule
    ruleType number
    stop boolean
    uniqueId string
    The unique_id of the action
    actions Sequence[GetAlertrulesAlertruleAction]
    The actions of the alert rule as a list of maps:
    description str
    The description of the alert rule
    position float
    rule_json str
    The JSON representation of the alert rule
    rule_type float
    stop bool
    unique_id str
    The unique_id of the action
    actions List<Property Map>
    The actions of the alert rule as a list of maps:
    description String
    The description of the alert rule
    position Number
    ruleJson String
    The JSON representation of the alert rule
    ruleType Number
    stop Boolean
    uniqueId String
    The unique_id of the action

    GetAlertrulesAlertruleAction

    ActionType double
    The type of the action
    AssignTo string
    The assign_to of the action (only if action_type is 6)
    EscalationPolicy string
    Unique id of the escalation policy (only if action_type 4)
    Key string
    Schedule string
    Sla string
    Unique_id of the sla (only if action_type is 14)
    TeamPriority string
    Unique_id of the team priority (only if action_type is 15)
    UniqueId string
    The unique_id of the action
    Value string
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)
    ActionType float64
    The type of the action
    AssignTo string
    The assign_to of the action (only if action_type is 6)
    EscalationPolicy string
    Unique id of the escalation policy (only if action_type 4)
    Key string
    Schedule string
    Sla string
    Unique_id of the sla (only if action_type is 14)
    TeamPriority string
    Unique_id of the team priority (only if action_type is 15)
    UniqueId string
    The unique_id of the action
    Value string
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)
    actionType Double
    The type of the action
    assignTo String
    The assign_to of the action (only if action_type is 6)
    escalationPolicy String
    Unique id of the escalation policy (only if action_type 4)
    key String
    schedule String
    sla String
    Unique_id of the sla (only if action_type is 14)
    teamPriority String
    Unique_id of the team priority (only if action_type is 15)
    uniqueId String
    The unique_id of the action
    value String
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)
    actionType number
    The type of the action
    assignTo string
    The assign_to of the action (only if action_type is 6)
    escalationPolicy string
    Unique id of the escalation policy (only if action_type 4)
    key string
    schedule string
    sla string
    Unique_id of the sla (only if action_type is 14)
    teamPriority string
    Unique_id of the team priority (only if action_type is 15)
    uniqueId string
    The unique_id of the action
    value string
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)
    action_type float
    The type of the action
    assign_to str
    The assign_to of the action (only if action_type is 6)
    escalation_policy str
    Unique id of the escalation policy (only if action_type 4)
    key str
    schedule str
    sla str
    Unique_id of the sla (only if action_type is 14)
    team_priority str
    Unique_id of the team priority (only if action_type is 15)
    unique_id str
    The unique_id of the action
    value str
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)
    actionType Number
    The type of the action
    assignTo String
    The assign_to of the action (only if action_type is 6)
    escalationPolicy String
    Unique id of the escalation policy (only if action_type 4)
    key String
    schedule String
    sla String
    Unique_id of the sla (only if action_type is 14)
    teamPriority String
    Unique_id of the team priority (only if action_type is 15)
    uniqueId String
    The unique_id of the action
    value String
    The value of the action (only if action_type not in 3, 4, 6, 14, 15)

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty logo
    zenduty 0.2.6 published on Wednesday, Jan 15, 2025 by zenduty