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.
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.