serviceuser

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles service users through the Account Management API.

func NewHandler

func NewHandler(client *httpclient.Client, accountUUID string) *Handler

NewHandler creates a service-user handler for an account.

func (*Handler) Create

func (h *Handler) Create(ctx context.Context, req ServiceUserCreate) (*ServiceUser, error)

Create creates a service user and returns its identity metadata.

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, userUUID string) error

Delete deletes a service user by UUID.

func (*Handler) List

func (h *Handler) List(ctx context.Context) ([]ServiceUser, error)

List returns all service users in the account.

type ServiceUser

type ServiceUser struct {
	UID         string `json:"uid"`
	Email       string `json:"email"`
	Name        string `json:"name"`
	Surname     string `json:"surname"`
	Description string `json:"description"`
	CreatedAt   string `json:"createdAt"`
	GroupUUID   string `json:"groupUuid,omitempty"`
}

ServiceUser represents a Dynatrace account service user.

type ServiceUserCreate

type ServiceUserCreate struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

ServiceUserCreate is the request body for creating a service user.

type ServiceUserListResponse

type ServiceUserListResponse struct {
	Results     []ServiceUser `json:"results"`
	NextPageKey string        `json:"nextPageKey"`
	TotalCount  int           `json:"totalCount"`
}

ServiceUserListResponse is one page of service users.

Jump to

Keyboard shortcuts

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