1. Packages
  2. Zenduty Provider
  3. API Docs
  4. Globalrouter
zenduty 1.0.4 published on Wednesday, Apr 2, 2025 by zenduty

zenduty.Globalrouter

Explore with Pulumi AI

An Global Router allows users to create a Router. The Router evaluates events sent to this Router against each of its rules, one at a time, and routes the event to a specific Integration based on the first rule that matches.


Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as zenduty from "@pulumi/zenduty";

const router = new zenduty.Globalrouter("router", {description: "This is a demo router"});
Copy
import pulumi
import pulumi_zenduty as zenduty

router = zenduty.Globalrouter("router", description="This is a demo router")
Copy
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.NewGlobalrouter(ctx, "router", &zenduty.GlobalrouterArgs{
			Description: pulumi.String("This is a demo router"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zenduty = Pulumi.Zenduty;

return await Deployment.RunAsync(() => 
{
    var router = new Zenduty.Globalrouter("router", new()
    {
        Description = "This is a demo router",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zenduty.Globalrouter;
import com.pulumi.zenduty.GlobalrouterArgs;
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) {
        var router = new Globalrouter("router", GlobalrouterArgs.builder()
            .description("This is a demo router")
            .build());

    }
}
Copy
resources:
  router:
    type: zenduty:Globalrouter
    properties:
      description: This is a demo router
Copy

Create Globalrouter Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Globalrouter(name: string, args: GlobalrouterArgs, opts?: CustomResourceOptions);
@overload
def Globalrouter(resource_name: str,
                 args: GlobalrouterArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def Globalrouter(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 globalrouter_id: Optional[str] = None,
                 is_enabled: Optional[bool] = None,
                 name: Optional[str] = None)
func NewGlobalrouter(ctx *Context, name string, args GlobalrouterArgs, opts ...ResourceOption) (*Globalrouter, error)
public Globalrouter(string name, GlobalrouterArgs args, CustomResourceOptions? opts = null)
public Globalrouter(String name, GlobalrouterArgs args)
public Globalrouter(String name, GlobalrouterArgs args, CustomResourceOptions options)
type: zenduty:Globalrouter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GlobalrouterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GlobalrouterArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GlobalrouterArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GlobalrouterArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GlobalrouterArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var globalrouterResource = new Zenduty.Globalrouter("globalrouterResource", new()
{
    Description = "string",
    GlobalrouterId = "string",
    IsEnabled = false,
    Name = "string",
});
Copy
example, err := zenduty.NewGlobalrouter(ctx, "globalrouterResource", &zenduty.GlobalrouterArgs{
Description: pulumi.String("string"),
GlobalrouterId: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
})
Copy
var globalrouterResource = new Globalrouter("globalrouterResource", GlobalrouterArgs.builder()
    .description("string")
    .globalrouterId("string")
    .isEnabled(false)
    .name("string")
    .build());
Copy
globalrouter_resource = zenduty.Globalrouter("globalrouterResource",
    description="string",
    globalrouter_id="string",
    is_enabled=False,
    name="string")
Copy
const globalrouterResource = new zenduty.Globalrouter("globalrouterResource", {
    description: "string",
    globalrouterId: "string",
    isEnabled: false,
    name: "string",
});
Copy
type: zenduty:Globalrouter
properties:
    description: string
    globalrouterId: string
    isEnabled: false
    name: string
Copy

Globalrouter Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Globalrouter resource accepts the following input properties:

Description This property is required. string
Description of the Router
GlobalrouterId string
The ID of the GlobalRouter.
IsEnabled bool
Name string
Name of the Router
Description This property is required. string
Description of the Router
GlobalrouterId string
The ID of the GlobalRouter.
IsEnabled bool
Name string
Name of the Router
description This property is required. String
Description of the Router
globalrouterId String
The ID of the GlobalRouter.
isEnabled Boolean
name String
Name of the Router
description This property is required. string
Description of the Router
globalrouterId string
The ID of the GlobalRouter.
isEnabled boolean
name string
Name of the Router
description This property is required. str
Description of the Router
globalrouter_id str
The ID of the GlobalRouter.
is_enabled bool
name str
Name of the Router
description This property is required. String
Description of the Router
globalrouterId String
The ID of the GlobalRouter.
isEnabled Boolean
name String
Name of the Router

Outputs

All input properties are implicitly available as output properties. Additionally, the Globalrouter resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
IntegrationKey string
The integration key of the GlobalRouter.
Id string
The provider-assigned unique ID for this managed resource.
IntegrationKey string
The integration key of the GlobalRouter.
id String
The provider-assigned unique ID for this managed resource.
integrationKey String
The integration key of the GlobalRouter.
id string
The provider-assigned unique ID for this managed resource.
integrationKey string
The integration key of the GlobalRouter.
id str
The provider-assigned unique ID for this managed resource.
integration_key str
The integration key of the GlobalRouter.
id String
The provider-assigned unique ID for this managed resource.
integrationKey String
The integration key of the GlobalRouter.

Look up Existing Globalrouter Resource

Get an existing Globalrouter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GlobalrouterState, opts?: CustomResourceOptions): Globalrouter
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        globalrouter_id: Optional[str] = None,
        integration_key: Optional[str] = None,
        is_enabled: Optional[bool] = None,
        name: Optional[str] = None) -> Globalrouter
func GetGlobalrouter(ctx *Context, name string, id IDInput, state *GlobalrouterState, opts ...ResourceOption) (*Globalrouter, error)
public static Globalrouter Get(string name, Input<string> id, GlobalrouterState? state, CustomResourceOptions? opts = null)
public static Globalrouter get(String name, Output<String> id, GlobalrouterState state, CustomResourceOptions options)
resources:  _:    type: zenduty:Globalrouter    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string
Description of the Router
GlobalrouterId string
The ID of the GlobalRouter.
IntegrationKey string
The integration key of the GlobalRouter.
IsEnabled bool
Name string
Name of the Router
Description string
Description of the Router
GlobalrouterId string
The ID of the GlobalRouter.
IntegrationKey string
The integration key of the GlobalRouter.
IsEnabled bool
Name string
Name of the Router
description String
Description of the Router
globalrouterId String
The ID of the GlobalRouter.
integrationKey String
The integration key of the GlobalRouter.
isEnabled Boolean
name String
Name of the Router
description string
Description of the Router
globalrouterId string
The ID of the GlobalRouter.
integrationKey string
The integration key of the GlobalRouter.
isEnabled boolean
name string
Name of the Router
description str
Description of the Router
globalrouter_id str
The ID of the GlobalRouter.
integration_key str
The integration key of the GlobalRouter.
is_enabled bool
name str
Name of the Router
description String
Description of the Router
globalrouterId String
The ID of the GlobalRouter.
integrationKey String
The integration key of the GlobalRouter.
isEnabled Boolean
name String
Name of the Router

Import

GlobalRouter can be imported using the router_id(ie. UniqueID of the router), e.g.

hcl

resource “zenduty_globalrouter” “router” {

}

$ pulumi import zenduty:index/globalrouter:Globalrouter router router_id`
Copy

$ terraform state show zenduty_globalrouter.router

copy the output data and paste inside zenduty_globalrouter.router resource block and remove the id,integration_key attribute

$ pulumi preview to verify the import

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
zenduty zenduty/terraform-provider-zenduty
License
Notes
This Pulumi package is based on the zenduty Terraform Provider.