zenduty 1.0.6 published on Wednesday, Sep 3, 2025 by zenduty
zenduty.getGlobalrouter
Explore with Pulumi AI
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:
getGlobalrouter Result
The following output properties are available:
- Global
Routers List<GetGlobalrouter Global Router> - Id string
- Router
Id string
- Global
Routers []GetGlobalrouter Global Router - Id string
- Router
Id string
- global
Routers List<GetGlobalrouter Global Router> - id String
- router
Id String
- global
Routers GetGlobalrouter Global Router[] - id string
- router
Id string
- global
Routers List<Property Map> - id String
- router
Id String
Supporting Types
GetGlobalrouterGlobalRouter
- Description string
- The description of the global router.
- Integration
Key string - The integration key of the global router.
- Is
Enabled bool - Whether the global router is enabled.
- Name string
- The name of the global router.
- Unique
Id string - The UniqueID of the global router.
- Description string
- The description of the global router.
- Integration
Key string - The integration key of the global router.
- Is
Enabled bool - Whether the global router is enabled.
- Name string
- The name of the global router.
- Unique
Id string - The UniqueID of the global router.
- description String
- The description of the global router.
- integration
Key String - The integration key of the global router.
- is
Enabled Boolean - Whether the global router is enabled.
- name String
- The name of the global router.
- unique
Id String - The UniqueID of the global router.
- description string
- The description of the global router.
- integration
Key string - The integration key of the global router.
- is
Enabled boolean - Whether the global router is enabled.
- name string
- The name of the global router.
- unique
Id 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.
- integration
Key String - The integration key of the global router.
- is
Enabled Boolean - Whether the global router is enabled.
- name String
- The name of the global router.
- unique
Id 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.