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

    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:

    AccountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for iamAccountId.
    AutomationClientId string
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    AutomationClientSecret string
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    AutomationEnvUrl string
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    AutomationTokenUrl string
    The token URL for obtaining access tokens via OAuth for the platform APIs. Default: https://sso.dynatrace.com/sso/oauth2/token.
    ClientId string
    The client ID of an OAuth client used for platform APIs. Also serves as a fallback for iamClientId and automationClientId.
    ClientSecret string
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    DtApiToken string
    The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables: DYNATRACE_API_TOKEN, DT_API_TOKEN
    DtClusterApiToken string
    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
    DtClusterUrl string
    The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables: DYNATRACE_CLUSTER_URL, DT_CLUSTER_URL
    DtEnvUrl string
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    IamAccountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    IamClientId string
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    IamClientSecret string
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    IamEndpointUrl string
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    IamTokenUrl string
    The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default: https://sso.dynatrace.com/sso/oauth2/token.
    PlatformToken string
    The Dynatrace platform token used for platform APIs. When specified, it is used in preference to clientId, clientSecret, automationClientId, automationClientSecret, automationTokenUrl, and automationEnvUrl for platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
    AccountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for iamAccountId.
    AutomationClientId string
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    AutomationClientSecret string
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    AutomationEnvUrl string
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    AutomationTokenUrl string
    The token URL for obtaining access tokens via OAuth for the platform APIs. Default: https://sso.dynatrace.com/sso/oauth2/token.
    ClientId string
    The client ID of an OAuth client used for platform APIs. Also serves as a fallback for iamClientId and automationClientId.
    ClientSecret string
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    DtApiToken string
    The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables: DYNATRACE_API_TOKEN, DT_API_TOKEN
    DtClusterApiToken string
    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
    DtClusterUrl string
    The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables: DYNATRACE_CLUSTER_URL, DT_CLUSTER_URL
    DtEnvUrl string
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    IamAccountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    IamClientId string
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    IamClientSecret string
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    IamEndpointUrl string
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    IamTokenUrl string
    The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default: https://sso.dynatrace.com/sso/oauth2/token.
    PlatformToken string
    The Dynatrace platform token used for platform APIs. When specified, it is used in preference to clientId, clientSecret, automationClientId, automationClientSecret, automationTokenUrl, and automationEnvUrl for 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_id string
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    automation_client_secret string
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    automation_env_url string
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    automation_token_url string
    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 iamClientId and automationClientId.
    client_secret string
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    dt_api_token string
    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_api_token string
    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_url string
    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_url string
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    iam_account_id string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    iam_client_id string
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    iam_client_secret string
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    iam_endpoint_url string
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    iam_token_url string
    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, and automationEnvUrl for platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
    accountId String
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for iamAccountId.
    automationClientId String
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    automationClientSecret String
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    automationEnvUrl String
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    automationTokenUrl String
    The token URL for obtaining access tokens via OAuth for the platform APIs. Default: https://sso.dynatrace.com/sso/oauth2/token.
    clientId String
    The client ID of an OAuth client used for platform APIs. Also serves as a fallback for iamClientId and automationClientId.
    clientSecret String
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    dtApiToken String
    The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables: DYNATRACE_API_TOKEN, DT_API_TOKEN
    dtClusterApiToken String
    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
    dtClusterUrl String
    The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables: DYNATRACE_CLUSTER_URL, DT_CLUSTER_URL
    dtEnvUrl String
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    iamAccountId String
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    iamClientId String
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    iamClientSecret String
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    iamEndpointUrl String
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    iamTokenUrl String
    The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default: https://sso.dynatrace.com/sso/oauth2/token.
    platformToken String
    The Dynatrace platform token used for platform APIs. When specified, it is used in preference to clientId, clientSecret, automationClientId, automationClientSecret, automationTokenUrl, and automationEnvUrl for platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
    accountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for iamAccountId.
    automationClientId string
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    automationClientSecret string
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    automationEnvUrl string
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    automationTokenUrl string
    The token URL for obtaining access tokens via OAuth for the platform APIs. Default: https://sso.dynatrace.com/sso/oauth2/token.
    clientId string
    The client ID of an OAuth client used for platform APIs. Also serves as a fallback for iamClientId and automationClientId.
    clientSecret string
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    dtApiToken string
    The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables: DYNATRACE_API_TOKEN, DT_API_TOKEN
    dtClusterApiToken string
    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
    dtClusterUrl string
    The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables: DYNATRACE_CLUSTER_URL, DT_CLUSTER_URL
    dtEnvUrl string
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    iamAccountId string
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    iamClientId string
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    iamClientSecret string
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    iamEndpointUrl string
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    iamTokenUrl string
    The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default: https://sso.dynatrace.com/sso/oauth2/token.
    platformToken string
    The Dynatrace platform token used for platform APIs. When specified, it is used in preference to clientId, clientSecret, automationClientId, automationClientSecret, automationTokenUrl, and automationEnvUrl for 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_id str
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    automation_client_secret str
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    automation_env_url str
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    automation_token_url str
    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 iamClientId and automationClientId.
    client_secret str
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    dt_api_token str
    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_api_token str
    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_url str
    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_url str
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    iam_account_id str
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    iam_client_id str
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    iam_client_secret str
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    iam_endpoint_url str
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    iam_token_url str
    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, and automationEnvUrl for platform requests. Platform tokens can't be used for IAM (Account Management) or classic resources.
    accountId String
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Also serves as a fallback for iamAccountId.
    automationClientId String
    The client ID of an OAuth client used for platform APIs. Falls back to clientId if not specified.
    automationClientSecret String
    The client secret of an OAuth client used for platform APIs. Falls back to clientSecret if not specified.
    automationEnvUrl String
    The URL of the Dynatrace platform environment (https://#####.apps.dynatrace.com). Falls back to dtEnvUrl if not specified.
    automationTokenUrl String
    The token URL for obtaining access tokens via OAuth for the platform APIs. Default: https://sso.dynatrace.com/sso/oauth2/token.
    clientId String
    The client ID of an OAuth client used for platform APIs. Also serves as a fallback for iamClientId and automationClientId.
    clientSecret String
    The client secret of an OAuth client used for platform APIs. Also serves as a fallback for iamClientSecret and automationClientSecret.
    dtApiToken String
    The API token for classic Dynatrace APIs. It can also be sourced from the following environment variables: DYNATRACE_API_TOKEN, DT_API_TOKEN
    dtClusterApiToken String
    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
    dtClusterUrl String
    The URL of the Dynatrace Managed cluster. It can also be sourced from the following environment variables: DYNATRACE_CLUSTER_URL, DT_CLUSTER_URL
    dtEnvUrl String
    The URL of the Dynatrace environment (e.g. https://#####.live.dynatrace.com or https://#####.apps.dynatrace.com). It can also be sourced from the following environment variables: DYNATRACE_ENV_URL, DT_ENV_URL
    iamAccountId String
    The Dynatrace account ID (UUID). Required for IAM (Account Management) resources. Falls back to accountId if not specified.
    iamClientId String
    The client ID of an OAuth client used for the IAM (Account Management) API. Falls back to clientId if not specified.
    iamClientSecret String
    The client secret of an OAuth client used for the IAM (Account Management) API. Falls back to clientSecret if not specified.
    iamEndpointUrl String
    The endpoint URL for the IAM (Account Management) API. Default: https://api.dynatrace.com.
    iamTokenUrl String
    The token URL for obtaining access tokens via OAuth for the IAM (Account Management) API. Default: https://sso.dynatrace.com/sso/oauth2/token.
    platformToken String
    The Dynatrace platform token used for platform APIs. When specified, it is used in preference to clientId, clientSecret, automationClientId, automationClientSecret, automationTokenUrl, and automationEnvUrl for 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 dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial