config

package
v1.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPVerbose = (strings.TrimSpace(os.Getenv("DYNATRACE_DEBUG")) == "true")

HTTPVerbose if set to `true` terraform-provider-dynatrace.log will contain request and response payload

Functions

func Credentials

func Credentials(m any) *settings.Credentials

func ProviderConfigure

func ProviderConfigure(ctx context.Context, d *schema.ResourceData) (any, diag.Diagnostics)

func ProviderConfigureGeneric

func ProviderConfigureGeneric(ctx context.Context, d Getter) (any, diag.Diagnostics)

Types

type Automation added in v1.35.0

type Automation struct {
	ClientID       string
	ClientSecret   string
	TokenURL       string
	EnvironmentURL string
}

type Getter

type Getter interface {
	Get(key string) any
}

type IAM

type IAM struct {
	ClientID     string
	AccountID    string
	ClientSecret string
}

type ProviderConfiguration

type ProviderConfiguration struct {
	EnvironmentURL    string
	DTenvURL          string
	DTNonConfigEnvURL string
	DTApiV2URL        string
	ClusterAPIV2URL   string
	ClusterAPIToken   string
	APIToken          string
	IAM               IAM
	Automation        Automation
}

ProviderConfiguration contains the initialized API clients to communicate with the Dynatrace API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL