saviynt

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 10 Imported by: 0

README

Go Saviynt

Build Status Go Report Card Docs License

This is a Go helper for the Saviynt API.

Documentation

Index

Constants

View Source
const (
	RelURLLogin                    = "/ECM/api/login"
	RelURLECM                      = "/ECM"
	RelURLAPI                      = "/api/v5"
	RelURLLoginRuntimeControlsData = "/fetchRuntimeControlsDataV2" // API at https://documenter.getpostman.com/view/23973797/2s9XxwutWR#b821cc21-ee7c-49e3-9433-989ed87b2b03
)
View Source
const AttrTimeFrame = "timeFrame" // from docs

Variables

This section is empty.

Functions

func AnalyticsSQLAuditLogJob

func AnalyticsSQLAuditLogJob() string

AnalyticsSQLAuditLogJob provides a SQL query which returns the output of the EIC Archival job.

func AnalyticsSQLAuditLogSIEM

func AnalyticsSQLAuditLogSIEM() string

AnalyticsSQLSIEM represents the SIEM Integration query listed here: https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter20-EIC-Integrations/Saviynt-SIEM-Integration.htm#Step

func AnalyticsSQLAuditLogUI

func AnalyticsSQLAuditLogUI() string

AuditLogSQLQueryUI represents a SQL query that very closely matches the CSV / XLSX download from the Audit Log UI. The primary difference is that the `MESSAGE` column value is wrapped in the API response.

func AuditLogJobExportColumns

func AuditLogJobExportColumns() []string

func AuditLogUIExportColumns

func AuditLogUIExportColumns() []string

ExportColumns provides the column names in a standard audit log CSV or Excel export.

func GetToken

func GetToken(baseURL, username, password string) (*oauth2.Token, error)

Types

type AnalyticsRequest

type AnalyticsRequest struct {
	AnalyticsName string `json:"analyticsname"`
	Attributes    any    `json:"attributes,omitempty"`
	Max           string `json:"max,omitempty"`
	Offset        string `json:"offset,omitempty"`
}

type AnalyticsRequestAttributes

type AnalyticsRequestAttributes struct {
	TimeFrame string `json:"timeFrame"`
}

type Client

type Client struct {
	BaseURL    string
	Path       string
	HTTPClient *http.Client
}

func NewClient

func NewClient(baseURL, path, username, password string) (Client, error)

func (Client) FetchRuntimeControlsDataV2

func (c Client) FetchRuntimeControlsDataV2(name string, attrs map[string]any, limit, offset uint) (*http.Response, error)

func (Client) GetToken

func (c Client) GetToken(username, password string) (*oauth2.Token, error)

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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