1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getOutgoingRules
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty

    zenduty.OutgoingRules lists the outgoing rules of an integration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const integrationRules = zenduty.getOutgoingRules({
        teamId: exampleteam.id,
        serviceId: exampleservice.id,
        integrationId: exampleintegration.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    integration_rules = zenduty.get_outgoing_rules(team_id=exampleteam["id"],
        service_id=exampleservice["id"],
        integration_id=exampleintegration["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.LookupOutgoingRules(ctx, &zenduty.LookupOutgoingRulesArgs{
    			TeamId:        exampleteam.Id,
    			ServiceId:     exampleservice.Id,
    			IntegrationId: exampleintegration.Id,
    		}, 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 integrationRules = Zenduty.GetOutgoingRules.Invoke(new()
        {
            TeamId = exampleteam.Id,
            ServiceId = exampleservice.Id,
            IntegrationId = exampleintegration.Id,
        });
    
    });
    
    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.GetOutgoingRulesArgs;
    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 integrationRules = ZendutyFunctions.getOutgoingRules(GetOutgoingRulesArgs.builder()
                .teamId(exampleteam.id())
                .serviceId(exampleservice.id())
                .integrationId(exampleintegration.id())
                .build());
    
        }
    }
    
    variables:
      integrationRules:
        fn::invoke:
          function: zenduty:getOutgoingRules
          arguments:
            teamId: ${exampleteam.id}
            serviceId: ${exampleservice.id}
            integrationId: ${exampleintegration.id}
    
    Example coming soon!
    

    Using getOutgoingRules

    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 getOutgoingRules(args: GetOutgoingRulesArgs, opts?: InvokeOptions): Promise<GetOutgoingRulesResult>
    function getOutgoingRulesOutput(args: GetOutgoingRulesOutputArgs, opts?: InvokeOutputOptions): Output<GetOutgoingRulesResult>
    def get_outgoing_rules(id: Optional[str] = None,
                           integration_id: Optional[str] = None,
                           service_id: Optional[str] = None,
                           team_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetOutgoingRulesResult
    def get_outgoing_rules_output(id: pulumi.Input[Optional[str]] = None,
                           integration_id: pulumi.Input[Optional[str]] = None,
                           service_id: pulumi.Input[Optional[str]] = None,
                           team_id: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetOutgoingRulesResult]
    func LookupOutgoingRules(ctx *Context, args *LookupOutgoingRulesArgs, opts ...InvokeOption) (*LookupOutgoingRulesResult, error)
    func LookupOutgoingRulesOutput(ctx *Context, args *LookupOutgoingRulesOutputArgs, opts ...InvokeOption) LookupOutgoingRulesResultOutput

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

    public static class GetOutgoingRules 
    {
        public static Task<GetOutgoingRulesResult> InvokeAsync(GetOutgoingRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetOutgoingRulesResult> Invoke(GetOutgoingRulesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOutgoingRulesResult> Invoke(GetOutgoingRulesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOutgoingRulesResult> getOutgoingRules(GetOutgoingRulesArgs args, InvokeOptions options)
    public static Output<GetOutgoingRulesResult> getOutgoingRules(GetOutgoingRulesArgs args, InvokeOptions options)
    public static Output<GetOutgoingRulesResult> getOutgoingRules(GetOutgoingRulesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getOutgoingRules:getOutgoingRules
      arguments:
        # arguments dictionary
    data "zenduty_get_outgoing_rules" "name" {
        # arguments
    }

    The following arguments are supported:

    IntegrationId string
    The unique_id of the integration whose outgoing rules to list.
    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    IntegrationId string
    The unique_id of the integration whose outgoing rules to list.
    ServiceId string
    The unique_id of the service.
    TeamId string
    The unique_id of the team.
    Id string
    integration_id string
    The unique_id of the integration whose outgoing rules to list.
    service_id string
    The unique_id of the service.
    team_id string
    The unique_id of the team.
    id string
    integrationId String
    The unique_id of the integration whose outgoing rules to list.
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String
    integrationId string
    The unique_id of the integration whose outgoing rules to list.
    serviceId string
    The unique_id of the service.
    teamId string
    The unique_id of the team.
    id string
    integration_id str
    The unique_id of the integration whose outgoing rules to list.
    service_id str
    The unique_id of the service.
    team_id str
    The unique_id of the team.
    id str
    integrationId String
    The unique_id of the integration whose outgoing rules to list.
    serviceId String
    The unique_id of the service.
    teamId String
    The unique_id of the team.
    id String

    getOutgoingRules Result

    The following output properties are available:

    Id string
    IntegrationId string
    Rules List<GetOutgoingRulesRule>
    The list of outgoing rules, each with:
    ServiceId string
    TeamId string
    Id string
    IntegrationId string
    Rules []GetOutgoingRulesRule
    The list of outgoing rules, each with:
    ServiceId string
    TeamId string
    id string
    integration_id string
    rules list(object)
    The list of outgoing rules, each with:
    service_id string
    team_id string
    id String
    integrationId String
    rules List<GetOutgoingRulesRule>
    The list of outgoing rules, each with:
    serviceId String
    teamId String
    id string
    integrationId string
    rules GetOutgoingRulesRule[]
    The list of outgoing rules, each with:
    serviceId string
    teamId string
    id str
    integration_id str
    rules Sequence[GetOutgoingRulesRule]
    The list of outgoing rules, each with:
    service_id str
    team_id str
    id String
    integrationId String
    rules List<Property Map>
    The list of outgoing rules, each with:
    serviceId String
    teamId String

    Supporting Types

    GetOutgoingRulesRule

    Enabled bool
    Whether the rule is enabled.
    RuleJson string
    The rule definition as a JSON string.
    UniqueId string
    The unique_id of the rule.
    Enabled bool
    Whether the rule is enabled.
    RuleJson string
    The rule definition as a JSON string.
    UniqueId string
    The unique_id of the rule.
    enabled bool
    Whether the rule is enabled.
    rule_json string
    The rule definition as a JSON string.
    unique_id string
    The unique_id of the rule.
    enabled Boolean
    Whether the rule is enabled.
    ruleJson String
    The rule definition as a JSON string.
    uniqueId String
    The unique_id of the rule.
    enabled boolean
    Whether the rule is enabled.
    ruleJson string
    The rule definition as a JSON string.
    uniqueId string
    The unique_id of the rule.
    enabled bool
    Whether the rule is enabled.
    rule_json str
    The rule definition as a JSON string.
    unique_id str
    The unique_id of the rule.
    enabled Boolean
    Whether the rule is enabled.
    ruleJson String
    The rule definition as a JSON string.
    uniqueId String
    The unique_id of the rule.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial