published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
The provider type for the dynatrace package. By default, resources use package-wide configuration
settings, however an explicit Provider instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args?: ProviderArgs, opts?: CustomResourceOptions);@overload
def Provider(resource_name: str,
args: Optional[ProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
automation_client_id: Optional[str] = None,
automation_client_secret: Optional[str] = None,
automation_env_url: Optional[str] = None,
automation_token_url: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
dt_api_token: Optional[str] = None,
dt_cluster_api_token: Optional[str] = None,
dt_cluster_url: Optional[str] = None,
dt_env_url: Optional[str] = None,
iam_account_id: Optional[str] = None,
iam_client_id: Optional[str] = None,
iam_client_secret: Optional[str] = None,
iam_endpoint_url: Optional[str] = None,
iam_token_url: Optional[str] = None,
platform_token: Optional[str] = None)func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:dynatrace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumi_dynatrace" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ProviderArgs
- 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 ProviderArgs
- 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 ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider 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 Provider resource accepts the following input properties:
- Account
Id string - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - Automation
Client stringId - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - Automation
Client stringSecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - Automation
Env stringUrl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - Automation
Token stringUrl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - Client
Id string - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - Client
Secret string - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - Dt
Api stringToken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - Dt
Cluster stringApi Token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - Dt
Cluster stringUrl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - Dt
Env stringUrl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - Iam
Account stringId - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - Iam
Client stringId - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - Iam
Client stringSecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - Iam
Endpoint stringUrl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - Iam
Token stringUrl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - Platform
Token string - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- Account
Id string - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - Automation
Client stringId - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - Automation
Client stringSecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - Automation
Env stringUrl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - Automation
Token stringUrl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - Client
Id string - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - Client
Secret string - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - Dt
Api stringToken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - Dt
Cluster stringApi Token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - Dt
Cluster stringUrl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - Dt
Env stringUrl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - Iam
Account stringId - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - Iam
Client stringId - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - Iam
Client stringSecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - Iam
Endpoint stringUrl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - Iam
Token stringUrl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - Platform
Token string - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- account_
id string - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - automation_
client_ stringid - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - automation_
client_ stringsecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - automation_
env_ stringurl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - automation_
token_ stringurl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - client_
id string - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - client_
secret string - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - dt_
api_ stringtoken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - dt_
cluster_ stringapi_ token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - dt_
cluster_ stringurl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - dt_
env_ stringurl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - iam_
account_ stringid - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - iam_
client_ stringid - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - iam_
client_ stringsecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - iam_
endpoint_ stringurl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - iam_
token_ stringurl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - platform_
token string - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- account
Id String - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - automation
Client StringId - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - automation
Client StringSecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - automation
Env StringUrl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - automation
Token StringUrl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - client
Id String - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - client
Secret String - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - dt
Api StringToken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - dt
Cluster StringApi Token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - dt
Cluster StringUrl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - dt
Env StringUrl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - iam
Account StringId - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - iam
Client StringId - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - iam
Client StringSecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - iam
Endpoint StringUrl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - iam
Token StringUrl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - platform
Token String - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- account
Id string - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - automation
Client stringId - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - automation
Client stringSecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - automation
Env stringUrl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - automation
Token stringUrl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - client
Id string - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - client
Secret string - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - dt
Api stringToken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - dt
Cluster stringApi Token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - dt
Cluster stringUrl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - dt
Env stringUrl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - iam
Account stringId - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - iam
Client stringId - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - iam
Client stringSecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - iam
Endpoint stringUrl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - iam
Token stringUrl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - platform
Token string - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- account_
id str - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - automation_
client_ strid - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - automation_
client_ strsecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - automation_
env_ strurl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - automation_
token_ strurl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - client_
id str - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - client_
secret str - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - dt_
api_ strtoken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - dt_
cluster_ strapi_ token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - dt_
cluster_ strurl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - dt_
env_ strurl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - iam_
account_ strid - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - iam_
client_ strid - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - iam_
client_ strsecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - iam_
endpoint_ strurl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - iam_
token_ strurl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - platform_
token str - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
- account
Id String - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for
iamAccountId. - automation
Client StringId - The client ID of an OAuth client used for platform APIs. Falls back to
clientIdif not specified. - automation
Client StringSecret - The client secret of an OAuth client used for platform APIs. Falls back to
clientSecretif not specified. - automation
Env StringUrl - The URL of the Dynatrace platform environment (
https://#####.apps.dynatrace.com). Falls back todtEnvUrlif not specified. - automation
Token StringUrl - The token URL for obtaining access tokens via OAuth for the platform APIs. Default:
https://sso.dynatrace.com/sso/oauth2/token. - client
Id String - The client ID of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientIdandautomationClientId. - client
Secret String - The client secret of an OAuth client used for platform APIs. Also serves as a fallback for
iamClientSecretandautomationClientSecret. - dt
Api StringToken - The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables:
DYNATRACE_API_TOKEN,DT_API_TOKEN - dt
Cluster StringApi Token - The API token for Dynatrace Managed cluster APIs. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_API_TOKEN,DT_CLUSTER_API_TOKEN - dt
Cluster StringUrl - The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables:
DYNATRACE_CLUSTER_URL,DT_CLUSTER_URL - dt
Env StringUrl - The URL of the Dynatrace environment (e.g.
https://#####.live.dynatrace.comorhttps://#####.apps.dynatrace.com). It can also be sourced from the following environment variables:DYNATRACE_ENV_URL,DT_ENV_URL - iam
Account StringId - The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to
accountIdif not specified. - iam
Client StringId - The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to
clientIdif not specified. - iam
Client StringSecret - The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to
clientSecretif not specified. - iam
Endpoint StringUrl - The endpoint URL for the IAM (Account Management) API. Default:
https://api.dynatrace.com. - iam
Token StringUrl - The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default:
https://sso.dynatrace.com/sso/oauth2/token. - platform
Token String - The Dynatrace platform token used for platform APIs. When specified, it is used in preference to
clientId,clientSecret,automationClientId,automationClientSecret,automationTokenUrl, andautomationEnvUrlfor platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider 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.
Provider Resource Methods
TerraformConfig Method
This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
Using TerraformConfig
terraformConfig(): Output<Provider.TerraformConfigResult>def terraform_config() -> Output[Provider.Terraform_configResult]func (r *Provider) TerraformConfig() (ProviderTerraformConfigResultOutput, error)public Output<Provider.TerraformConfigResult> TerraformConfig()TerraformConfig Result
- Result Dictionary<string, object>
- Result map[string]interface{}
- result map(any)
- result Map<String,Object>
- result {[key: string]: any}
- result Mapping[str, Any]
- result Map<Any>
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