published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
This resource requires the API token scopes Read settings (
settings.read) and Write settings (settings.write)
Dynatrace Documentation
Developer Observability - https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/developer-observability
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:devobs.sensitive.data.masking)
Export Example Usage
terraform-provider-dynatrace -export dynatrace.DevobsDataMaskingdownloads existing Developer Observability sensitive data masking configuration
The full documentation of the export feature is available here.
Create DevobsDataMasking Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DevobsDataMasking(name: string, args: DevobsDataMaskingArgs, opts?: CustomResourceOptions);@overload
def DevobsDataMasking(resource_name: str,
args: DevobsDataMaskingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DevobsDataMasking(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
replacement_type: Optional[str] = None,
rule_name: Optional[str] = None,
rule_type: Optional[str] = None,
comparison_type: Optional[str] = None,
insert_after: Optional[str] = None,
replacement_pattern: Optional[str] = None,
rule_regex: Optional[str] = None,
rule_var_name: Optional[str] = None)func NewDevobsDataMasking(ctx *Context, name string, args DevobsDataMaskingArgs, opts ...ResourceOption) (*DevobsDataMasking, error)public DevobsDataMasking(string name, DevobsDataMaskingArgs args, CustomResourceOptions? opts = null)
public DevobsDataMasking(String name, DevobsDataMaskingArgs args)
public DevobsDataMasking(String name, DevobsDataMaskingArgs args, CustomResourceOptions options)
type: dynatrace:DevobsDataMasking
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_devobsdatamasking" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DevobsDataMaskingArgs
- 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 DevobsDataMaskingArgs
- 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 DevobsDataMaskingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DevobsDataMaskingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DevobsDataMaskingArgs
- 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 devobsDataMaskingResource = new Dynatrace.DevobsDataMasking("devobsDataMaskingResource", new()
{
Enabled = false,
ReplacementType = "string",
RuleName = "string",
RuleType = "string",
ComparisonType = "string",
InsertAfter = "string",
ReplacementPattern = "string",
RuleRegex = "string",
RuleVarName = "string",
});
example, err := dynatrace.NewDevobsDataMasking(ctx, "devobsDataMaskingResource", &dynatrace.DevobsDataMaskingArgs{
Enabled: pulumi.Bool(false),
ReplacementType: pulumi.String("string"),
RuleName: pulumi.String("string"),
RuleType: pulumi.String("string"),
ComparisonType: pulumi.String("string"),
InsertAfter: pulumi.String("string"),
ReplacementPattern: pulumi.String("string"),
RuleRegex: pulumi.String("string"),
RuleVarName: pulumi.String("string"),
})
resource "dynatrace_devobsdatamasking" "devobsDataMaskingResource" {
enabled = false
replacement_type = "string"
rule_name = "string"
rule_type = "string"
comparison_type = "string"
insert_after = "string"
replacement_pattern = "string"
rule_regex = "string"
rule_var_name = "string"
}
var devobsDataMaskingResource = new DevobsDataMasking("devobsDataMaskingResource", DevobsDataMaskingArgs.builder()
.enabled(false)
.replacementType("string")
.ruleName("string")
.ruleType("string")
.comparisonType("string")
.insertAfter("string")
.replacementPattern("string")
.ruleRegex("string")
.ruleVarName("string")
.build());
devobs_data_masking_resource = dynatrace.DevobsDataMasking("devobsDataMaskingResource",
enabled=False,
replacement_type="string",
rule_name="string",
rule_type="string",
comparison_type="string",
insert_after="string",
replacement_pattern="string",
rule_regex="string",
rule_var_name="string")
const devobsDataMaskingResource = new dynatrace.DevobsDataMasking("devobsDataMaskingResource", {
enabled: false,
replacementType: "string",
ruleName: "string",
ruleType: "string",
comparisonType: "string",
insertAfter: "string",
replacementPattern: "string",
ruleRegex: "string",
ruleVarName: "string",
});
type: dynatrace:DevobsDataMasking
properties:
comparisonType: string
enabled: false
insertAfter: string
replacementPattern: string
replacementType: string
ruleName: string
ruleRegex: string
ruleType: string
ruleVarName: string
DevobsDataMasking 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 DevobsDataMasking resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - Rule
Name string - Rule Name
- Rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - Comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Replacement
Pattern string - Replacement Pattern
- Rule
Regex string - Regex Pattern
- Rule
Var stringName - Variable Name
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - Rule
Name string - Rule Name
- Rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - Comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Replacement
Pattern string - Replacement Pattern
- Rule
Regex string - Regex Pattern
- Rule
Var stringName - Variable Name
- enabled bool
- This setting is enabled (
true) or disabled (false) - replacement_
type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule_
name string - Rule Name
- rule_
type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - comparison_
type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - insert_
after string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement_
pattern string - Replacement Pattern
- rule_
regex string - Regex Pattern
- rule_
var_ stringname - Variable Name
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - replacement
Type String - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name String - Rule Name
- rule
Type String - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - comparison
Type String - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern String - Replacement Pattern
- rule
Regex String - Regex Pattern
- rule
Var StringName - Variable Name
- enabled boolean
- This setting is enabled (
true) or disabled (false) - replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name string - Rule Name
- rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern string - Replacement Pattern
- rule
Regex string - Regex Pattern
- rule
Var stringName - Variable Name
- enabled bool
- This setting is enabled (
true) or disabled (false) - replacement_
type str - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule_
name str - Rule Name
- rule_
type str - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - comparison_
type str - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement_
pattern str - Replacement Pattern
- rule_
regex str - Regex Pattern
- rule_
var_ strname - Variable Name
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - replacement
Type String - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name String - Rule Name
- rule
Type String - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - comparison
Type String - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern String - Replacement Pattern
- rule
Regex String - Regex Pattern
- rule
Var StringName - Variable Name
Outputs
All input properties are implicitly available as output properties. Additionally, the DevobsDataMasking resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DevobsDataMasking Resource
Get an existing DevobsDataMasking 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?: DevobsDataMaskingState, opts?: CustomResourceOptions): DevobsDataMasking@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comparison_type: Optional[str] = None,
enabled: Optional[bool] = None,
insert_after: Optional[str] = None,
replacement_pattern: Optional[str] = None,
replacement_type: Optional[str] = None,
rule_name: Optional[str] = None,
rule_regex: Optional[str] = None,
rule_type: Optional[str] = None,
rule_var_name: Optional[str] = None) -> DevobsDataMaskingfunc GetDevobsDataMasking(ctx *Context, name string, id IDInput, state *DevobsDataMaskingState, opts ...ResourceOption) (*DevobsDataMasking, error)public static DevobsDataMasking Get(string name, Input<string> id, DevobsDataMaskingState? state, CustomResourceOptions? opts = null)public static DevobsDataMasking get(String name, Output<String> id, DevobsDataMaskingState state, CustomResourceOptions options)resources: _: type: dynatrace:DevobsDataMasking get: id: ${id}import {
to = dynatrace_devobsdatamasking.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - Enabled bool
- This setting is enabled (
true) or disabled (false) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Replacement
Pattern string - Replacement Pattern
- Replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - Rule
Name string - Rule Name
- Rule
Regex string - Regex Pattern
- Rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - Rule
Var stringName - Variable Name
- Comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - Enabled bool
- This setting is enabled (
true) or disabled (false) - Insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- Replacement
Pattern string - Replacement Pattern
- Replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - Rule
Name string - Rule Name
- Rule
Regex string - Regex Pattern
- Rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - Rule
Var stringName - Variable Name
- comparison_
type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - enabled bool
- This setting is enabled (
true) or disabled (false) - insert_
after string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement_
pattern string - Replacement Pattern
- replacement_
type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule_
name string - Rule Name
- rule_
regex string - Regex Pattern
- rule_
type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - rule_
var_ stringname - Variable Name
- comparison
Type String - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - enabled Boolean
- This setting is enabled (
true) or disabled (false) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern String - Replacement Pattern
- replacement
Type String - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name String - Rule Name
- rule
Regex String - Regex Pattern
- rule
Type String - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - rule
Var StringName - Variable Name
- comparison
Type string - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - enabled boolean
- This setting is enabled (
true) or disabled (false) - insert
After string - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern string - Replacement Pattern
- replacement
Type string - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name string - Rule Name
- rule
Regex string - Regex Pattern
- rule
Type string - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - rule
Var stringName - Variable Name
- comparison_
type str - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - enabled bool
- This setting is enabled (
true) or disabled (false) - insert_
after str - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement_
pattern str - Replacement Pattern
- replacement_
type str - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule_
name str - Rule Name
- rule_
regex str - Regex Pattern
- rule_
type str - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - rule_
var_ strname - Variable Name
- comparison
Type String - Select how the variable name should be matched. Possible values:
CONTAINS,ENDS_WITH,EQUALS,STARTS_WITH - enabled Boolean
- This setting is enabled (
true) or disabled (false) - insert
After String - Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
- replacement
Pattern String - Replacement Pattern
- replacement
Type String - Choose how the sensitive data should be replaced. Possible values:
SHA256,STRING - rule
Name String - Rule Name
- rule
Regex String - Regex Pattern
- rule
Type String - Choose whether to redact by variable name or regex. Possible values:
REGEX,VAR_NAME - rule
Var StringName - Variable Name
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumiverse