tokens

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

Create expects the configuration within the given ResourceData and sends it to the Dynatrace Server in order to create that resource

func Delete

func Delete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

Delete the configuration

func Read

func Read(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

Read queries the Dynatrace Server for the configuration

func Resource

func Resource() *schema.Resource

Resource produces terraform resource definition for Management Zones

func Update

func Update(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

Update expects the configuration within the given ResourceData and send them to the Dynatrace Server in order to update that resource

Types

type APIToken

type APIToken struct {
	ID                  *string  `json:"id"`
	Name                string   `json:"name"`
	Enabled             bool     `json:"enabled"`
	PersonalAccessToken bool     `json:"personalAccessToken"`
	ExpirationDate      string   `json:"expirationDate,omitempty"`
	Scopes              []string `json:"scopes"`
	Token               *string  `json:"token,omitempty"`
}

func (*APIToken) MarshalHCL

func (me *APIToken) MarshalHCL() (map[string]interface{}, error)

func (*APIToken) Schema

func (me *APIToken) Schema() map[string]*hcl.Schema

func (*APIToken) UnmarshalHCL

func (me *APIToken) UnmarshalHCL(decoder hcl.Decoder) error

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service TODO: documentation

func NewService

func NewService(m interface{}) *Service

func NewServiceRest

func NewServiceRest(baseURL string, token string) *Service

NewService TODO: documentation "https://#######.live.dynatrace.com/api/config/v1", "###########"

func (*Service) Create

func (cs *Service) Create(token *APIToken) (*APIToken, error)

Create TODO: documentation

func (*Service) Delete

func (cs *Service) Delete(id string) error

Delete TODO: documentation

func (*Service) Get

func (cs *Service) Get(id string) (*APIToken, error)

Get TODO: documentation

func (*Service) Update

func (cs *Service) Update(token *APIToken) error

Update TODO: documentation

Jump to

Keyboard shortcuts

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