coralogix 2.0.19 published on Monday, May 12, 2025 by coralogix
coralogix.getGlobalRouter
Explore with Pulumi AI
coralogix 2.0.19 published on Monday, May 12, 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:
getGlobalRouter Result
The following output properties are available:
- Description string
- Description of the GlobalRouter.
- Entity
Labels Dictionary<string, string> - Entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- Fallbacks
List<Get
Global Router Fallback> - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
List<Get
Global Router Rule> - Routing rules for the GlobalRouter.
- Id string
- The ID of the GlobalRouter.
- Description string
- Description of the GlobalRouter.
- Entity
Labels map[string]string - Entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- Fallbacks
[]Get
Global Router Fallback - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
[]Get
Global Router Rule - Routing rules for the GlobalRouter.
- Id string
- The ID of the GlobalRouter.
- description String
- Description of the GlobalRouter.
- entity
Labels Map<String,String> - entity
Type String - Type of the entity. Valid values are: alerts, unspecified
- fallbacks
List<Get
Global Router Fallback> - Fallback routing targets.
- name String
- Name of the GlobalRouter.
- rules
List<Get
Global Router Rule> - Routing rules for the GlobalRouter.
- id String
- The ID of the GlobalRouter.
- description string
- Description of the GlobalRouter.
- entity
Labels {[key: string]: string} - entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- fallbacks
Get
Global Router Fallback[] - Fallback routing targets.
- name string
- Name of the GlobalRouter.
- rules
Get
Global Router Rule[] - 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[Get
Global Router Fallback] - Fallback routing targets.
- name str
- Name of the GlobalRouter.
- rules
Sequence[Get
Global Router Rule] - Routing rules for the GlobalRouter.
- id str
- The ID of the GlobalRouter.
- description String
- Description of the GlobalRouter.
- entity
Labels Map<String> - entity
Type 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
- Connector
Id string - ID of the connector.
- Custom
Details Dictionary<string, string> - Custom details for the target.
- Preset
Id string - ID of the preset.
- Connector
Id string - ID of the connector.
- Custom
Details map[string]string - Custom details for the target.
- Preset
Id string - ID of the preset.
- connector
Id String - ID of the connector.
- custom
Details Map<String,String> - Custom details for the target.
- preset
Id String - ID of the preset.
- connector
Id string - ID of the connector.
- custom
Details {[key: string]: string} - Custom details for the target.
- preset
Id 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.
- connector
Id String - ID of the connector.
- custom
Details Map<String> - Custom details for the target.
- preset
Id String - ID of the preset.
GetGlobalRouterRule
- Condition string
- Custom
Details Dictionary<string, string> - Custom details for the rule.
- Name string
- Name of the routing rule.
- Targets
List<Get
Global Router Rule Target> - Routing targets for the rule.
- Condition string
- Custom
Details map[string]string - Custom details for the rule.
- Name string
- Name of the routing rule.
- Targets
[]Get
Global Router Rule Target - Routing targets for the rule.
- condition String
- custom
Details Map<String,String> - Custom details for the rule.
- name String
- Name of the routing rule.
- targets
List<Get
Global Router Rule Target> - Routing targets for the rule.
- condition string
- custom
Details {[key: string]: string} - Custom details for the rule.
- name string
- Name of the routing rule.
- targets
Get
Global Router Rule Target[] - 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[Get
Global Router Rule Target] - Routing targets for the rule.
- condition String
- custom
Details Map<String> - Custom details for the rule.
- name String
- Name of the routing rule.
- targets List<Property Map>
- Routing targets for the rule.
GetGlobalRouterRuleTarget
- Connector
Id string - ID of the connector.
- Custom
Details Dictionary<string, string> - Custom details for the target.
- Preset
Id string - ID of the preset.
- Connector
Id string - ID of the connector.
- Custom
Details map[string]string - Custom details for the target.
- Preset
Id string - ID of the preset.
- connector
Id String - ID of the connector.
- custom
Details Map<String,String> - Custom details for the target.
- preset
Id String - ID of the preset.
- connector
Id string - ID of the connector.
- custom
Details {[key: string]: string} - Custom details for the target.
- preset
Id 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.
- connector
Id String - ID of the connector.
- custom
Details Map<String> - Custom details for the target.
- preset
Id 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 2.0.19 published on Monday, May 12, 2025 by coralogix