zenduty 1.0.3 published on Monday, Mar 24, 2025 by zenduty
zenduty.getAlertrules
Explore with Pulumi AI
import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";
const examplealertrules = zenduty.getAlertrules({
    integrationId: "",
    serviceId: "",
    teamId: "",
});
import pulumi
import pulumi_zenduty as zenduty
examplealertrules = zenduty.get_alertrules(integration_id="",
    service_id="",
    team_id="")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/zenduty"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zenduty.LookupAlertrules(ctx, &zenduty.LookupAlertrulesArgs{
			IntegrationId: "",
			ServiceId:     "",
			TeamId:        "",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;
return await Deployment.RunAsync(() => 
{
    var examplealertrules = Zenduty.GetAlertrules.Invoke(new()
    {
        IntegrationId = "",
        ServiceId = "",
        TeamId = "",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.ZendutyFunctions;
import com.pulumi.zenduty.inputs.GetAlertrulesArgs;
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 examplealertrules = ZendutyFunctions.getAlertrules(GetAlertrulesArgs.builder()
            .integrationId("")
            .serviceId("")
            .teamId("")
            .build());
    }
}
variables:
  examplealertrules:
    fn::invoke:
      function: zenduty:getAlertrules
      arguments:
        integrationId: ""
        serviceId: ""
        teamId: ""
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 dictionaryThe 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
- AlertRule stringId 
- 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
- AlertRule stringId 
- 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
- alertRule StringId 
- 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
- alertRule stringId 
- 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_ strid 
- 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
- alertRule StringId 
- unique_id of the alert rule
- id String
getAlertrules Result
The following output properties are available:
- Alertrules
List<GetAlertrules Alertrule> 
- Id string
- IntegrationId string
- ServiceId string
- TeamId string
- AlertRule stringId 
- Alertrules
[]GetAlertrules Alertrule 
- Id string
- IntegrationId string
- ServiceId string
- TeamId string
- AlertRule stringId 
- alertrules
List<GetAlertrules Alertrule> 
- id String
- integrationId String
- serviceId String
- teamId String
- alertRule StringId 
- alertrules
GetAlertrules Alertrule[] 
- id string
- integrationId string
- serviceId string
- teamId string
- alertRule stringId 
- alertrules List<Property Map>
- id String
- integrationId String
- serviceId String
- teamId String
- alertRule StringId 
Supporting Types
GetAlertrulesAlertrule  
- Actions
List<GetAlertrules Alertrule Action> 
- 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
[]GetAlertrules Alertrule Action 
- 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<GetAlertrules Alertrule Action> 
- 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
GetAlertrules Alertrule Action[] 
- 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[GetAlertrules Alertrule Action] 
- 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 zendutyTerraform Provider.