1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. OneagentFeatures
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    This resource requires the API token scopes Read settings (settings.read) and Write settings (settings.write)

    Dynatrace Documentation

    • OneAgent Features - https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-oneagent/oneagent-features#configuration-via-web-ui

    • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:oneagent.features)

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.OneagentFeatures downloads the current configuration for OneAgent Features

    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";
    
    // ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
    const SENSOR_DOTNET_ASPNET = new dynatrace.OneagentFeatures("SENSOR_DOTNET_ASPNET", {
        enabled: true,
        instrumentation: true,
        key: "SENSOR_DOTNET_ASPNET",
        scope: "environment",
    });
    
    import pulumi
    import pulumiverse_dynatrace as dynatrace
    
    # ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
    senso_r__dotne_t__aspnet = dynatrace.OneagentFeatures("SENSOR_DOTNET_ASPNET",
        enabled=True,
        instrumentation=True,
        key="SENSOR_DOTNET_ASPNET",
        scope="environment")
    
    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 {
    		// ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
    		_, err := dynatrace.NewOneagentFeatures(ctx, "SENSOR_DOTNET_ASPNET", &dynatrace.OneagentFeaturesArgs{
    			Enabled:         pulumi.Bool(true),
    			Instrumentation: pulumi.Bool(true),
    			Key:             pulumi.String("SENSOR_DOTNET_ASPNET"),
    			Scope:           pulumi.String("environment"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        // ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
        var SENSOR_DOTNET_ASPNET = new Dynatrace.OneagentFeatures("SENSOR_DOTNET_ASPNET", new()
        {
            Enabled = true,
            Instrumentation = true,
            Key = "SENSOR_DOTNET_ASPNET",
            Scope = "environment",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.OneagentFeatures;
    import com.pulumi.dynatrace.OneagentFeaturesArgs;
    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) {
            // ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
            var sENSOR_DOTNET_ASPNET = new OneagentFeatures("SENSOR_DOTNET_ASPNET", OneagentFeaturesArgs.builder()
                .enabled(true)
                .instrumentation(true)
                .key("SENSOR_DOTNET_ASPNET")
                .scope("environment")
                .build());
    
        }
    }
    
    resources:
      # ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
      SENSOR_DOTNET_ASPNET:
        type: dynatrace:OneagentFeatures
        properties:
          enabled: true
          instrumentation: true
          key: SENSOR_DOTNET_ASPNET
          scope: environment
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    # ID vu9U3hXa3q0AAAABABlidWlsdGluOm9uZWFnZW50LmZlYXR1cmVzAAZ0ZW5hbnQABnRlbmFudAAkMWQzYjY4ODMtOWViZi0zMDljLTg1YjktNjg4OTcxYzE3NDM1vu9U3hXa3q0
    resource "dynatrace_oneagentfeatures" "SENSOR_DOTNET_ASPNET" {
      enabled         = true
      instrumentation = true
      key             = "SENSOR_DOTNET_ASPNET"
      scope           = "environment"
    }
    

    Create OneagentFeatures Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OneagentFeatures(name: string, args: OneagentFeaturesArgs, opts?: CustomResourceOptions);
    @overload
    def OneagentFeatures(resource_name: str,
                         args: OneagentFeaturesArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def OneagentFeatures(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         enabled: Optional[bool] = None,
                         key: Optional[str] = None,
                         forcible: Optional[bool] = None,
                         instrumentation: Optional[bool] = None,
                         scope: Optional[str] = None)
    func NewOneagentFeatures(ctx *Context, name string, args OneagentFeaturesArgs, opts ...ResourceOption) (*OneagentFeatures, error)
    public OneagentFeatures(string name, OneagentFeaturesArgs args, CustomResourceOptions? opts = null)
    public OneagentFeatures(String name, OneagentFeaturesArgs args)
    public OneagentFeatures(String name, OneagentFeaturesArgs args, CustomResourceOptions options)
    
    type: dynatrace:OneagentFeatures
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_oneagentfeatures" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OneagentFeaturesArgs
    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 OneagentFeaturesArgs
    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 OneagentFeaturesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OneagentFeaturesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OneagentFeaturesArgs
    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 oneagentFeaturesResource = new Dynatrace.OneagentFeatures("oneagentFeaturesResource", new()
    {
        Enabled = false,
        Key = "string",
        Forcible = false,
        Instrumentation = false,
        Scope = "string",
    });
    
    example, err := dynatrace.NewOneagentFeatures(ctx, "oneagentFeaturesResource", &dynatrace.OneagentFeaturesArgs{
    	Enabled:         pulumi.Bool(false),
    	Key:             pulumi.String("string"),
    	Forcible:        pulumi.Bool(false),
    	Instrumentation: pulumi.Bool(false),
    	Scope:           pulumi.String("string"),
    })
    
    resource "dynatrace_oneagentfeatures" "oneagentFeaturesResource" {
      enabled         = false
      key             = "string"
      forcible        = false
      instrumentation = false
      scope           = "string"
    }
    
    var oneagentFeaturesResource = new OneagentFeatures("oneagentFeaturesResource", OneagentFeaturesArgs.builder()
        .enabled(false)
        .key("string")
        .forcible(false)
        .instrumentation(false)
        .scope("string")
        .build());
    
    oneagent_features_resource = dynatrace.OneagentFeatures("oneagentFeaturesResource",
        enabled=False,
        key="string",
        forcible=False,
        instrumentation=False,
        scope="string")
    
    const oneagentFeaturesResource = new dynatrace.OneagentFeatures("oneagentFeaturesResource", {
        enabled: false,
        key: "string",
        forcible: false,
        instrumentation: false,
        scope: "string",
    });
    
    type: dynatrace:OneagentFeatures
    properties:
        enabled: false
        forcible: false
        instrumentation: false
        key: string
        scope: string
    

    OneagentFeatures 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 OneagentFeatures resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Key string
    Feature
    Forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    Instrumentation bool
    Instrumentation enabled (change needs a process restart)
    Scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Key string
    Feature
    Forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    Instrumentation bool
    Instrumentation enabled (change needs a process restart)
    Scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    key string
    Feature
    forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation bool
    Instrumentation enabled (change needs a process restart)
    scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    key String
    Feature
    forcible Boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation Boolean
    Instrumentation enabled (change needs a process restart)
    scope String
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    key string
    Feature
    forcible boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation boolean
    Instrumentation enabled (change needs a process restart)
    scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    key str
    Feature
    forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation bool
    Instrumentation enabled (change needs a process restart)
    scope str
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    key String
    Feature
    forcible Boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation Boolean
    Instrumentation enabled (change needs a process restart)
    scope String
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OneagentFeatures resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    Id string
    The provider-assigned unique ID for this managed resource.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    _restore_ string
    Used internally by the terraform provider. Do not populate
    id string
    The provider-assigned unique ID for this managed resource.
    _restore_ String
    Used internally by the terraform provider. Do not populate
    id String
    The provider-assigned unique ID for this managed resource.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    id string
    The provider-assigned unique ID for this managed resource.
    _restore_ str
    Used internally by the terraform provider. Do not populate
    id str
    The provider-assigned unique ID for this managed resource.
    _restore_ String
    Used internally by the terraform provider. Do not populate
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing OneagentFeatures Resource

    Get an existing OneagentFeatures 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?: OneagentFeaturesState, opts?: CustomResourceOptions): OneagentFeatures
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            _restore_: Optional[str] = None,
            enabled: Optional[bool] = None,
            forcible: Optional[bool] = None,
            instrumentation: Optional[bool] = None,
            key: Optional[str] = None,
            scope: Optional[str] = None) -> OneagentFeatures
    func GetOneagentFeatures(ctx *Context, name string, id IDInput, state *OneagentFeaturesState, opts ...ResourceOption) (*OneagentFeatures, error)
    public static OneagentFeatures Get(string name, Input<string> id, OneagentFeaturesState? state, CustomResourceOptions? opts = null)
    public static OneagentFeatures get(String name, Output<String> id, OneagentFeaturesState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:OneagentFeatures    get:      id: ${id}
    import {
      to = dynatrace_oneagentfeatures.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.
    The following state arguments are supported:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    Instrumentation bool
    Instrumentation enabled (change needs a process restart)
    Key string
    Feature
    Scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    Instrumentation bool
    Instrumentation enabled (change needs a process restart)
    Key string
    Feature
    Scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    _restore_ string
    Used internally by the terraform provider. Do not populate
    enabled bool
    This setting is enabled (true) or disabled (false)
    forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation bool
    Instrumentation enabled (change needs a process restart)
    key string
    Feature
    scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ String
    Used internally by the terraform provider. Do not populate
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    forcible Boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation Boolean
    Instrumentation enabled (change needs a process restart)
    key String
    Feature
    scope String
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ string
    Used internally by the terraform provider. Do not populate
    enabled boolean
    This setting is enabled (true) or disabled (false)
    forcible boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation boolean
    Instrumentation enabled (change needs a process restart)
    key string
    Feature
    scope string
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ str
    Used internally by the terraform provider. Do not populate
    enabled bool
    This setting is enabled (true) or disabled (false)
    forcible bool
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation bool
    Instrumentation enabled (change needs a process restart)
    key str
    Feature
    scope str
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
    _restore_ String
    Used internally by the terraform provider. Do not populate
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    forcible Boolean
    Activate this feature also in OneAgents only fulfilling the minimum Opt-In version
    instrumentation Boolean
    Instrumentation enabled (change needs a process restart)
    key String
    Feature
    scope String
    The scope of this setting (PROCESSGROUPINSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial