coralogix.GlobalRouter
Explore with Pulumi AI
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:
- Entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- Description string
- Description of the GlobalRouter.
- Entity
Labels Dictionary<string, string> - Fallbacks
List<Global
Router Fallback> - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
List<Global
Router Rule> - Routing rules for the GlobalRouter.
- Entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- Description string
- Description of the GlobalRouter.
- Entity
Labels map[string]string - Fallbacks
[]Global
Router Fallback Args - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
[]Global
Router Rule Args - Routing rules for the GlobalRouter.
- entity
Type String - Type of the entity. Valid values are: alerts, unspecified
- description String
- Description of the GlobalRouter.
- entity
Labels Map<String,String> - fallbacks
List<Global
Router Fallback> - Fallback routing targets.
- name String
- Name of the GlobalRouter.
- rules
List<Global
Router Rule> - Routing rules for the GlobalRouter.
- entity
Type string - Type of the entity. Valid values are: alerts, unspecified
- description string
- Description of the GlobalRouter.
- entity
Labels {[key: string]: string} - fallbacks
Global
Router Fallback[] - Fallback routing targets.
- name string
- Name of the GlobalRouter.
- rules
Global
Router Rule[] - 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[Global
Router Fallback Args] - Fallback routing targets.
- name str
- Name of the GlobalRouter.
- rules
Sequence[Global
Router Rule Args] - Routing rules for the GlobalRouter.
- entity
Type String - Type of the entity. Valid values are: alerts, unspecified
- description String
- Description of the GlobalRouter.
- entity
Labels 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.
- 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<Global
Router Fallback> - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
List<Global
Router Rule> - Routing rules for 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
[]Global
Router Fallback Args - Fallback routing targets.
- Name string
- Name of the GlobalRouter.
- Rules
[]Global
Router Rule Args - Routing rules for 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<Global
Router Fallback> - Fallback routing targets.
- name String
- Name of the GlobalRouter.
- rules
List<Global
Router Rule> - Routing rules for 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
Global
Router Fallback[] - Fallback routing targets.
- name string
- Name of the GlobalRouter.
- rules
Global
Router Rule[] - 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[Global
Router Fallback Args] - Fallback routing targets.
- name str
- Name of the GlobalRouter.
- rules
Sequence[Global
Router Rule Args] - Routing rules for 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.
Supporting Types
GlobalRouterFallback, GlobalRouterFallbackArgs
- 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.
GlobalRouterRule, GlobalRouterRuleArgs
- Condition string
- Name string
- Name of the routing rule.
- Custom
Details Dictionary<string, string> - Custom details for the rule.
- Targets
List<Global
Router Rule Target> - Routing targets for the rule.
- Condition string
- Name string
- Name of the routing rule.
- Custom
Details map[string]string - Custom details for the rule.
- Targets
[]Global
Router Rule Target - Routing targets for the rule.
- condition String
- name String
- Name of the routing rule.
- custom
Details Map<String,String> - Custom details for the rule.
- targets
List<Global
Router Rule Target> - Routing targets for the rule.
- condition string
- name string
- Name of the routing rule.
- custom
Details {[key: string]: string} - Custom details for the rule.
- targets
Global
Router Rule Target[] - 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[Global
Router Rule Target] - Routing targets for the rule.
- condition String
- name String
- Name of the routing rule.
- custom
Details Map<String> - Custom details for the rule.
- targets List<Property Map>
- Routing targets for the rule.
GlobalRouterRuleTarget, GlobalRouterRuleTargetArgs
- 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.