1. Packages
  2. Coralogix Provider
  3. API Docs
  4. GlobalRouter
coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix

coralogix.GlobalRouter

Explore with Pulumi AI

coralogix logo
coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix

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

    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,
                     entity_type: Optional[str] = None,
                     description: Optional[str] = None,
                     entity_labels: Optional[Mapping[str, str]] = None,
                     fallbacks: Optional[Sequence[GlobalRouterFallbackArgs]] = None,
                     name: Optional[str] = None,
                     rules: Optional[Sequence[GlobalRouterRuleArgs]] = 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: coralogix:GlobalRouter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GlobalRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args GlobalRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 Coralogix.GlobalRouter("globalRouterResource", new()
    {
        EntityType = "string",
        Description = "string",
        EntityLabels = 
        {
            { "string", "string" },
        },
        Fallbacks = new[]
        {
            new Coralogix.Inputs.GlobalRouterFallbackArgs
            {
                ConnectorId = "string",
                CustomDetails = 
                {
                    { "string", "string" },
                },
                PresetId = "string",
            },
        },
        Name = "string",
        Rules = new[]
        {
            new Coralogix.Inputs.GlobalRouterRuleArgs
            {
                Condition = "string",
                Name = "string",
                CustomDetails = 
                {
                    { "string", "string" },
                },
                Targets = new[]
                {
                    new Coralogix.Inputs.GlobalRouterRuleTargetArgs
                    {
                        ConnectorId = "string",
                        CustomDetails = 
                        {
                            { "string", "string" },
                        },
                        PresetId = "string",
                    },
                },
            },
        },
    });
    
    example, err := coralogix.NewGlobalRouter(ctx, "globalRouterResource", &coralogix.GlobalRouterArgs{
    	EntityType:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	EntityLabels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Fallbacks: coralogix.GlobalRouterFallbackArray{
    		&coralogix.GlobalRouterFallbackArgs{
    			ConnectorId: pulumi.String("string"),
    			CustomDetails: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			PresetId: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	Rules: coralogix.GlobalRouterRuleArray{
    		&coralogix.GlobalRouterRuleArgs{
    			Condition: pulumi.String("string"),
    			Name:      pulumi.String("string"),
    			CustomDetails: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Targets: coralogix.GlobalRouterRuleTargetArray{
    				&coralogix.GlobalRouterRuleTargetArgs{
    					ConnectorId: pulumi.String("string"),
    					CustomDetails: pulumi.StringMap{
    						"string": pulumi.String("string"),
    					},
    					PresetId: pulumi.String("string"),
    				},
    			},
    		},
    	},
    })
    
    var globalRouterResource = new GlobalRouter("globalRouterResource", GlobalRouterArgs.builder()
        .entityType("string")
        .description("string")
        .entityLabels(Map.of("string", "string"))
        .fallbacks(GlobalRouterFallbackArgs.builder()
            .connectorId("string")
            .customDetails(Map.of("string", "string"))
            .presetId("string")
            .build())
        .name("string")
        .rules(GlobalRouterRuleArgs.builder()
            .condition("string")
            .name("string")
            .customDetails(Map.of("string", "string"))
            .targets(GlobalRouterRuleTargetArgs.builder()
                .connectorId("string")
                .customDetails(Map.of("string", "string"))
                .presetId("string")
                .build())
            .build())
        .build());
    
    global_router_resource = coralogix.GlobalRouter("globalRouterResource",
        entity_type="string",
        description="string",
        entity_labels={
            "string": "string",
        },
        fallbacks=[{
            "connector_id": "string",
            "custom_details": {
                "string": "string",
            },
            "preset_id": "string",
        }],
        name="string",
        rules=[{
            "condition": "string",
            "name": "string",
            "custom_details": {
                "string": "string",
            },
            "targets": [{
                "connector_id": "string",
                "custom_details": {
                    "string": "string",
                },
                "preset_id": "string",
            }],
        }])
    
    const globalRouterResource = new coralogix.GlobalRouter("globalRouterResource", {
        entityType: "string",
        description: "string",
        entityLabels: {
            string: "string",
        },
        fallbacks: [{
            connectorId: "string",
            customDetails: {
                string: "string",
            },
            presetId: "string",
        }],
        name: "string",
        rules: [{
            condition: "string",
            name: "string",
            customDetails: {
                string: "string",
            },
            targets: [{
                connectorId: "string",
                customDetails: {
                    string: "string",
                },
                presetId: "string",
            }],
        }],
    });
    
    type: coralogix:GlobalRouter
    properties:
        description: string
        entityLabels:
            string: string
        entityType: string
        fallbacks:
            - connectorId: string
              customDetails:
                string: string
              presetId: string
        name: string
        rules:
            - condition: string
              customDetails:
                string: string
              name: string
              targets:
                - connectorId: string
                  customDetails:
                    string: string
                  presetId: string
    

    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:

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

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            entity_labels: Optional[Mapping[str, str]] = None,
            entity_type: Optional[str] = None,
            fallbacks: Optional[Sequence[GlobalRouterFallbackArgs]] = None,
            name: Optional[str] = None,
            rules: Optional[Sequence[GlobalRouterRuleArgs]] = 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: coralogix:GlobalRouter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 GlobalRouter.
    EntityLabels Dictionary<string, string>
    EntityType string
    Type of the entity. Valid values are: alerts, unspecified
    Fallbacks List<GlobalRouterFallback>
    Fallback routing targets.
    Name string
    Name of the GlobalRouter.
    Rules List<GlobalRouterRule>
    Routing rules for the GlobalRouter.
    Description string
    Description of the GlobalRouter.
    EntityLabels map[string]string
    EntityType string
    Type of the entity. Valid values are: alerts, unspecified
    Fallbacks []GlobalRouterFallbackArgs
    Fallback routing targets.
    Name string
    Name of the GlobalRouter.
    Rules []GlobalRouterRuleArgs
    Routing rules for 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<GlobalRouterFallback>
    Fallback routing targets.
    name String
    Name of the GlobalRouter.
    rules List<GlobalRouterRule>
    Routing rules for the GlobalRouter.
    description string
    Description of the GlobalRouter.
    entityLabels {[key: string]: string}
    entityType string
    Type of the entity. Valid values are: alerts, unspecified
    fallbacks GlobalRouterFallback[]
    Fallback routing targets.
    name string
    Name of the GlobalRouter.
    rules GlobalRouterRule[]
    Routing rules for 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[GlobalRouterFallbackArgs]
    Fallback routing targets.
    name str
    Name of the GlobalRouter.
    rules Sequence[GlobalRouterRuleArgs]
    Routing rules for 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.

    Supporting Types

    GlobalRouterFallback, GlobalRouterFallbackArgs

    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.

    GlobalRouterRule, GlobalRouterRuleArgs

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

    GlobalRouterRuleTarget, GlobalRouterRuleTargetArgs

    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.19 published on Monday, May 12, 2025 by coralogix