dynatrace.Document
Explore with Pulumi AI
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
) and Delete documents (document:documents:delete
).
This resource is excluded by default in the export utility, please explicitly specify the resource to retrieve existing configuration.
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",
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",
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]interface{}{
"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]interface{}{
"0": map[string]interface{}{
"x": 0,
"y": 0,
"w": 24,
"h": 14,
},
"1": map[string]interface{}{
"x": 0,
"y": 14,
"w": 9,
"h": 6,
},
"2": map[string]interface{}{
"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"),
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",
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.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new Document("this", DocumentArgs.builder()
.type("dashboard")
.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
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
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,
actor: Optional[str] = None,
name: Optional[str] = None,
owner: 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.
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",
Actor = "string",
Name = "string",
Owner = "string",
Private = false,
});
example, err := dynatrace.NewDocument(ctx, "documentResource", &dynatrace.DocumentArgs{
Content: pulumi.String("string"),
Type: pulumi.String("string"),
Actor: pulumi.String("string"),
Name: pulumi.String("string"),
Owner: pulumi.String("string"),
Private: pulumi.Bool(false),
})
var documentResource = new Document("documentResource", DocumentArgs.builder()
.content("string")
.type("string")
.actor("string")
.name("string")
.owner("string")
.private_(false)
.build());
document_resource = dynatrace.Document("documentResource",
content="string",
type="string",
actor="string",
name="string",
owner="string",
private=False)
const documentResource = new dynatrace.Document("documentResource", {
content: "string",
type: "string",
actor: "string",
name: "string",
owner: "string",
"private": false,
});
type: dynatrace:Document
properties:
actor: string
content: string
name: string
owner: 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
andnotebook
- Actor string
- The user context the executions of the document will happen with
- 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
- Content string
- Document content as JSON
- Type string
- Type of the document. Possible Values are
dashboard
,launchpad
andnotebook
- Actor string
- The user context the executions of the document will happen with
- 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
- content String
- Document content as JSON
- type String
- Type of the document. Possible Values are
dashboard
,launchpad
andnotebook
- actor String
- The user context the executions of the document will happen with
- 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
- content string
- Document content as JSON
- type string
- Type of the document. Possible Values are
dashboard
,launchpad
andnotebook
- actor string
- The user context the executions of the document will happen with
- 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
- content str
- Document content as JSON
- type str
- Type of the document. Possible Values are
dashboard
,launchpad
andnotebook
- actor str
- The user context the executions of the document will happen with
- 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
- content String
- Document content as JSON
- type String
- Type of the document. Possible Values are
dashboard
,launchpad
andnotebook
- actor String
- The user context the executions of the document will happen with
- 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
Outputs
All input properties are implicitly available as output properties. Additionally, the Document resource produces the following output properties:
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,
actor: Optional[str] = None,
content: Optional[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)
Resource lookup is not supported in YAML
- 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.
- Actor string
- The user context the executions of the document will happen with
- Content string
- Document content as JSON
- 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
andnotebook
- Version int
- The version of the document
- Actor string
- The user context the executions of the document will happen with
- Content string
- Document content as JSON
- 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
andnotebook
- Version int
- The version of the document
- actor String
- The user context the executions of the document will happen with
- content String
- Document content as JSON
- 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
andnotebook
- version Integer
- The version of the document
- actor string
- The user context the executions of the document will happen with
- content string
- Document content as JSON
- 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
andnotebook
- version number
- The version of the document
- actor str
- The user context the executions of the document will happen with
- content str
- Document content as JSON
- 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
andnotebook
- version int
- The version of the document
- actor String
- The user context the executions of the document will happen with
- content String
- Document content as JSON
- 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
andnotebook
- 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.