Create, update, and delete logs_router_routes with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const logsRouterRouteInstance = new ibm.LogsRouterRoute("logs_router_route_instance", {
managedBy: "enterprise",
name: "my-route",
rules: [{
action: "send",
targets: [{
id: "c3af557f-fb0e-4476-85c3-0889e7fe7bc4",
}],
inclusionFilters: [{
operand: "location",
operator: "is",
values: ["us-south"],
}],
}],
});
import pulumi
import pulumi_ibm as ibm
logs_router_route_instance = ibm.LogsRouterRoute("logs_router_route_instance",
managed_by="enterprise",
name="my-route",
rules=[{
"action": "send",
"targets": [{
"id": "c3af557f-fb0e-4476-85c3-0889e7fe7bc4",
}],
"inclusion_filters": [{
"operand": "location",
"operator": "is",
"values": ["us-south"],
}],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewLogsRouterRoute(ctx, "logs_router_route_instance", &ibm.LogsRouterRouteArgs{
ManagedBy: pulumi.String("enterprise"),
Name: pulumi.String("my-route"),
Rules: ibm.LogsRouterRouteRuleArray{
&ibm.LogsRouterRouteRuleArgs{
Action: pulumi.String("send"),
Targets: ibm.LogsRouterRouteRuleTargetArray{
&ibm.LogsRouterRouteRuleTargetArgs{
Id: pulumi.String("c3af557f-fb0e-4476-85c3-0889e7fe7bc4"),
},
},
InclusionFilters: ibm.LogsRouterRouteRuleInclusionFilterArray{
&ibm.LogsRouterRouteRuleInclusionFilterArgs{
Operand: pulumi.String("location"),
Operator: pulumi.String("is"),
Values: pulumi.StringArray{
pulumi.String("us-south"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var logsRouterRouteInstance = new Ibm.LogsRouterRoute("logs_router_route_instance", new()
{
ManagedBy = "enterprise",
Name = "my-route",
Rules = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleArgs
{
Action = "send",
Targets = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleTargetArgs
{
Id = "c3af557f-fb0e-4476-85c3-0889e7fe7bc4",
},
},
InclusionFilters = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleInclusionFilterArgs
{
Operand = "location",
Operator = "is",
Values = new[]
{
"us-south",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.LogsRouterRoute;
import com.pulumi.ibm.LogsRouterRouteArgs;
import com.pulumi.ibm.inputs.LogsRouterRouteRuleArgs;
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 logsRouterRouteInstance = new LogsRouterRoute("logsRouterRouteInstance", LogsRouterRouteArgs.builder()
.managedBy("enterprise")
.name("my-route")
.rules(LogsRouterRouteRuleArgs.builder()
.action("send")
.targets(LogsRouterRouteRuleTargetArgs.builder()
.id("c3af557f-fb0e-4476-85c3-0889e7fe7bc4")
.build())
.inclusionFilters(LogsRouterRouteRuleInclusionFilterArgs.builder()
.operand("location")
.operator("is")
.values("us-south")
.build())
.build())
.build());
}
}
resources:
logsRouterRouteInstance:
type: ibm:LogsRouterRoute
name: logs_router_route_instance
properties:
managedBy: enterprise
name: my-route
rules:
- action: send
targets:
- id: c3af557f-fb0e-4476-85c3-0889e7fe7bc4
inclusionFilters:
- operand: location
operator: is
values:
- us-south
Create LogsRouterRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogsRouterRoute(name: string, args: LogsRouterRouteArgs, opts?: CustomResourceOptions);@overload
def LogsRouterRoute(resource_name: str,
args: LogsRouterRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogsRouterRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[LogsRouterRouteRuleArgs]] = None,
logs_router_route_id: Optional[str] = None,
managed_by: Optional[str] = None,
name: Optional[str] = None)func NewLogsRouterRoute(ctx *Context, name string, args LogsRouterRouteArgs, opts ...ResourceOption) (*LogsRouterRoute, error)public LogsRouterRoute(string name, LogsRouterRouteArgs args, CustomResourceOptions? opts = null)
public LogsRouterRoute(String name, LogsRouterRouteArgs args)
public LogsRouterRoute(String name, LogsRouterRouteArgs args, CustomResourceOptions options)
type: ibm:LogsRouterRoute
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 LogsRouterRouteArgs
- 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 LogsRouterRouteArgs
- 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 LogsRouterRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogsRouterRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogsRouterRouteArgs
- 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 logsRouterRouteResource = new Ibm.LogsRouterRoute("logsRouterRouteResource", new()
{
Rules = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleArgs
{
Targets = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleTargetArgs
{
Id = "string",
},
},
Action = "string",
InclusionFilters = new[]
{
new Ibm.Inputs.LogsRouterRouteRuleInclusionFilterArgs
{
Operand = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
},
},
LogsRouterRouteId = "string",
ManagedBy = "string",
Name = "string",
});
example, err := ibm.NewLogsRouterRoute(ctx, "logsRouterRouteResource", &ibm.LogsRouterRouteArgs{
Rules: ibm.LogsRouterRouteRuleArray{
&ibm.LogsRouterRouteRuleArgs{
Targets: ibm.LogsRouterRouteRuleTargetArray{
&ibm.LogsRouterRouteRuleTargetArgs{
Id: pulumi.String("string"),
},
},
Action: pulumi.String("string"),
InclusionFilters: ibm.LogsRouterRouteRuleInclusionFilterArray{
&ibm.LogsRouterRouteRuleInclusionFilterArgs{
Operand: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
LogsRouterRouteId: pulumi.String("string"),
ManagedBy: pulumi.String("string"),
Name: pulumi.String("string"),
})
var logsRouterRouteResource = new LogsRouterRoute("logsRouterRouteResource", LogsRouterRouteArgs.builder()
.rules(LogsRouterRouteRuleArgs.builder()
.targets(LogsRouterRouteRuleTargetArgs.builder()
.id("string")
.build())
.action("string")
.inclusionFilters(LogsRouterRouteRuleInclusionFilterArgs.builder()
.operand("string")
.operator("string")
.values("string")
.build())
.build())
.logsRouterRouteId("string")
.managedBy("string")
.name("string")
.build());
logs_router_route_resource = ibm.LogsRouterRoute("logsRouterRouteResource",
rules=[{
"targets": [{
"id": "string",
}],
"action": "string",
"inclusion_filters": [{
"operand": "string",
"operator": "string",
"values": ["string"],
}],
}],
logs_router_route_id="string",
managed_by="string",
name="string")
const logsRouterRouteResource = new ibm.LogsRouterRoute("logsRouterRouteResource", {
rules: [{
targets: [{
id: "string",
}],
action: "string",
inclusionFilters: [{
operand: "string",
operator: "string",
values: ["string"],
}],
}],
logsRouterRouteId: "string",
managedBy: "string",
name: "string",
});
type: ibm:LogsRouterRoute
properties:
logsRouterRouteId: string
managedBy: string
name: string
rules:
- action: string
inclusionFilters:
- operand: string
operator: string
values:
- string
targets:
- id: string
LogsRouterRoute 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 LogsRouterRoute resource accepts the following input properties:
- Rules
List<Logs
Router Route Rule> - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- Logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- Managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Rules
[]Logs
Router Route Rule Args - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- Logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- Managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
List<Logs
Router Route Rule> - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- logs
Router StringRoute Id - The unique identifier of the logs_router_route.
- managed
By String - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
Logs
Router Route Rule[] - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
Sequence[Logs
Router Route Rule Args] - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- logs_
router_ strroute_ id - The unique identifier of the logs_router_route.
- managed_
by str - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name str
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules List<Property Map>
- The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- logs
Router StringRoute Id - The unique identifier of the logs_router_route.
- managed
By String - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the LogsRouterRoute resource produces the following output properties:
- Created
At string - (String) The timestamp of the route creation time.
- Crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - (String) The timestamp of the route last updated time.
- Created
At string - (String) The timestamp of the route creation time.
- Crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - (String) The timestamp of the route last updated time.
- created
At String - (String) The timestamp of the route creation time.
- crn String
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - (String) The timestamp of the route last updated time.
- created
At string - (String) The timestamp of the route creation time.
- crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - (String) The timestamp of the route last updated time.
- created_
at str - (String) The timestamp of the route creation time.
- crn str
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - (String) The timestamp of the route last updated time.
- created
At String - (String) The timestamp of the route creation time.
- crn String
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - (String) The timestamp of the route last updated time.
Look up Existing LogsRouterRoute Resource
Get an existing LogsRouterRoute 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?: LogsRouterRouteState, opts?: CustomResourceOptions): LogsRouterRoute@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
crn: Optional[str] = None,
logs_router_route_id: Optional[str] = None,
managed_by: Optional[str] = None,
name: Optional[str] = None,
rules: Optional[Sequence[LogsRouterRouteRuleArgs]] = None,
updated_at: Optional[str] = None) -> LogsRouterRoutefunc GetLogsRouterRoute(ctx *Context, name string, id IDInput, state *LogsRouterRouteState, opts ...ResourceOption) (*LogsRouterRoute, error)public static LogsRouterRoute Get(string name, Input<string> id, LogsRouterRouteState? state, CustomResourceOptions? opts = null)public static LogsRouterRoute get(String name, Output<String> id, LogsRouterRouteState state, CustomResourceOptions options)resources: _: type: ibm:LogsRouterRoute 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.
- Created
At string - (String) The timestamp of the route creation time.
- Crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- Managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Rules
List<Logs
Router Route Rule> - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- Updated
At string - (String) The timestamp of the route last updated time.
- Created
At string - (String) The timestamp of the route creation time.
- Crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- Managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- Name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- Rules
[]Logs
Router Route Rule Args - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- Updated
At string - (String) The timestamp of the route last updated time.
- created
At String - (String) The timestamp of the route creation time.
- crn String
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- logs
Router StringRoute Id - The unique identifier of the logs_router_route.
- managed
By String - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
List<Logs
Router Route Rule> - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- updated
At String - (String) The timestamp of the route last updated time.
- created
At string - (String) The timestamp of the route creation time.
- crn string
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- logs
Router stringRoute Id - The unique identifier of the logs_router_route.
- managed
By string - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name string
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
Logs
Router Route Rule[] - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- updated
At string - (String) The timestamp of the route last updated time.
- created_
at str - (String) The timestamp of the route creation time.
- crn str
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- logs_
router_ strroute_ id - The unique identifier of the logs_router_route.
- managed_
by str - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name str
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules
Sequence[Logs
Router Route Rule Args] - The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- updated_
at str - (String) The timestamp of the route last updated time.
- created
At String - (String) The timestamp of the route creation time.
- crn String
- (String) The crn of the route resource.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- logs
Router StringRoute Id - The unique identifier of the logs_router_route.
- managed
By String - Present when the route is enterprise-managed (
managed_by: enterprise).- Constraints: Allowable values are:
enterprise,account.
- Constraints: Allowable values are:
- name String
- The name of the route.
- Constraints: The maximum length is
1000characters. The minimum length is1character.
- Constraints: The maximum length is
- rules List<Property Map>
- The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.
- Constraints: The maximum length is
10items. The minimum length is1item. Nested schema for rules:
- Constraints: The maximum length is
- updated
At String - (String) The timestamp of the route last updated time.
Supporting Types
LogsRouterRouteRule, LogsRouterRouteRuleArgs
- Targets
List<Logs
Router Route Rule Target> - The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- Action string
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- Inclusion
Filters List<LogsRouter Route Rule Inclusion Filter> - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
- Targets
[]Logs
Router Route Rule Target - The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- Action string
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- Inclusion
Filters []LogsRouter Route Rule Inclusion Filter - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
- targets
List<Logs
Router Route Rule Target> - The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- action String
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- inclusion
Filters List<LogsRouter Route Rule Inclusion Filter> - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
- targets
Logs
Router Route Rule Target[] - The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- action string
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- inclusion
Filters LogsRouter Route Rule Inclusion Filter[] - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
- targets
Sequence[Logs
Router Route Rule Target] - The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- action str
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- inclusion_
filters Sequence[LogsRouter Route Rule Inclusion Filter] - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
- targets List<Property Map>
- The target ID List. Platform logs will be sent to all targets listed in the rule. You can include targets from other regions.
- Constraints: The maximum length is
3items. The minimum length is0items. Nested schema for targets:
- Constraints: The maximum length is
- action String
- The action if the inclusion_filters matches, default is
sendaction.- Constraints: Allowable values are:
send,drop.
- Constraints: Allowable values are:
- inclusion
Filters List<Property Map> - A list of conditions to be satisfied for routing platform logs to pre-defined target.
- Constraints: The maximum length is
7items. The minimum length is0items. Nested schema for inclusion_filters:
- Constraints: The maximum length is
LogsRouterRouteRuleInclusionFilter, LogsRouterRouteRuleInclusionFilterArgs
- Operand string
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- Operator string
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- Values List<string>
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
- Operand string
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- Operator string
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- Values []string
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
- operand String
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- operator String
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- values List<String>
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
- operand string
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- operator string
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- values string[]
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
- operand str
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- operator str
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- values Sequence[str]
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
- operand String
- Part of CRN that can be compared with values. Currently only location is supported.
- Constraints: Allowable values are:
location.
- Constraints: Allowable values are:
- operator String
- The operation to be performed between operand and the provided values. 'is' to be used with one value and 'in' can support up to 20 values in the array.
- Constraints: Allowable values are:
is,in.
- Constraints: Allowable values are:
- values List<String>
- The provided string values of the operand to be compared with.
- Constraints: The maximum length is
20items. The minimum length is1item.
- Constraints: The maximum length is
LogsRouterRouteRuleTarget, LogsRouterRouteRuleTargetArgs
- Id string
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
- Id string
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
- id String
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
- id string
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
- id str
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
- id String
- The target uuid for a pre-defined platform logs router target.
- Constraints: The maximum length is
1000characters. The minimum length is3characters. The value must match regular expression/^[a-zA-Z0-9 \\-._:]+$/.
- Constraints: The maximum length is
Import
You can import the ibm_logs_router_route resource by using id. The UUID of the route resource.
Syntax
```sh $ pulumi import ibm:index/logsRouterRoute:LogsRouterRoute logs_router_route <id> ```
Example
$ pulumi import ibm:index/logsRouterRoute:LogsRouterRoute logs_router_route c3af557f-fb0e-4476-85c3-0889e7fe7bc4
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
