1. Registry
  2. Packages
  3. Dynatrace
  4. API Docs
  5. Document
Viewing docs for Dynatrace v0.46.0
published on Saturday, Nov 14, 2026 by Pulumiverse
dynatrace logo Dynatrace
Viewing docs for Dynatrace v0.46.0
published on Saturday, Nov 14, 2026 by Pulumiverse

    Dynatrace SaaS only

    To utilize this resource, please define the environment variables DT_CLIENT_ID, DT_CLIENT_SECRET, DT_ACCOUNT_ID with an OAuth client including the following permissions: Create and edit documents (document:documents:write), View documents (document:documents:read), Delete documents (document:documents:delete), and Delete documents from trash (document:trash.documents:delete).

    This resource is excluded by default in the export utility, please explicitly specify the resource to retrieve existing documents. Ready-made documents, created and automatically distributed by Dynatrace as examples and templates, are excluded and cannot be managed by Terraform.

    Dynatrace Documentation

    • Dynatrace Documents - https://########.apps.dynatrace.com/platform/swagger-ui/index.html?urls.primaryName=Document%20Service

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const _this = new dynatrace.Document("this", {
        type: "dashboard",
        name: "Example Dashboard",
        customId: "#name#",
        description: "Initial description",
        labels: [
            "monitoring",
            "cloud",
            "draft",
        ],
        isReshareable: true,
        content: JSON.stringify({
            version: 13,
            variables: [],
            tiles: {
                "0": {
                    type: "markdown",
                    title: "",
                    content: "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
                },
                "1": {
                    type: "data",
                    title: "",
                    query: "timeseries avg(dt.host.cpu.user)",
                    queryConfig: {
                        additionalFilters: {},
                        version: "4.3.1",
                        datatype: "metrics",
                        metricKey: "dt.host.cpu.user",
                        aggregation: "avg",
                        by: [],
                    },
                    subType: "dql-builder-metrics",
                    visualization: "lineChart",
                    visualizationSettings: {
                        thresholds: [],
                        chartSettings: {
                            gapPolicy: "connect",
                            circleChartSettings: {
                                groupingThresholdType: "relative",
                                groupingThresholdValue: 0,
                                valueType: "relative",
                            },
                            categoryOverrides: {},
                            fieldMapping: {
                                timestamp: "timeframe",
                                leftAxisValues: ["avg(dt.host.cpu.user)"],
                                leftAxisDimensions: [],
                                fields: [],
                                values: [],
                            },
                        },
                        singleValue: {
                            showLabel: true,
                            label: "",
                            prefixIcon: "",
                            autoscale: true,
                            alignment: "center",
                            colorThresholdTarget: "value",
                        },
                        table: {
                            rowDensity: "condensed",
                            enableSparklines: false,
                            hiddenColumns: [],
                            lineWrapIds: [],
                            columnWidths: {},
                        },
                    },
                },
                "2": {
                    type: "data",
                    title: "",
                    query: "timeseries avg(dt.host.memory.used)",
                    queryConfig: {
                        additionalFilters: {},
                        version: "4.3.1",
                        datatype: "metrics",
                        metricKey: "dt.host.memory.used",
                        aggregation: "avg",
                        by: [],
                    },
                    subType: "dql-builder-metrics",
                    visualization: "lineChart",
                    visualizationSettings: {
                        thresholds: [],
                        chartSettings: {
                            gapPolicy: "connect",
                            circleChartSettings: {
                                groupingThresholdType: "relative",
                                groupingThresholdValue: 0,
                                valueType: "relative",
                            },
                            categoryOverrides: {},
                            fieldMapping: {
                                timestamp: "timeframe",
                                leftAxisValues: ["avg(dt.host.memory.used)"],
                                leftAxisDimensions: [],
                                fields: [],
                                values: [],
                            },
                            categoricalBarChartSettings: {},
                        },
                        singleValue: {
                            showLabel: true,
                            label: "",
                            prefixIcon: "",
                            autoscale: true,
                            alignment: "center",
                            colorThresholdTarget: "value",
                        },
                        table: {
                            rowDensity: "condensed",
                            enableSparklines: false,
                            hiddenColumns: [],
                            lineWrapIds: [],
                            columnWidths: {},
                        },
                    },
                },
            },
            layouts: {
                "0": {
                    x: 0,
                    y: 0,
                    w: 24,
                    h: 14,
                },
                "1": {
                    x: 0,
                    y: 14,
                    w: 9,
                    h: 6,
                },
                "2": {
                    x: 15,
                    y: 14,
                    w: 9,
                    h: 6,
                },
            },
        }),
    });
    
    import pulumi
    import json
    import pulumiverse_dynatrace as dynatrace
    
    this = dynatrace.Document("this",
        type="dashboard",
        name="Example Dashboard",
        custom_id="#name#",
        description="Initial description",
        labels=[
            "monitoring",
            "cloud",
            "draft",
        ],
        is_reshareable=True,
        content=json.dumps({
            "version": 13,
            "variables": [],
            "tiles": {
                "0": {
                    "type": "markdown",
                    "title": "",
                    "content": "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
                },
                "1": {
                    "type": "data",
                    "title": "",
                    "query": "timeseries avg(dt.host.cpu.user)",
                    "queryConfig": {
                        "additionalFilters": {},
                        "version": "4.3.1",
                        "datatype": "metrics",
                        "metricKey": "dt.host.cpu.user",
                        "aggregation": "avg",
                        "by": [],
                    },
                    "subType": "dql-builder-metrics",
                    "visualization": "lineChart",
                    "visualizationSettings": {
                        "thresholds": [],
                        "chartSettings": {
                            "gapPolicy": "connect",
                            "circleChartSettings": {
                                "groupingThresholdType": "relative",
                                "groupingThresholdValue": 0,
                                "valueType": "relative",
                            },
                            "categoryOverrides": {},
                            "fieldMapping": {
                                "timestamp": "timeframe",
                                "leftAxisValues": ["avg(dt.host.cpu.user)"],
                                "leftAxisDimensions": [],
                                "fields": [],
                                "values": [],
                            },
                        },
                        "singleValue": {
                            "showLabel": True,
                            "label": "",
                            "prefixIcon": "",
                            "autoscale": True,
                            "alignment": "center",
                            "colorThresholdTarget": "value",
                        },
                        "table": {
                            "rowDensity": "condensed",
                            "enableSparklines": False,
                            "hiddenColumns": [],
                            "lineWrapIds": [],
                            "columnWidths": {},
                        },
                    },
                },
                "2": {
                    "type": "data",
                    "title": "",
                    "query": "timeseries avg(dt.host.memory.used)",
                    "queryConfig": {
                        "additionalFilters": {},
                        "version": "4.3.1",
                        "datatype": "metrics",
                        "metricKey": "dt.host.memory.used",
                        "aggregation": "avg",
                        "by": [],
                    },
                    "subType": "dql-builder-metrics",
                    "visualization": "lineChart",
                    "visualizationSettings": {
                        "thresholds": [],
                        "chartSettings": {
                            "gapPolicy": "connect",
                            "circleChartSettings": {
                                "groupingThresholdType": "relative",
                                "groupingThresholdValue": 0,
                                "valueType": "relative",
                            },
                            "categoryOverrides": {},
                            "fieldMapping": {
                                "timestamp": "timeframe",
                                "leftAxisValues": ["avg(dt.host.memory.used)"],
                                "leftAxisDimensions": [],
                                "fields": [],
                                "values": [],
                            },
                            "categoricalBarChartSettings": {},
                        },
                        "singleValue": {
                            "showLabel": True,
                            "label": "",
                            "prefixIcon": "",
                            "autoscale": True,
                            "alignment": "center",
                            "colorThresholdTarget": "value",
                        },
                        "table": {
                            "rowDensity": "condensed",
                            "enableSparklines": False,
                            "hiddenColumns": [],
                            "lineWrapIds": [],
                            "columnWidths": {},
                        },
                    },
                },
            },
            "layouts": {
                "0": {
                    "x": 0,
                    "y": 0,
                    "w": 24,
                    "h": 14,
                },
                "1": {
                    "x": 0,
                    "y": 14,
                    "w": 9,
                    "h": 6,
                },
                "2": {
                    "x": 15,
                    "y": 14,
                    "w": 9,
                    "h": 6,
                },
            },
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"version":   13,
    			"variables": []interface{}{},
    			"tiles": map[string]interface{}{
    				"0": map[string]string{
    					"type":    "markdown",
    					"title":   "",
    					"content": "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
    				},
    				"1": map[string]interface{}{
    					"type":  "data",
    					"title": "",
    					"query": "timeseries avg(dt.host.cpu.user)",
    					"queryConfig": map[string]interface{}{
    						"additionalFilters": map[string]interface{}{},
    						"version":           "4.3.1",
    						"datatype":          "metrics",
    						"metricKey":         "dt.host.cpu.user",
    						"aggregation":       "avg",
    						"by":                []interface{}{},
    					},
    					"subType":       "dql-builder-metrics",
    					"visualization": "lineChart",
    					"visualizationSettings": map[string]interface{}{
    						"thresholds": []interface{}{},
    						"chartSettings": map[string]interface{}{
    							"gapPolicy": "connect",
    							"circleChartSettings": map[string]interface{}{
    								"groupingThresholdType":  "relative",
    								"groupingThresholdValue": 0,
    								"valueType":              "relative",
    							},
    							"categoryOverrides": map[string]interface{}{},
    							"fieldMapping": map[string]interface{}{
    								"timestamp": "timeframe",
    								"leftAxisValues": []string{
    									"avg(dt.host.cpu.user)",
    								},
    								"leftAxisDimensions": []interface{}{},
    								"fields":             []interface{}{},
    								"values":             []interface{}{},
    							},
    						},
    						"singleValue": map[string]interface{}{
    							"showLabel":            true,
    							"label":                "",
    							"prefixIcon":           "",
    							"autoscale":            true,
    							"alignment":            "center",
    							"colorThresholdTarget": "value",
    						},
    						"table": map[string]interface{}{
    							"rowDensity":       "condensed",
    							"enableSparklines": false,
    							"hiddenColumns":    []interface{}{},
    							"lineWrapIds":      []interface{}{},
    							"columnWidths":     map[string]interface{}{},
    						},
    					},
    				},
    				"2": map[string]interface{}{
    					"type":  "data",
    					"title": "",
    					"query": "timeseries avg(dt.host.memory.used)",
    					"queryConfig": map[string]interface{}{
    						"additionalFilters": map[string]interface{}{},
    						"version":           "4.3.1",
    						"datatype":          "metrics",
    						"metricKey":         "dt.host.memory.used",
    						"aggregation":       "avg",
    						"by":                []interface{}{},
    					},
    					"subType":       "dql-builder-metrics",
    					"visualization": "lineChart",
    					"visualizationSettings": map[string]interface{}{
    						"thresholds": []interface{}{},
    						"chartSettings": map[string]interface{}{
    							"gapPolicy": "connect",
    							"circleChartSettings": map[string]interface{}{
    								"groupingThresholdType":  "relative",
    								"groupingThresholdValue": 0,
    								"valueType":              "relative",
    							},
    							"categoryOverrides": map[string]interface{}{},
    							"fieldMapping": map[string]interface{}{
    								"timestamp": "timeframe",
    								"leftAxisValues": []string{
    									"avg(dt.host.memory.used)",
    								},
    								"leftAxisDimensions": []interface{}{},
    								"fields":             []interface{}{},
    								"values":             []interface{}{},
    							},
    							"categoricalBarChartSettings": map[string]interface{}{},
    						},
    						"singleValue": map[string]interface{}{
    							"showLabel":            true,
    							"label":                "",
    							"prefixIcon":           "",
    							"autoscale":            true,
    							"alignment":            "center",
    							"colorThresholdTarget": "value",
    						},
    						"table": map[string]interface{}{
    							"rowDensity":       "condensed",
    							"enableSparklines": false,
    							"hiddenColumns":    []interface{}{},
    							"lineWrapIds":      []interface{}{},
    							"columnWidths":     map[string]interface{}{},
    						},
    					},
    				},
    			},
    			"layouts": map[string]map[string]int{
    				"0": map[string]int{
    					"x": 0,
    					"y": 0,
    					"w": 24,
    					"h": 14,
    				},
    				"1": map[string]int{
    					"x": 0,
    					"y": 14,
    					"w": 9,
    					"h": 6,
    				},
    				"2": map[string]int{
    					"x": 15,
    					"y": 14,
    					"w": 9,
    					"h": 6,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = dynatrace.NewDocument(ctx, "this", &dynatrace.DocumentArgs{
    			Type:        pulumi.String("dashboard"),
    			Name:        pulumi.String("Example Dashboard"),
    			CustomId:    pulumi.String("#name#"),
    			Description: pulumi.String("Initial description"),
    			Labels: pulumi.StringArray{
    				pulumi.String("monitoring"),
    				pulumi.String("cloud"),
    				pulumi.String("draft"),
    			},
    			IsReshareable: pulumi.Bool(true),
    			Content:       pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Dynatrace.Document("this", new()
        {
            Type = "dashboard",
            Name = "Example Dashboard",
            CustomId = "#name#",
            Description = "Initial description",
            Labels = new[]
            {
                "monitoring",
                "cloud",
                "draft",
            },
            IsReshareable = true,
            Content = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["version"] = 13,
                ["variables"] = new[]
                {
                },
                ["tiles"] = new Dictionary<string, object?>
                {
                    ["0"] = new Dictionary<string, object?>
                    {
                        ["type"] = "markdown",
                        ["title"] = "",
                        ["content"] = "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)",
                    },
                    ["1"] = new Dictionary<string, object?>
                    {
                        ["type"] = "data",
                        ["title"] = "",
                        ["query"] = "timeseries avg(dt.host.cpu.user)",
                        ["queryConfig"] = new Dictionary<string, object?>
                        {
                            ["additionalFilters"] = new Dictionary<string, object?>
                            {
                            },
                            ["version"] = "4.3.1",
                            ["datatype"] = "metrics",
                            ["metricKey"] = "dt.host.cpu.user",
                            ["aggregation"] = "avg",
                            ["by"] = new[]
                            {
                            },
                        },
                        ["subType"] = "dql-builder-metrics",
                        ["visualization"] = "lineChart",
                        ["visualizationSettings"] = new Dictionary<string, object?>
                        {
                            ["thresholds"] = new[]
                            {
                            },
                            ["chartSettings"] = new Dictionary<string, object?>
                            {
                                ["gapPolicy"] = "connect",
                                ["circleChartSettings"] = new Dictionary<string, object?>
                                {
                                    ["groupingThresholdType"] = "relative",
                                    ["groupingThresholdValue"] = 0,
                                    ["valueType"] = "relative",
                                },
                                ["categoryOverrides"] = new Dictionary<string, object?>
                                {
                                },
                                ["fieldMapping"] = new Dictionary<string, object?>
                                {
                                    ["timestamp"] = "timeframe",
                                    ["leftAxisValues"] = new[]
                                    {
                                        "avg(dt.host.cpu.user)",
                                    },
                                    ["leftAxisDimensions"] = new[]
                                    {
                                    },
                                    ["fields"] = new[]
                                    {
                                    },
                                    ["values"] = new[]
                                    {
                                    },
                                },
                            },
                            ["singleValue"] = new Dictionary<string, object?>
                            {
                                ["showLabel"] = true,
                                ["label"] = "",
                                ["prefixIcon"] = "",
                                ["autoscale"] = true,
                                ["alignment"] = "center",
                                ["colorThresholdTarget"] = "value",
                            },
                            ["table"] = new Dictionary<string, object?>
                            {
                                ["rowDensity"] = "condensed",
                                ["enableSparklines"] = false,
                                ["hiddenColumns"] = new[]
                                {
                                },
                                ["lineWrapIds"] = new[]
                                {
                                },
                                ["columnWidths"] = new Dictionary<string, object?>
                                {
                                },
                            },
                        },
                    },
                    ["2"] = new Dictionary<string, object?>
                    {
                        ["type"] = "data",
                        ["title"] = "",
                        ["query"] = "timeseries avg(dt.host.memory.used)",
                        ["queryConfig"] = new Dictionary<string, object?>
                        {
                            ["additionalFilters"] = new Dictionary<string, object?>
                            {
                            },
                            ["version"] = "4.3.1",
                            ["datatype"] = "metrics",
                            ["metricKey"] = "dt.host.memory.used",
                            ["aggregation"] = "avg",
                            ["by"] = new[]
                            {
                            },
                        },
                        ["subType"] = "dql-builder-metrics",
                        ["visualization"] = "lineChart",
                        ["visualizationSettings"] = new Dictionary<string, object?>
                        {
                            ["thresholds"] = new[]
                            {
                            },
                            ["chartSettings"] = new Dictionary<string, object?>
                            {
                                ["gapPolicy"] = "connect",
                                ["circleChartSettings"] = new Dictionary<string, object?>
                                {
                                    ["groupingThresholdType"] = "relative",
                                    ["groupingThresholdValue"] = 0,
                                    ["valueType"] = "relative",
                                },
                                ["categoryOverrides"] = new Dictionary<string, object?>
                                {
                                },
                                ["fieldMapping"] = new Dictionary<string, object?>
                                {
                                    ["timestamp"] = "timeframe",
                                    ["leftAxisValues"] = new[]
                                    {
                                        "avg(dt.host.memory.used)",
                                    },
                                    ["leftAxisDimensions"] = new[]
                                    {
                                    },
                                    ["fields"] = new[]
                                    {
                                    },
                                    ["values"] = new[]
                                    {
                                    },
                                },
                                ["categoricalBarChartSettings"] = new Dictionary<string, object?>
                                {
                                },
                            },
                            ["singleValue"] = new Dictionary<string, object?>
                            {
                                ["showLabel"] = true,
                                ["label"] = "",
                                ["prefixIcon"] = "",
                                ["autoscale"] = true,
                                ["alignment"] = "center",
                                ["colorThresholdTarget"] = "value",
                            },
                            ["table"] = new Dictionary<string, object?>
                            {
                                ["rowDensity"] = "condensed",
                                ["enableSparklines"] = false,
                                ["hiddenColumns"] = new[]
                                {
                                },
                                ["lineWrapIds"] = new[]
                                {
                                },
                                ["columnWidths"] = new Dictionary<string, object?>
                                {
                                },
                            },
                        },
                    },
                },
                ["layouts"] = new Dictionary<string, object?>
                {
                    ["0"] = new Dictionary<string, object?>
                    {
                        ["x"] = 0,
                        ["y"] = 0,
                        ["w"] = 24,
                        ["h"] = 14,
                    },
                    ["1"] = new Dictionary<string, object?>
                    {
                        ["x"] = 0,
                        ["y"] = 14,
                        ["w"] = 9,
                        ["h"] = 6,
                    },
                    ["2"] = new Dictionary<string, object?>
                    {
                        ["x"] = 15,
                        ["y"] = 14,
                        ["w"] = 9,
                        ["h"] = 6,
                    },
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.Document;
    import com.pulumi.dynatrace.DocumentArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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 this_ = new Document("this", DocumentArgs.builder()
                .type("dashboard")
                .name("Example Dashboard")
                .customId("#name#")
                .description("Initial description")
                .labels(            
                    "monitoring",
                    "cloud",
                    "draft")
                .isReshareable(true)
                .content(serializeJson(
                    jsonObject(
                        jsonProperty("version", 13),
                        jsonProperty("variables", jsonArray(
                        )),
                        jsonProperty("tiles", jsonObject(
                            jsonProperty("0", jsonObject(
                                jsonProperty("type", "markdown"),
                                jsonProperty("title", ""),
                                jsonProperty("content", "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)")
                            )),
                            jsonProperty("1", jsonObject(
                                jsonProperty("type", "data"),
                                jsonProperty("title", ""),
                                jsonProperty("query", "timeseries avg(dt.host.cpu.user)"),
                                jsonProperty("queryConfig", jsonObject(
                                    jsonProperty("additionalFilters", jsonObject(
    
                                    )),
                                    jsonProperty("version", "4.3.1"),
                                    jsonProperty("datatype", "metrics"),
                                    jsonProperty("metricKey", "dt.host.cpu.user"),
                                    jsonProperty("aggregation", "avg"),
                                    jsonProperty("by", jsonArray(
                                    ))
                                )),
                                jsonProperty("subType", "dql-builder-metrics"),
                                jsonProperty("visualization", "lineChart"),
                                jsonProperty("visualizationSettings", jsonObject(
                                    jsonProperty("thresholds", jsonArray(
                                    )),
                                    jsonProperty("chartSettings", jsonObject(
                                        jsonProperty("gapPolicy", "connect"),
                                        jsonProperty("circleChartSettings", jsonObject(
                                            jsonProperty("groupingThresholdType", "relative"),
                                            jsonProperty("groupingThresholdValue", 0),
                                            jsonProperty("valueType", "relative")
                                        )),
                                        jsonProperty("categoryOverrides", jsonObject(
    
                                        )),
                                        jsonProperty("fieldMapping", jsonObject(
                                            jsonProperty("timestamp", "timeframe"),
                                            jsonProperty("leftAxisValues", jsonArray("avg(dt.host.cpu.user)")),
                                            jsonProperty("leftAxisDimensions", jsonArray(
                                            )),
                                            jsonProperty("fields", jsonArray(
                                            )),
                                            jsonProperty("values", jsonArray(
                                            ))
                                        ))
                                    )),
                                    jsonProperty("singleValue", jsonObject(
                                        jsonProperty("showLabel", true),
                                        jsonProperty("label", ""),
                                        jsonProperty("prefixIcon", ""),
                                        jsonProperty("autoscale", true),
                                        jsonProperty("alignment", "center"),
                                        jsonProperty("colorThresholdTarget", "value")
                                    )),
                                    jsonProperty("table", jsonObject(
                                        jsonProperty("rowDensity", "condensed"),
                                        jsonProperty("enableSparklines", false),
                                        jsonProperty("hiddenColumns", jsonArray(
                                        )),
                                        jsonProperty("lineWrapIds", jsonArray(
                                        )),
                                        jsonProperty("columnWidths", jsonObject(
    
                                        ))
                                    ))
                                ))
                            )),
                            jsonProperty("2", jsonObject(
                                jsonProperty("type", "data"),
                                jsonProperty("title", ""),
                                jsonProperty("query", "timeseries avg(dt.host.memory.used)"),
                                jsonProperty("queryConfig", jsonObject(
                                    jsonProperty("additionalFilters", jsonObject(
    
                                    )),
                                    jsonProperty("version", "4.3.1"),
                                    jsonProperty("datatype", "metrics"),
                                    jsonProperty("metricKey", "dt.host.memory.used"),
                                    jsonProperty("aggregation", "avg"),
                                    jsonProperty("by", jsonArray(
                                    ))
                                )),
                                jsonProperty("subType", "dql-builder-metrics"),
                                jsonProperty("visualization", "lineChart"),
                                jsonProperty("visualizationSettings", jsonObject(
                                    jsonProperty("thresholds", jsonArray(
                                    )),
                                    jsonProperty("chartSettings", jsonObject(
                                        jsonProperty("gapPolicy", "connect"),
                                        jsonProperty("circleChartSettings", jsonObject(
                                            jsonProperty("groupingThresholdType", "relative"),
                                            jsonProperty("groupingThresholdValue", 0),
                                            jsonProperty("valueType", "relative")
                                        )),
                                        jsonProperty("categoryOverrides", jsonObject(
    
                                        )),
                                        jsonProperty("fieldMapping", jsonObject(
                                            jsonProperty("timestamp", "timeframe"),
                                            jsonProperty("leftAxisValues", jsonArray("avg(dt.host.memory.used)")),
                                            jsonProperty("leftAxisDimensions", jsonArray(
                                            )),
                                            jsonProperty("fields", jsonArray(
                                            )),
                                            jsonProperty("values", jsonArray(
                                            ))
                                        )),
                                        jsonProperty("categoricalBarChartSettings", jsonObject(
    
                                        ))
                                    )),
                                    jsonProperty("singleValue", jsonObject(
                                        jsonProperty("showLabel", true),
                                        jsonProperty("label", ""),
                                        jsonProperty("prefixIcon", ""),
                                        jsonProperty("autoscale", true),
                                        jsonProperty("alignment", "center"),
                                        jsonProperty("colorThresholdTarget", "value")
                                    )),
                                    jsonProperty("table", jsonObject(
                                        jsonProperty("rowDensity", "condensed"),
                                        jsonProperty("enableSparklines", false),
                                        jsonProperty("hiddenColumns", jsonArray(
                                        )),
                                        jsonProperty("lineWrapIds", jsonArray(
                                        )),
                                        jsonProperty("columnWidths", jsonObject(
    
                                        ))
                                    ))
                                ))
                            ))
                        )),
                        jsonProperty("layouts", jsonObject(
                            jsonProperty("0", jsonObject(
                                jsonProperty("x", 0),
                                jsonProperty("y", 0),
                                jsonProperty("w", 24),
                                jsonProperty("h", 14)
                            )),
                            jsonProperty("1", jsonObject(
                                jsonProperty("x", 0),
                                jsonProperty("y", 14),
                                jsonProperty("w", 9),
                                jsonProperty("h", 6)
                            )),
                            jsonProperty("2", jsonObject(
                                jsonProperty("x", 15),
                                jsonProperty("y", 14),
                                jsonProperty("w", 9),
                                jsonProperty("h", 6)
                            ))
                        ))
                    )))
                .build());
    
        }
    }
    
    resources:
      this:
        type: dynatrace:Document
        properties:
          type: dashboard
          name: Example Dashboard
          customId: '#name#'
          description: Initial description
          labels:
            - monitoring
            - cloud
            - draft
          isReshareable: true
          content:
            fn::toJSON:
              version: 13
              variables: []
              tiles:
                '0':
                  type: markdown
                  title: ""
                  content: '![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)'
                '1':
                  type: data
                  title: ""
                  query: timeseries avg(dt.host.cpu.user)
                  queryConfig:
                    additionalFilters: {}
                    version: 4.3.1
                    datatype: metrics
                    metricKey: dt.host.cpu.user
                    aggregation: avg
                    by: []
                  subType: dql-builder-metrics
                  visualization: lineChart
                  visualizationSettings:
                    thresholds: []
                    chartSettings:
                      gapPolicy: connect
                      circleChartSettings:
                        groupingThresholdType: relative
                        groupingThresholdValue: 0
                        valueType: relative
                      categoryOverrides: {}
                      fieldMapping:
                        timestamp: timeframe
                        leftAxisValues:
                          - avg(dt.host.cpu.user)
                        leftAxisDimensions: []
                        fields: []
                        values: []
                    singleValue:
                      showLabel: true
                      label: ""
                      prefixIcon: ""
                      autoscale: true
                      alignment: center
                      colorThresholdTarget: value
                    table:
                      rowDensity: condensed
                      enableSparklines: false
                      hiddenColumns: []
                      lineWrapIds: []
                      columnWidths: {}
                '2':
                  type: data
                  title: ""
                  query: timeseries avg(dt.host.memory.used)
                  queryConfig:
                    additionalFilters: {}
                    version: 4.3.1
                    datatype: metrics
                    metricKey: dt.host.memory.used
                    aggregation: avg
                    by: []
                  subType: dql-builder-metrics
                  visualization: lineChart
                  visualizationSettings:
                    thresholds: []
                    chartSettings:
                      gapPolicy: connect
                      circleChartSettings:
                        groupingThresholdType: relative
                        groupingThresholdValue: 0
                        valueType: relative
                      categoryOverrides: {}
                      fieldMapping:
                        timestamp: timeframe
                        leftAxisValues:
                          - avg(dt.host.memory.used)
                        leftAxisDimensions: []
                        fields: []
                        values: []
                      categoricalBarChartSettings: {}
                    singleValue:
                      showLabel: true
                      label: ""
                      prefixIcon: ""
                      autoscale: true
                      alignment: center
                      colorThresholdTarget: value
                    table:
                      rowDensity: condensed
                      enableSparklines: false
                      hiddenColumns: []
                      lineWrapIds: []
                      columnWidths: {}
              layouts:
                '0':
                  x: 0
                  y: 0
                  w: 24
                  h: 14
                '1':
                  x: 0
                  y: 14
                  w: 9
                  h: 6
                '2':
                  x: 15
                  y: 14
                  w: 9
                  h: 6
    
    terraform {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    resource "dynatrace_document" "this" {
      lifecycle {
        create_before_destroy = true
      }
      type           = "dashboard"
      name           = "Example Dashboard"
      custom_id      = "#name#"
      description    = "Initial description"
      labels         = ["monitoring", "cloud", "draft"]
      is_reshareable = true
      content = jsonencode({
        "version"   = 13
        "variables" = []
        "tiles" = {
          "0" = {
            "type"    = "markdown"
            "title"   = ""
            "content" = "![Image of a Dashboard](https://dt-cdn.net/wp-content/uploads/2022/09/pic1____Dashboard-Preset___PNG.png)"
          }
          "1" = {
            "type"  = "data"
            "title" = ""
            "query" = "timeseries avg(dt.host.cpu.user)"
            "queryConfig" = {
              "additionalFilters" = {}
              "version"           = "4.3.1"
              "datatype"          = "metrics"
              "metricKey"         = "dt.host.cpu.user"
              "aggregation"       = "avg"
              "by"                = []
            }
            "subType"       = "dql-builder-metrics"
            "visualization" = "lineChart"
            "visualizationSettings" = {
              "thresholds" = []
              "chartSettings" = {
                "gapPolicy" = "connect"
                "circleChartSettings" = {
                  "groupingThresholdType"  = "relative"
                  "groupingThresholdValue" = 0
                  "valueType"              = "relative"
                }
                "categoryOverrides" = {}
                "fieldMapping" = {
                  "timestamp"          = "timeframe"
                  "leftAxisValues"     = ["avg(dt.host.cpu.user)"]
                  "leftAxisDimensions" = []
                  "fields"             = []
                  "values"             = []
                }
              }
              "singleValue" = {
                "showLabel"            = true
                "label"                = ""
                "prefixIcon"           = ""
                "autoscale"            = true
                "alignment"            = "center"
                "colorThresholdTarget" = "value"
              }
              "table" = {
                "rowDensity"       = "condensed"
                "enableSparklines" = false
                "hiddenColumns"    = []
                "lineWrapIds"      = []
                "columnWidths"     = {}
              }
            }
          }
          "2" = {
            "type"  = "data"
            "title" = ""
            "query" = "timeseries avg(dt.host.memory.used)"
            "queryConfig" = {
              "additionalFilters" = {}
              "version"           = "4.3.1"
              "datatype"          = "metrics"
              "metricKey"         = "dt.host.memory.used"
              "aggregation"       = "avg"
              "by"                = []
            }
            "subType"       = "dql-builder-metrics"
            "visualization" = "lineChart"
            "visualizationSettings" = {
              "thresholds" = []
              "chartSettings" = {
                "gapPolicy" = "connect"
                "circleChartSettings" = {
                  "groupingThresholdType"  = "relative"
                  "groupingThresholdValue" = 0
                  "valueType"              = "relative"
                }
                "categoryOverrides" = {}
                "fieldMapping" = {
                  "timestamp"          = "timeframe"
                  "leftAxisValues"     = ["avg(dt.host.memory.used)"]
                  "leftAxisDimensions" = []
                  "fields"             = []
                  "values"             = []
                }
                "categoricalBarChartSettings" = {}
              }
              "singleValue" = {
                "showLabel"            = true
                "label"                = ""
                "prefixIcon"           = ""
                "autoscale"            = true
                "alignment"            = "center"
                "colorThresholdTarget" = "value"
              }
              "table" = {
                "rowDensity"       = "condensed"
                "enableSparklines" = false
                "hiddenColumns"    = []
                "lineWrapIds"      = []
                "columnWidths"     = {}
              }
            }
          }
        }
        "layouts" = {
          "0" = {
            "x" = 0
            "y" = 0
            "w" = 24
            "h" = 14
          }
          "1" = {
            "x" = 0
            "y" = 14
            "w" = 9
            "h" = 6
          }
          "2" = {
            "x" = 15
            "y" = 14
            "w" = 9
            "h" = 6
          }
        }
      })
    }
    

    Create Document Resource

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

    Constructor syntax

    new Document(name: string, args: DocumentArgs, opts?: CustomResourceOptions);
    @overload
    def Document(resource_name: str,
                 args: DocumentArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Document(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content: Optional[str] = None,
                 type: Optional[str] = None,
                 custom_id: Optional[str] = None,
                 description: Optional[str] = None,
                 is_reshareable: Optional[bool] = None,
                 labels: Optional[Sequence[str]] = None,
                 name: Optional[str] = None,
                 private: Optional[bool] = None)
    func NewDocument(ctx *Context, name string, args DocumentArgs, opts ...ResourceOption) (*Document, error)
    public Document(string name, DocumentArgs args, CustomResourceOptions? opts = null)
    public Document(String name, DocumentArgs args)
    public Document(String name, DocumentArgs args, CustomResourceOptions options)
    
    type: dynatrace:Document
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_document" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DocumentArgs
    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 DocumentArgs
    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 DocumentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DocumentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DocumentArgs
    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 documentResource = new Dynatrace.Document("documentResource", new()
    {
        Content = "string",
        Type = "string",
        CustomId = "string",
        Description = "string",
        IsReshareable = false,
        Labels = new[]
        {
            "string",
        },
        Name = "string",
        Private = false,
    });
    
    example, err := dynatrace.NewDocument(ctx, "documentResource", &dynatrace.DocumentArgs{
    	Content:       pulumi.String("string"),
    	Type:          pulumi.String("string"),
    	CustomId:      pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	IsReshareable: pulumi.Bool(false),
    	Labels: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	Private: pulumi.Bool(false),
    })
    
    resource "dynatrace_document" "documentResource" {
      lifecycle {
        create_before_destroy = true
      }
      content        = "string"
      type           = "string"
      custom_id      = "string"
      description    = "string"
      is_reshareable = false
      labels         = ["string"]
      name           = "string"
      private        = false
    }
    
    var documentResource = new Document("documentResource", DocumentArgs.builder()
        .content("string")
        .type("string")
        .customId("string")
        .description("string")
        .isReshareable(false)
        .labels("string")
        .name("string")
        .private_(false)
        .build());
    
    document_resource = dynatrace.Document("documentResource",
        content="string",
        type="string",
        custom_id="string",
        description="string",
        is_reshareable=False,
        labels=["string"],
        name="string",
        private=False)
    
    const documentResource = new dynatrace.Document("documentResource", {
        content: "string",
        type: "string",
        customId: "string",
        description: "string",
        isReshareable: false,
        labels: ["string"],
        name: "string",
        "private": false,
    });
    
    type: dynatrace:Document
    properties:
        content: string
        customId: string
        description: string
        isReshareable: false
        labels:
            - string
        name: string
        private: false
        type: string
    

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

    Content string
    Document content as JSON
    Type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    CustomId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    Description string
    A short description of the document
    IsReshareable bool
    Specifies whether recipients of a direct share can share the document further
    Labels List<string>
    Labels attached to the document
    Name string
    The name/name of the document
    Private bool
    Specifies whether the document is private or readable by everybody
    Content string
    Document content as JSON
    Type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    CustomId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    Description string
    A short description of the document
    IsReshareable bool
    Specifies whether recipients of a direct share can share the document further
    Labels []string
    Labels attached to the document
    Name string
    The name/name of the document
    Private bool
    Specifies whether the document is private or readable by everybody
    content string
    Document content as JSON
    type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    custom_id string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description string
    A short description of the document
    is_reshareable bool
    Specifies whether recipients of a direct share can share the document further
    labels list(string)
    Labels attached to the document
    name string
    The name/name of the document
    private bool
    Specifies whether the document is private or readable by everybody
    content String
    Document content as JSON
    type String
    Type of the document. Possible Values are dashboard, launchpad and notebook
    customId String
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description String
    A short description of the document
    isReshareable Boolean
    Specifies whether recipients of a direct share can share the document further
    labels List<String>
    Labels attached to the document
    name String
    The name/name of the document
    private_ Boolean
    Specifies whether the document is private or readable by everybody
    content string
    Document content as JSON
    type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    customId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description string
    A short description of the document
    isReshareable boolean
    Specifies whether recipients of a direct share can share the document further
    labels string[]
    Labels attached to the document
    name string
    The name/name of the document
    private boolean
    Specifies whether the document is private or readable by everybody
    content str
    Document content as JSON
    type str
    Type of the document. Possible Values are dashboard, launchpad and notebook
    custom_id str
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description str
    A short description of the document
    is_reshareable bool
    Specifies whether recipients of a direct share can share the document further
    labels Sequence[str]
    Labels attached to the document
    name str
    The name/name of the document
    private bool
    Specifies whether the document is private or readable by everybody
    content String
    Document content as JSON
    type String
    Type of the document. Possible Values are dashboard, launchpad and notebook
    customId String
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description String
    A short description of the document
    isReshareable Boolean
    Specifies whether recipients of a direct share can share the document further
    labels List<String>
    Labels attached to the document
    name String
    The name/name of the document
    private Boolean
    Specifies whether the document is private or readable by everybody

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    The ID of the owner of this document
    Version int
    The version of the document
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    The ID of the owner of this document
    Version int
    The version of the document
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    The ID of the owner of this document
    version number
    The version of the document
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    The ID of the owner of this document
    version Integer
    The version of the document
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    The ID of the owner of this document
    version number
    The version of the document
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    The ID of the owner of this document
    version int
    The version of the document
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    The ID of the owner of this document
    version Number
    The version of the document

    Look up Existing Document Resource

    Get an existing Document 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?: DocumentState, opts?: CustomResourceOptions): Document
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content: Optional[str] = None,
            custom_id: Optional[str] = None,
            description: Optional[str] = None,
            is_reshareable: Optional[bool] = None,
            labels: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            private: Optional[bool] = None,
            type: Optional[str] = None,
            version: Optional[int] = None) -> Document
    func GetDocument(ctx *Context, name string, id IDInput, state *DocumentState, opts ...ResourceOption) (*Document, error)
    public static Document Get(string name, Input<string> id, DocumentState? state, CustomResourceOptions? opts = null)
    public static Document get(String name, Output<String> id, DocumentState state, CustomResourceOptions options)
    resources:  existingDocument:    type: dynatrace:Document    get:      id: ${id}
    import {
      to = dynatrace_document.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state DocumentState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state DocumentState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state DocumentState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state DocumentState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Content string
    Document content as JSON
    CustomId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    Description string
    A short description of the document
    IsReshareable bool
    Specifies whether recipients of a direct share can share the document further
    Labels List<string>
    Labels attached to the document
    Name string
    The name/name of the document
    Owner string
    The ID of the owner of this document
    Private bool
    Specifies whether the document is private or readable by everybody
    Type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    Version int
    The version of the document
    Content string
    Document content as JSON
    CustomId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    Description string
    A short description of the document
    IsReshareable bool
    Specifies whether recipients of a direct share can share the document further
    Labels []string
    Labels attached to the document
    Name string
    The name/name of the document
    Owner string
    The ID of the owner of this document
    Private bool
    Specifies whether the document is private or readable by everybody
    Type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    Version int
    The version of the document
    content string
    Document content as JSON
    custom_id string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description string
    A short description of the document
    is_reshareable bool
    Specifies whether recipients of a direct share can share the document further
    labels list(string)
    Labels attached to the document
    name string
    The name/name of the document
    owner string
    The ID of the owner of this document
    private bool
    Specifies whether the document is private or readable by everybody
    type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    version number
    The version of the document
    content String
    Document content as JSON
    customId String
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description String
    A short description of the document
    isReshareable Boolean
    Specifies whether recipients of a direct share can share the document further
    labels List<String>
    Labels attached to the document
    name String
    The name/name of the document
    owner String
    The ID of the owner of this document
    private_ Boolean
    Specifies whether the document is private or readable by everybody
    type String
    Type of the document. Possible Values are dashboard, launchpad and notebook
    version Integer
    The version of the document
    content string
    Document content as JSON
    customId string
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description string
    A short description of the document
    isReshareable boolean
    Specifies whether recipients of a direct share can share the document further
    labels string[]
    Labels attached to the document
    name string
    The name/name of the document
    owner string
    The ID of the owner of this document
    private boolean
    Specifies whether the document is private or readable by everybody
    type string
    Type of the document. Possible Values are dashboard, launchpad and notebook
    version number
    The version of the document
    content str
    Document content as JSON
    custom_id str
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description str
    A short description of the document
    is_reshareable bool
    Specifies whether recipients of a direct share can share the document further
    labels Sequence[str]
    Labels attached to the document
    name str
    The name/name of the document
    owner str
    The ID of the owner of this document
    private bool
    Specifies whether the document is private or readable by everybody
    type str
    Type of the document. Possible Values are dashboard, launchpad and notebook
    version int
    The version of the document
    content String
    Document content as JSON
    customId String
    If provided, this will be the id of the document. If not provided, a system-generated id is used.
    description String
    A short description of the document
    isReshareable Boolean
    Specifies whether recipients of a direct share can share the document further
    labels List<String>
    Labels attached to the document
    name String
    The name/name of the document
    owner String
    The ID of the owner of this document
    private Boolean
    Specifies whether the document is private or readable by everybody
    type String
    Type of the document. Possible Values are dashboard, launchpad and notebook
    version Number
    The version of the document

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo Dynatrace
    Viewing docs for Dynatrace v0.46.0
    published on Saturday, Nov 14, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial