1. Packages
  2. Coralogix Provider
  3. API Docs
  4. getGlobalRouter
coralogix 2.0.18 published on Thursday, May 8, 2025 by coralogix

coralogix.getGlobalRouter

Explore with Pulumi AI

coralogix logo
coralogix 2.0.18 published on Thursday, May 8, 2025 by coralogix

    Coralogix GlobalRouter. Note: This resource is in alpha stage.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as coralogix from "@pulumi/coralogix";
    
    const exampleData = coralogix.getGlobalRouter({
        id: "<global_router_id>",
    });
    const exampleDataByName = coralogix.getGlobalRouter({
        name: "<global_router_name>",
    });
    
    import pulumi
    import pulumi_coralogix as coralogix
    
    example_data = coralogix.get_global_router(id="<global_router_id>")
    example_data_by_name = coralogix.get_global_router(name="<global_router_name>")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := coralogix.LookupGlobalRouter(ctx, &coralogix.LookupGlobalRouterArgs{
    			Id: pulumi.StringRef("<global_router_id>"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = coralogix.LookupGlobalRouter(ctx, &coralogix.LookupGlobalRouterArgs{
    			Name: pulumi.StringRef("<global_router_name>"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Coralogix = Pulumi.Coralogix;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleData = Coralogix.GetGlobalRouter.Invoke(new()
        {
            Id = "<global_router_id>",
        });
    
        var exampleDataByName = Coralogix.GetGlobalRouter.Invoke(new()
        {
            Name = "<global_router_name>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.CoralogixFunctions;
    import com.pulumi.coralogix.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 exampleData = CoralogixFunctions.getGlobalRouter(GetGlobalRouterArgs.builder()
                .id("<global_router_id>")
                .build());
    
            final var exampleDataByName = CoralogixFunctions.getGlobalRouter(GetGlobalRouterArgs.builder()
                .name("<global_router_name>")
                .build());
    
        }
    }
    
    variables:
      exampleData:
        fn::invoke:
          function: coralogix:getGlobalRouter
          arguments:
            id: <global_router_id>
      exampleDataByName:
        fn::invoke:
          function: coralogix:getGlobalRouter
          arguments:
            name: <global_router_name>
    

    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_global_router(id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetGlobalRouterResult
    def get_global_router_output(id: Optional[pulumi.Input[str]] = None,
                          name: 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: coralogix:index/getGlobalRouter:getGlobalRouter
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the GlobalRouter.
    Name string
    Name of the GlobalRouter.
    Id string
    The ID of the GlobalRouter.
    Name string
    Name of the GlobalRouter.
    id String
    The ID of the GlobalRouter.
    name String
    Name of the GlobalRouter.
    id string
    The ID of the GlobalRouter.
    name string
    Name of the GlobalRouter.
    id str
    The ID of the GlobalRouter.
    name str
    Name of the GlobalRouter.
    id String
    The ID of the GlobalRouter.
    name String
    Name of the GlobalRouter.

    getGlobalRouter Result

    The following output properties are available:

    Description string
    Description of the GlobalRouter.
    EntityLabels Dictionary<string, string>
    EntityType string
    Type of the entity. Valid values are: alerts, unspecified
    Fallbacks List<GetGlobalRouterFallback>
    Fallback routing targets.
    Name string
    Name of the GlobalRouter.
    Rules List<GetGlobalRouterRule>
    Routing rules for the GlobalRouter.
    Id string
    The ID of the GlobalRouter.
    Description string
    Description of the GlobalRouter.
    EntityLabels map[string]string
    EntityType string
    Type of the entity. Valid values are: alerts, unspecified
    Fallbacks []GetGlobalRouterFallback
    Fallback routing targets.
    Name string
    Name of the GlobalRouter.
    Rules []GetGlobalRouterRule
    Routing rules for the GlobalRouter.
    Id string
    The ID of the GlobalRouter.
    description String
    Description of the GlobalRouter.
    entityLabels Map<String,String>
    entityType String
    Type of the entity. Valid values are: alerts, unspecified
    fallbacks List<GetGlobalRouterFallback>
    Fallback routing targets.
    name String
    Name of the GlobalRouter.
    rules List<GetGlobalRouterRule>
    Routing rules for the GlobalRouter.
    id String
    The ID of the GlobalRouter.
    description string
    Description of the GlobalRouter.
    entityLabels {[key: string]: string}
    entityType string
    Type of the entity. Valid values are: alerts, unspecified
    fallbacks GetGlobalRouterFallback[]
    Fallback routing targets.
    name string
    Name of the GlobalRouter.
    rules GetGlobalRouterRule[]
    Routing rules for the GlobalRouter.
    id string
    The ID of the GlobalRouter.
    description str
    Description of the GlobalRouter.
    entity_labels Mapping[str, str]
    entity_type str
    Type of the entity. Valid values are: alerts, unspecified
    fallbacks Sequence[GetGlobalRouterFallback]
    Fallback routing targets.
    name str
    Name of the GlobalRouter.
    rules Sequence[GetGlobalRouterRule]
    Routing rules for the GlobalRouter.
    id str
    The ID of the GlobalRouter.
    description String
    Description of the GlobalRouter.
    entityLabels Map<String>
    entityType String
    Type of the entity. Valid values are: alerts, unspecified
    fallbacks List<Property Map>
    Fallback routing targets.
    name String
    Name of the GlobalRouter.
    rules List<Property Map>
    Routing rules for the GlobalRouter.
    id String
    The ID of the GlobalRouter.

    Supporting Types

    GetGlobalRouterFallback

    ConnectorId string
    ID of the connector.
    CustomDetails Dictionary<string, string>
    Custom details for the target.
    PresetId string
    ID of the preset.
    ConnectorId string
    ID of the connector.
    CustomDetails map[string]string
    Custom details for the target.
    PresetId string
    ID of the preset.
    connectorId String
    ID of the connector.
    customDetails Map<String,String>
    Custom details for the target.
    presetId String
    ID of the preset.
    connectorId string
    ID of the connector.
    customDetails {[key: string]: string}
    Custom details for the target.
    presetId string
    ID of the preset.
    connector_id str
    ID of the connector.
    custom_details Mapping[str, str]
    Custom details for the target.
    preset_id str
    ID of the preset.
    connectorId String
    ID of the connector.
    customDetails Map<String>
    Custom details for the target.
    presetId String
    ID of the preset.

    GetGlobalRouterRule

    Condition string
    CustomDetails Dictionary<string, string>
    Custom details for the rule.
    Name string
    Name of the routing rule.
    Targets List<GetGlobalRouterRuleTarget>
    Routing targets for the rule.
    Condition string
    CustomDetails map[string]string
    Custom details for the rule.
    Name string
    Name of the routing rule.
    Targets []GetGlobalRouterRuleTarget
    Routing targets for the rule.
    condition String
    customDetails Map<String,String>
    Custom details for the rule.
    name String
    Name of the routing rule.
    targets List<GetGlobalRouterRuleTarget>
    Routing targets for the rule.
    condition string
    customDetails {[key: string]: string}
    Custom details for the rule.
    name string
    Name of the routing rule.
    targets GetGlobalRouterRuleTarget[]
    Routing targets for the rule.
    condition str
    custom_details Mapping[str, str]
    Custom details for the rule.
    name str
    Name of the routing rule.
    targets Sequence[GetGlobalRouterRuleTarget]
    Routing targets for the rule.
    condition String
    customDetails Map<String>
    Custom details for the rule.
    name String
    Name of the routing rule.
    targets List<Property Map>
    Routing targets for the rule.

    GetGlobalRouterRuleTarget

    ConnectorId string
    ID of the connector.
    CustomDetails Dictionary<string, string>
    Custom details for the target.
    PresetId string
    ID of the preset.
    ConnectorId string
    ID of the connector.
    CustomDetails map[string]string
    Custom details for the target.
    PresetId string
    ID of the preset.
    connectorId String
    ID of the connector.
    customDetails Map<String,String>
    Custom details for the target.
    presetId String
    ID of the preset.
    connectorId string
    ID of the connector.
    customDetails {[key: string]: string}
    Custom details for the target.
    presetId string
    ID of the preset.
    connector_id str
    ID of the connector.
    custom_details Mapping[str, str]
    Custom details for the target.
    preset_id str
    ID of the preset.
    connectorId String
    ID of the connector.
    customDetails Map<String>
    Custom details for the target.
    presetId String
    ID of the preset.

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.18 published on Thursday, May 8, 2025 by coralogix