Documentation ¶
Index ¶
- func Delete(service *services.Service, roleID int) (*http.Response, error)
- type AdminRoles
- func Create(service *services.Service, roleID *AdminRoles) (*AdminRoles, error)
- func Get(service *services.Service, adminRoleId int) (*AdminRoles, error)
- func GetAPIRole(service *services.Service, apiRole string) (*AdminRoles, error)
- func GetAllAdminRoles(service *services.Service) ([]AdminRoles, error)
- func GetAuditorRole(service *services.Service, auditorRole string) (*AdminRoles, error)
- func GetByName(service *services.Service, adminRoleName string) (*AdminRoles, error)
- func GetPartnerRole(service *services.Service, partnerRole string) (*AdminRoles, error)
- func Update(service *services.Service, roleID int, adminRoles *AdminRoles) (*AdminRoles, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminRoles ¶
type AdminRoles struct { // Admin role Id ID int `json:"id"` // Admin rank of this admin role. This is applicable only when admin rank is enabled in the advanced settings. Default value is 7 (the lowest rank). The assigned admin rank determines the roles or admin users this user can manage, and which rule orders this admin can access. Rank int `json:"rank,omitempty"` // Name of the admin role Name string `json:"name,omitempty"` // Policy access permission PolicyAccess string `json:"policyAccess,omitempty"` // Policy access permission AlertingAccess string `json:"alertingAccess,omitempty"` // Dashboard access permission DashboardAccess string `json:"dashboardAccess"` // Report access permission ReportAccess string `json:"reportAccess,omitempty"` // Insights logs access permission AnalysisAccess string `json:"analysisAccess,omitempty"` // Username access permission. When set to NONE, the username will be obfuscated UsernameAccess string `json:"usernameAccess,omitempty"` // Admin and role management access permission AdminAcctAccess string `json:"adminAcctAccess,omitempty"` // Device information access permission. DeviceInfoAccess string `json:"deviceInfoAccess,omitempty"` // Indicates whether this is an auditor role IsAuditor bool `json:"isAuditor,omitempty"` // List of functional areas to which this role has access. This attribute is subject to change Permissions []string `json:"permissions,omitempty"` // Indicates whether or not this admin user is editable/deletable IsNonEditable bool `json:"isNonEditable,omitempty"` // Log range limit LogsLimit string `json:"logsLimit,omitempty"` // The admin role type. ()This attribute is subject to change.) RoleType string `json:"roleType,omitempty"` FeaturePermissions map[string]interface{} `json:"featurePermissions,omitempty"` }
func Create ¶ added in v2.61.0
func Create(service *services.Service, roleID *AdminRoles) (*AdminRoles, error)
func Get ¶ added in v2.61.0
func Get(service *services.Service, adminRoleId int) (*AdminRoles, error)
func GetAPIRole ¶ added in v2.61.0
func GetAPIRole(service *services.Service, apiRole string) (*AdminRoles, error)
func GetAllAdminRoles ¶ added in v2.61.0
func GetAllAdminRoles(service *services.Service) ([]AdminRoles, error)
func GetAuditorRole ¶ added in v2.61.0
func GetAuditorRole(service *services.Service, auditorRole string) (*AdminRoles, error)
func GetByName ¶ added in v2.61.0
func GetByName(service *services.Service, adminRoleName string) (*AdminRoles, error)
func GetPartnerRole ¶ added in v2.61.0
func GetPartnerRole(service *services.Service, partnerRole string) (*AdminRoles, error)
func Update ¶ added in v2.61.0
func Update(service *services.Service, roleID int, adminRoles *AdminRoles) (*AdminRoles, error)
Click to show internal directories.
Click to hide internal directories.