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

zenduty.getGlobalrouter

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 exampleRouter = zenduty.getGlobalrouter({
        routerId: "router_unique_id",
    });
    const allRouters = zenduty.getGlobalrouter({});
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    example_router = zenduty.get_globalrouter(router_id="router_unique_id")
    all_routers = zenduty.get_globalrouter()
    
    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.LookupGlobalrouter(ctx, &zenduty.LookupGlobalrouterArgs{
    			RouterId: pulumi.StringRef("router_unique_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.LookupGlobalrouter(ctx, &zenduty.LookupGlobalrouterArgs{}, 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 exampleRouter = Zenduty.GetGlobalrouter.Invoke(new()
        {
            RouterId = "router_unique_id",
        });
    
        var allRouters = Zenduty.GetGlobalrouter.Invoke();
    
    });
    
    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.GetGlobalrouterArgs;
    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 exampleRouter = ZendutyFunctions.getGlobalrouter(GetGlobalrouterArgs.builder()
                .routerId("router_unique_id")
                .build());
    
            final var allRouters = ZendutyFunctions.getGlobalrouter();
    
        }
    }
    
    variables:
      exampleRouter:
        fn::invoke:
          function: zenduty:getGlobalrouter
          arguments:
            routerId: router_unique_id
      allRouters:
        fn::invoke:
          function: zenduty:getGlobalrouter
          arguments: {}
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const globalRouters = data.zenduty_globalrouter.example_router.global_routers;
    
    import pulumi
    
    pulumi.export("globalRouters", data["zenduty_globalrouter"]["example_router"]["global_routers"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("globalRouters", data.Zenduty_globalrouter.Example_router.Global_routers)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["globalRouters"] = data.Zenduty_globalrouter.Example_router.Global_routers,
        };
    });
    
    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("globalRouters", data.zenduty_globalrouter().example_router().global_routers());
        }
    }
    
    outputs:
      globalRouters: ${data.zenduty_globalrouter.example_router.global_routers}
    

    Using getGlobalrouter

    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 getGlobalrouter(args: GetGlobalrouterArgs, opts?: InvokeOptions): Promise<GetGlobalrouterResult>
    function getGlobalrouterOutput(args: GetGlobalrouterOutputArgs, opts?: InvokeOptions): Output<GetGlobalrouterResult>
    def get_globalrouter(id: Optional[str] = None,
                         router_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGlobalrouterResult
    def get_globalrouter_output(id: Optional[pulumi.Input[str]] = None,
                         router_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGlobalrouterResult]
    func LookupGlobalrouter(ctx *Context, args *LookupGlobalrouterArgs, opts ...InvokeOption) (*LookupGlobalrouterResult, error)
    func LookupGlobalrouterOutput(ctx *Context, args *LookupGlobalrouterOutputArgs, opts ...InvokeOption) LookupGlobalrouterResultOutput

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

    public static class GetGlobalrouter 
    {
        public static Task<GetGlobalrouterResult> InvokeAsync(GetGlobalrouterArgs args, InvokeOptions? opts = null)
        public static Output<GetGlobalrouterResult> Invoke(GetGlobalrouterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalrouterResult> getGlobalrouter(GetGlobalrouterArgs args, InvokeOptions options)
    public static Output<GetGlobalrouterResult> getGlobalrouter(GetGlobalrouterArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zenduty:index/getGlobalrouter:getGlobalrouter
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    RouterId string
    The UniqueID of the global router to query. If not provided, all global routers will be returned.
    Id string
    RouterId string
    The UniqueID of the global router to query. If not provided, all global routers will be returned.
    id String
    routerId String
    The UniqueID of the global router to query. If not provided, all global routers will be returned.
    id string
    routerId string
    The UniqueID of the global router to query. If not provided, all global routers will be returned.
    id str
    router_id str
    The UniqueID of the global router to query. If not provided, all global routers will be returned.
    id String
    routerId String
    The UniqueID of the global router to query. If not provided, all global routers will be returned.

    getGlobalrouter Result

    The following output properties are available:

    Supporting Types

    GetGlobalrouterGlobalRouter

    Description string
    The description of the global router.
    IntegrationKey string
    The integration key of the global router.
    IsEnabled bool
    Whether the global router is enabled.
    Name string
    The name of the global router.
    UniqueId string
    The UniqueID of the global router.
    Description string
    The description of the global router.
    IntegrationKey string
    The integration key of the global router.
    IsEnabled bool
    Whether the global router is enabled.
    Name string
    The name of the global router.
    UniqueId string
    The UniqueID of the global router.
    description String
    The description of the global router.
    integrationKey String
    The integration key of the global router.
    isEnabled Boolean
    Whether the global router is enabled.
    name String
    The name of the global router.
    uniqueId String
    The UniqueID of the global router.
    description string
    The description of the global router.
    integrationKey string
    The integration key of the global router.
    isEnabled boolean
    Whether the global router is enabled.
    name string
    The name of the global router.
    uniqueId string
    The UniqueID of the global router.
    description str
    The description of the global router.
    integration_key str
    The integration key of the global router.
    is_enabled bool
    Whether the global router is enabled.
    name str
    The name of the global router.
    unique_id str
    The UniqueID of the global router.
    description String
    The description of the global router.
    integrationKey String
    The integration key of the global router.
    isEnabled Boolean
    Whether the global router is enabled.
    name String
    The name of the global router.
    uniqueId String
    The UniqueID of the global router.

    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