published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
Deploying an OpenPipeline routing configuration will overwrite the existing one of the same kind, causing any manual changes made in the web UI or other routing configurations managed by Terraform or Monaco to be lost. Ensure all routing configurations of the same kind are defined within a single Terraform or Monaco configuration to prevent data loss.
This resource requires the API token scopes Read settings (
settings.read) and Write settings (settings.write)
This resource requires the OAuth scopes Read settings (
settings:objects:read) and Write settings (settings:objects:write)
Dynatrace Documentation
- OpenPipeline - https://docs.dynatrace.com/docs/platform/openpipeline
Export Example Usage
terraform-provider-dynatrace -export dynatrace.OpenpipelineV2SpansRoutingdownloads all existing OpenPipeline definitions for spans routing
The full documentation of the export feature is available here.
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const routing = new dynatrace.OpenpipelineV2SpansRouting("routing", {routingEntries: {
routingEntries: [{
enabled: true,
pipelineType: "builtin",
builtinPipelineId: "default",
matcher: "not matchesPhrase(record.title, \"Warning\")",
description: "Default route",
}],
}});
import pulumi
import pulumiverse_dynatrace as dynatrace
routing = dynatrace.OpenpipelineV2SpansRouting("routing", routing_entries={
"routing_entries": [{
"enabled": True,
"pipeline_type": "builtin",
"builtin_pipeline_id": "default",
"matcher": "not matchesPhrase(record.title, \"Warning\")",
"description": "Default route",
}],
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dynatrace.NewOpenpipelineV2SpansRouting(ctx, "routing", &dynatrace.OpenpipelineV2SpansRoutingArgs{
RoutingEntries: &dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesArgs{
RoutingEntries: dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArray{
&dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs{
Enabled: pulumi.Bool(true),
PipelineType: pulumi.String("builtin"),
BuiltinPipelineId: pulumi.String("default"),
Matcher: pulumi.String("not matchesPhrase(record.title, \"Warning\")"),
Description: pulumi.String("Default route"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var routing = new Dynatrace.OpenpipelineV2SpansRouting("routing", new()
{
RoutingEntries = new Dynatrace.Inputs.OpenpipelineV2SpansRoutingRoutingEntriesArgs
{
RoutingEntries = new[]
{
new Dynatrace.Inputs.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs
{
Enabled = true,
PipelineType = "builtin",
BuiltinPipelineId = "default",
Matcher = "not matchesPhrase(record.title, \"Warning\")",
Description = "Default route",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.OpenpipelineV2SpansRouting;
import com.pulumi.dynatrace.OpenpipelineV2SpansRoutingArgs;
import com.pulumi.dynatrace.inputs.OpenpipelineV2SpansRoutingRoutingEntriesArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 routing = new OpenpipelineV2SpansRouting("routing", OpenpipelineV2SpansRoutingArgs.builder()
.routingEntries(OpenpipelineV2SpansRoutingRoutingEntriesArgs.builder()
.routingEntries(OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs.builder()
.enabled(true)
.pipelineType("builtin")
.builtinPipelineId("default")
.matcher("not matchesPhrase(record.title, \"Warning\")")
.description("Default route")
.build())
.build())
.build());
}
}
resources:
routing:
type: dynatrace:OpenpipelineV2SpansRouting
properties:
routingEntries:
routingEntries:
- enabled: true
pipelineType: builtin
builtinPipelineId: default
matcher: not matchesPhrase(record.title, "Warning")
description: Default route
pulumi {
required_providers {
dynatrace = {
source = "pulumi/dynatrace"
}
}
}
resource "dynatrace_openpipelinev2spansrouting" "routing" {
routing_entries = {
routing_entries = [{
"enabled" = true
"pipelineType" = "builtin"
"builtinPipelineId" = "default"
"matcher" = "not matchesPhrase(record.title, \"Warning\")"
"description" = "Default route"
}]
}
}
Create OpenpipelineV2SpansRouting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OpenpipelineV2SpansRouting(name: string, args?: OpenpipelineV2SpansRoutingArgs, opts?: CustomResourceOptions);@overload
def OpenpipelineV2SpansRouting(resource_name: str,
args: Optional[OpenpipelineV2SpansRoutingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def OpenpipelineV2SpansRouting(resource_name: str,
opts: Optional[ResourceOptions] = None,
routing_entries: Optional[OpenpipelineV2SpansRoutingRoutingEntriesArgs] = None)func NewOpenpipelineV2SpansRouting(ctx *Context, name string, args *OpenpipelineV2SpansRoutingArgs, opts ...ResourceOption) (*OpenpipelineV2SpansRouting, error)public OpenpipelineV2SpansRouting(string name, OpenpipelineV2SpansRoutingArgs? args = null, CustomResourceOptions? opts = null)
public OpenpipelineV2SpansRouting(String name, OpenpipelineV2SpansRoutingArgs args)
public OpenpipelineV2SpansRouting(String name, OpenpipelineV2SpansRoutingArgs args, CustomResourceOptions options)
type: dynatrace:OpenpipelineV2SpansRouting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_openpipelinev2spansrouting" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OpenpipelineV2SpansRoutingArgs
- 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 OpenpipelineV2SpansRoutingArgs
- 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 OpenpipelineV2SpansRoutingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OpenpipelineV2SpansRoutingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OpenpipelineV2SpansRoutingArgs
- 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 openpipelineV2SpansRoutingResource = new Dynatrace.OpenpipelineV2SpansRouting("openpipelineV2SpansRoutingResource", new()
{
RoutingEntries = new Dynatrace.Inputs.OpenpipelineV2SpansRoutingRoutingEntriesArgs
{
RoutingEntries = new[]
{
new Dynatrace.Inputs.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs
{
Description = "string",
Enabled = false,
Matcher = "string",
PipelineType = "string",
BuiltinPipelineId = "string",
PipelineId = "string",
},
},
},
});
example, err := dynatrace.NewOpenpipelineV2SpansRouting(ctx, "openpipelineV2SpansRoutingResource", &dynatrace.OpenpipelineV2SpansRoutingArgs{
RoutingEntries: &dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesArgs{
RoutingEntries: dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArray{
&dynatrace.OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs{
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Matcher: pulumi.String("string"),
PipelineType: pulumi.String("string"),
BuiltinPipelineId: pulumi.String("string"),
PipelineId: pulumi.String("string"),
},
},
},
})
resource "dynatrace_openpipelinev2spansrouting" "openpipelineV2SpansRoutingResource" {
routing_entries = {
routing_entries = [{
"description" = "string"
"enabled" = false
"matcher" = "string"
"pipelineType" = "string"
"builtinPipelineId" = "string"
"pipelineId" = "string"
}]
}
}
var openpipelineV2SpansRoutingResource = new OpenpipelineV2SpansRouting("openpipelineV2SpansRoutingResource", OpenpipelineV2SpansRoutingArgs.builder()
.routingEntries(OpenpipelineV2SpansRoutingRoutingEntriesArgs.builder()
.routingEntries(OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs.builder()
.description("string")
.enabled(false)
.matcher("string")
.pipelineType("string")
.builtinPipelineId("string")
.pipelineId("string")
.build())
.build())
.build());
openpipeline_v2_spans_routing_resource = dynatrace.OpenpipelineV2SpansRouting("openpipelineV2SpansRoutingResource", routing_entries={
"routing_entries": [{
"description": "string",
"enabled": False,
"matcher": "string",
"pipeline_type": "string",
"builtin_pipeline_id": "string",
"pipeline_id": "string",
}],
})
const openpipelineV2SpansRoutingResource = new dynatrace.OpenpipelineV2SpansRouting("openpipelineV2SpansRoutingResource", {routingEntries: {
routingEntries: [{
description: "string",
enabled: false,
matcher: "string",
pipelineType: "string",
builtinPipelineId: "string",
pipelineId: "string",
}],
}});
type: dynatrace:OpenpipelineV2SpansRouting
properties:
routingEntries:
routingEntries:
- builtinPipelineId: string
description: string
enabled: false
matcher: string
pipelineId: string
pipelineType: string
OpenpipelineV2SpansRouting 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 OpenpipelineV2SpansRouting resource accepts the following input properties:
- Routing
Entries Pulumiverse.Dynatrace. Inputs. Openpipeline V2Spans Routing Routing Entries - Routing for pipelines
- Routing
Entries OpenpipelineV2Spans Routing Routing Entries Args - Routing for pipelines
- routing_
entries object - Routing for pipelines
- routing
Entries OpenpipelineV2Spans Routing Routing Entries - Routing for pipelines
- routing
Entries OpenpipelineV2Spans Routing Routing Entries - Routing for pipelines
- routing_
entries OpenpipelineV2Spans Routing Routing Entries Args - Routing for pipelines
- routing
Entries Property Map - Routing for pipelines
Outputs
All input properties are implicitly available as output properties. Additionally, the OpenpipelineV2SpansRouting 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 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 OpenpipelineV2SpansRouting Resource
Get an existing OpenpipelineV2SpansRouting 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?: OpenpipelineV2SpansRoutingState, opts?: CustomResourceOptions): OpenpipelineV2SpansRouting@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
routing_entries: Optional[OpenpipelineV2SpansRoutingRoutingEntriesArgs] = None) -> OpenpipelineV2SpansRoutingfunc GetOpenpipelineV2SpansRouting(ctx *Context, name string, id IDInput, state *OpenpipelineV2SpansRoutingState, opts ...ResourceOption) (*OpenpipelineV2SpansRouting, error)public static OpenpipelineV2SpansRouting Get(string name, Input<string> id, OpenpipelineV2SpansRoutingState? state, CustomResourceOptions? opts = null)public static OpenpipelineV2SpansRouting get(String name, Output<String> id, OpenpipelineV2SpansRoutingState state, CustomResourceOptions options)resources: _: type: dynatrace:OpenpipelineV2SpansRouting get: id: ${id}import {
to = dynatrace_openpipelinev2spansrouting.example
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.
- Routing
Entries Pulumiverse.Dynatrace. Inputs. Openpipeline V2Spans Routing Routing Entries - Routing for pipelines
- Routing
Entries OpenpipelineV2Spans Routing Routing Entries Args - Routing for pipelines
- routing_
entries object - Routing for pipelines
- routing
Entries OpenpipelineV2Spans Routing Routing Entries - Routing for pipelines
- routing
Entries OpenpipelineV2Spans Routing Routing Entries - Routing for pipelines
- routing_
entries OpenpipelineV2Spans Routing Routing Entries Args - Routing for pipelines
- routing
Entries Property Map - Routing for pipelines
Supporting Types
OpenpipelineV2SpansRoutingRoutingEntries, OpenpipelineV2SpansRoutingRoutingEntriesArgs
OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntry, OpenpipelineV2SpansRoutingRoutingEntriesRoutingEntryArgs
- Description string
- No documentation available
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Matcher string
- Query which determines whether the record should be routed to the target pipeline of this rule.
- Pipeline
Type string - Pipeline Type. Possible values:
builtin,custom - Builtin
Pipeline stringId - Builtin Pipeline ID
- Pipeline
Id string - Pipeline ID
- Description string
- No documentation available
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Matcher string
- Query which determines whether the record should be routed to the target pipeline of this rule.
- Pipeline
Type string - Pipeline Type. Possible values:
builtin,custom - Builtin
Pipeline stringId - Builtin Pipeline ID
- Pipeline
Id string - Pipeline ID
- description string
- No documentation available
- enabled bool
- This setting is enabled (
true) or disabled (false) - matcher string
- Query which determines whether the record should be routed to the target pipeline of this rule.
- pipeline_
type string - Pipeline Type. Possible values:
builtin,custom - builtin_
pipeline_ stringid - Builtin Pipeline ID
- pipeline_
id string - Pipeline ID
- description String
- No documentation available
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - matcher String
- Query which determines whether the record should be routed to the target pipeline of this rule.
- pipeline
Type String - Pipeline Type. Possible values:
builtin,custom - builtin
Pipeline StringId - Builtin Pipeline ID
- pipeline
Id String - Pipeline ID
- description string
- No documentation available
- enabled boolean
- This setting is enabled (
true) or disabled (false) - matcher string
- Query which determines whether the record should be routed to the target pipeline of this rule.
- pipeline
Type string - Pipeline Type. Possible values:
builtin,custom - builtin
Pipeline stringId - Builtin Pipeline ID
- pipeline
Id string - Pipeline ID
- description str
- No documentation available
- enabled bool
- This setting is enabled (
true) or disabled (false) - matcher str
- Query which determines whether the record should be routed to the target pipeline of this rule.
- pipeline_
type str - Pipeline Type. Possible values:
builtin,custom - builtin_
pipeline_ strid - Builtin Pipeline ID
- pipeline_
id str - Pipeline ID
- description String
- No documentation available
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - matcher String
- Query which determines whether the record should be routed to the target pipeline of this rule.
- pipeline
Type String - Pipeline Type. Possible values:
builtin,custom - builtin
Pipeline StringId - Builtin Pipeline ID
- pipeline
Id String - Pipeline ID
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumiverse