1. Packages
  2. Zenduty Provider
  3. API Docs
  4. getGlobalRoutingRules
zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty

zenduty.getGlobalRoutingRules

Explore with Pulumi AI

zenduty logo
zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleRule = zenduty.getGlobalRoutingRules({
        routerId: "router_unique_id",
        ruleId: "rule_unique_id",
    });
    const routerRules = zenduty.getGlobalRoutingRules({
        routerId: "router_unique_id",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_rule = zenduty.get_global_routing_rules(router_id="router_unique_id",
        rule_id="rule_unique_id")
    router_rules = zenduty.get_global_routing_rules(router_id="router_unique_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.GetGlobalRoutingRules(ctx, &zenduty.GetGlobalRoutingRulesArgs{
    			RouterId: "router_unique_id",
    			RuleId:   pulumi.StringRef("rule_unique_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.GetGlobalRoutingRules(ctx, &zenduty.GetGlobalRoutingRulesArgs{
    			RouterId: "router_unique_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 exampleRule = Zenduty.GetGlobalRoutingRules.Invoke(new()
        {
            RouterId = "router_unique_id",
            RuleId = "rule_unique_id",
        });
    
        var routerRules = Zenduty.GetGlobalRoutingRules.Invoke(new()
        {
            RouterId = "router_unique_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.GetGlobalRoutingRulesArgs;
    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 exampleRule = ZendutyFunctions.getGlobalRoutingRules(GetGlobalRoutingRulesArgs.builder()
                .routerId("router_unique_id")
                .ruleId("rule_unique_id")
                .build());
    
            final var routerRules = ZendutyFunctions.getGlobalRoutingRules(GetGlobalRoutingRulesArgs.builder()
                .routerId("router_unique_id")
                .build());
    
        }
    }
    
    variables:
      exampleRule:
        fn::invoke:
          function: zenduty:getGlobalRoutingRules
          arguments:
            routerId: router_unique_id
            ruleId: rule_unique_id
      routerRules:
        fn::invoke:
          function: zenduty:getGlobalRoutingRules
          arguments:
            routerId: router_unique_id
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const routingRules = data.zenduty_global_routing_rules.example_rule.routing_rules;
    
    import pulumi
    
    pulumi.export("routingRules", data["zenduty_global_routing_rules"]["example_rule"]["routing_rules"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("routingRules", data.Zenduty_global_routing_rules.Example_rule.Routing_rules)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["routingRules"] = data.Zenduty_global_routing_rules.Example_rule.Routing_rules,
        };
    });
    
    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("routingRules", data.zenduty_global_routing_rules().example_rule().routing_rules());
        }
    }
    
    outputs:
      routingRules: ${data.zenduty_global_routing_rules.example_rule.routing_rules}
    

    Using getGlobalRoutingRules

    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 getGlobalRoutingRules(args: GetGlobalRoutingRulesArgs, opts?: InvokeOptions): Promise<GetGlobalRoutingRulesResult>
    function getGlobalRoutingRulesOutput(args: GetGlobalRoutingRulesOutputArgs, opts?: InvokeOptions): Output<GetGlobalRoutingRulesResult>
    def get_global_routing_rules(id: Optional[str] = None,
                                 router_id: Optional[str] = None,
                                 rule_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetGlobalRoutingRulesResult
    def get_global_routing_rules_output(id: Optional[pulumi.Input[str]] = None,
                                 router_id: Optional[pulumi.Input[str]] = None,
                                 rule_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetGlobalRoutingRulesResult]
    func GetGlobalRoutingRules(ctx *Context, args *GetGlobalRoutingRulesArgs, opts ...InvokeOption) (*GetGlobalRoutingRulesResult, error)
    func GetGlobalRoutingRulesOutput(ctx *Context, args *GetGlobalRoutingRulesOutputArgs, opts ...InvokeOption) GetGlobalRoutingRulesResultOutput

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

    public static class GetGlobalRoutingRules 
    {
        public static Task<GetGlobalRoutingRulesResult> InvokeAsync(GetGlobalRoutingRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetGlobalRoutingRulesResult> Invoke(GetGlobalRoutingRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalRoutingRulesResult> getGlobalRoutingRules(GetGlobalRoutingRulesArgs args, InvokeOptions options)
    public static Output<GetGlobalRoutingRulesResult> getGlobalRoutingRules(GetGlobalRoutingRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zenduty:index/getGlobalRoutingRules:getGlobalRoutingRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RouterId string
    The UniqueID of the global router to query rules for.
    Id string
    RuleId string
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.
    RouterId string
    The UniqueID of the global router to query rules for.
    Id string
    RuleId string
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.
    routerId String
    The UniqueID of the global router to query rules for.
    id String
    ruleId String
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.
    routerId string
    The UniqueID of the global router to query rules for.
    id string
    ruleId string
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.
    router_id str
    The UniqueID of the global router to query rules for.
    id str
    rule_id str
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.
    routerId String
    The UniqueID of the global router to query rules for.
    id String
    ruleId String
    The UniqueID of the specific routing rule to query. If not provided, all routing rules for the specified router will be returned.

    getGlobalRoutingRules Result

    The following output properties are available:

    Supporting Types

    GetGlobalRoutingRulesRoutingRule

    Actions List<GetGlobalRoutingRulesRoutingRuleAction>
    The list of actions for this rule. The following attributes are exported as list of maps:
    Name string
    The name of the routing rule.
    RuleJson string
    The JSON rule configuration.
    UniqueId string
    The UniqueID of the routing rule.
    Actions []GetGlobalRoutingRulesRoutingRuleAction
    The list of actions for this rule. The following attributes are exported as list of maps:
    Name string
    The name of the routing rule.
    RuleJson string
    The JSON rule configuration.
    UniqueId string
    The UniqueID of the routing rule.
    actions List<GetGlobalRoutingRulesRoutingRuleAction>
    The list of actions for this rule. The following attributes are exported as list of maps:
    name String
    The name of the routing rule.
    ruleJson String
    The JSON rule configuration.
    uniqueId String
    The UniqueID of the routing rule.
    actions GetGlobalRoutingRulesRoutingRuleAction[]
    The list of actions for this rule. The following attributes are exported as list of maps:
    name string
    The name of the routing rule.
    ruleJson string
    The JSON rule configuration.
    uniqueId string
    The UniqueID of the routing rule.
    actions Sequence[GetGlobalRoutingRulesRoutingRuleAction]
    The list of actions for this rule. The following attributes are exported as list of maps:
    name str
    The name of the routing rule.
    rule_json str
    The JSON rule configuration.
    unique_id str
    The UniqueID of the routing rule.
    actions List<Property Map>
    The list of actions for this rule. The following attributes are exported as list of maps:
    name String
    The name of the routing rule.
    ruleJson String
    The JSON rule configuration.
    uniqueId String
    The UniqueID of the routing rule.

    GetGlobalRoutingRulesRoutingRuleAction

    ActionType double
    The type of action (0 for integration, 1 for other).
    Integration string
    The integration ID for action_type 0.
    ActionType float64
    The type of action (0 for integration, 1 for other).
    Integration string
    The integration ID for action_type 0.
    actionType Double
    The type of action (0 for integration, 1 for other).
    integration String
    The integration ID for action_type 0.
    actionType number
    The type of action (0 for integration, 1 for other).
    integration string
    The integration ID for action_type 0.
    action_type float
    The type of action (0 for integration, 1 for other).
    integration str
    The integration ID for action_type 0.
    actionType Number
    The type of action (0 for integration, 1 for other).
    integration String
    The integration ID for action_type 0.

    Package Details

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