Documentation ¶
Index ¶
- func DeleteAdminUser(service *services.Service, adminUserID int) (*http.Response, error)
- type AdminUsers
- func CreateAdminUser(service *services.Service, adminUser AdminUsers) (*AdminUsers, error)
- func GetAdminByUsername(service *services.Service, adminUsername string) (*AdminUsers, error)
- func GetAdminUsers(service *services.Service, adminUserId int) (*AdminUsers, error)
- func GetAdminUsersByLoginName(service *services.Service, adminUsersLoginName string) (*AdminUsers, error)
- func GetAllAdminUsers(service *services.Service) ([]AdminUsers, error)
- func UpdateAdminUser(service *services.Service, adminUserID int, adminUser AdminUsers) (*AdminUsers, error)
- type ExecMobileAppTokens
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminUsers ¶
type AdminUsers struct { // Admin or auditor's user ID ID int `json:"id,omitempty"` // Admin or auditor's login name. loginName is in email format and uses the domain name associated to the Zscaler account LoginName string `json:"loginName,omitempty"` // Admin or auditor's username UserName string `json:"userName,omitempty"` // Admin or auditor's email address Email string `json:"email,omitempty"` // Additional information about the admin or auditor Comments string `json:"comments,omitempty"` // Indicates whether or not the admin account is disabled Disabled bool `json:"disabled,omitempty"` // The admin's password. If admin single sign-on (SSO) is disabled, then this field is mandatory for POST requests. This information is not provided in a GET response." Password string `json:"password,omitempty"` PasswordLastModifiedTime int `json:"pwdLastModifiedTime,omitempty"` // Indicates whether or not the admin can be edited or deleted IsNonEditable bool `json:"isNonEditable,omitempty"` // The default is true when SAML Authentication is disabled. When SAML Authentication is enabled, this can be set to false in order to force the admin to login via SSO only. IsPasswordLoginAllowed bool `json:"isPasswordLoginAllowed,omitempty"` // Indicates whether or not an admin's password has expired IsPasswordExpired bool `json:"isPasswordExpired,omitempty"` // Indicates whether the user is an auditor. This attribute is subject to change. IsAuditor bool `json:"isAuditor,omitempty"` // Communication for Security Report is enabled. IsSecurityReportCommEnabled bool `json:"isSecurityReportCommEnabled,omitempty"` // Communication setting for Service Update IsServiceUpdateCommEnabled bool `json:"isServiceUpdateCommEnabled,omitempty"` // Communication setting for Product Update IsProductUpdateCommEnabled bool `json:"isProductUpdateCommEnabled,omitempty"` // Indicates whether or not Executive Insights App access is enabled for the admin IsExecMobileAppEnabled bool `json:"isExecMobileAppEnabled,omitempty"` // Only applicable for the LOCATION_GROUP admin scope type, in which case this attribute gives the list of ID/name pairs of locations within the location group. The attribute name is subject to change AdminScopeGroupMemberEntities []common.IDNameExtensions `json:"adminScopescopeGroupMemberEntities,omitempty"` // Based on the admin scope type, the entities can be the ID/name pair of departments, locations, or location groups. The attribute name is subject to change AdminScopeEntities []common.IDNameExtensions `json:"adminScopeScopeEntities,omitempty"` // The admin's scope. A scope is required for admins, but not applicable to auditors. This attribute is subject to change AdminScopeType string `json:"adminScopeType,omitempty"` // Role of the admin. This is not required for an auditor Role *Role `json:"role,omitempty"` // Read-only information about a Executive Insights App token, if it exists ExecMobileAppTokens []ExecMobileAppTokens `json:"execMobileAppTokens,omitempty"` }
func CreateAdminUser ¶ added in v2.61.0
func CreateAdminUser(service *services.Service, adminUser AdminUsers) (*AdminUsers, error)
func GetAdminByUsername ¶ added in v2.61.0
func GetAdminByUsername(service *services.Service, adminUsername string) (*AdminUsers, error)
func GetAdminUsers ¶ added in v2.61.0
func GetAdminUsers(service *services.Service, adminUserId int) (*AdminUsers, error)
func GetAdminUsersByLoginName ¶ added in v2.61.0
func GetAdminUsersByLoginName(service *services.Service, adminUsersLoginName string) (*AdminUsers, error)
func GetAllAdminUsers ¶ added in v2.61.0
func GetAllAdminUsers(service *services.Service) ([]AdminUsers, error)
func UpdateAdminUser ¶ added in v2.61.0
func UpdateAdminUser(service *services.Service, adminUserID int, adminUser AdminUsers) (*AdminUsers, error)
type ExecMobileAppTokens ¶
type ExecMobileAppTokens struct { Cloud string `json:"cloud,omitempty"` OrgId int `json:"orgId,omitempty"` Name string `json:"name,omitempty"` TokenId string `json:"tokenId,omitempty"` Token string `json:"token,omitempty"` TokenExpiry int `json:"tokenExpiry,omitempty"` CreateTime int `json:"createTime,omitempty"` DeviceId string `json:"deviceId,omitempty"` DeviceName string `json:"deviceName,omitempty"` }
Click to show internal directories.
Click to hide internal directories.