Documentation
¶
Index ¶
- func AllAvailableActions(service *services.Service, ruleType string, payload AvailableActionsRequest) ([]string, error)
- func Delete(service *services.Service, ruleType string, ruleID int) (*http.Response, error)
- func GetRuleTypeMapping(service *services.Service) (map[string]string, error)
- type AvailableActionsRequest
- type AvailableActionsResponse
- type CBIProfile
- type CloudApp
- type CloudAppInstances
- type WebApplicationRules
- func Create(service *services.Service, ruleType string, rule *WebApplicationRules) (*WebApplicationRules, error)
- func CreateDuplicate(service *services.Service, ruleType string, ruleID int, newName string) (*WebApplicationRules, error)
- func GetByRuleID(service *services.Service, ruleType string, ruleID int) (*WebApplicationRules, error)
- func GetByRuleType(service *services.Service, ruleType string) ([]WebApplicationRules, error)
- func Update(service *services.Service, ruleType string, ruleID int, ...) (*WebApplicationRules, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllAvailableActions ¶
Types ¶
type AvailableActionsRequest ¶
type AvailableActionsResponse ¶
type AvailableActionsResponse []string
type CBIProfile ¶
type CBIProfile struct { ProfileSeq int `json:"profileSeq,omitempty"` // The universally unique identifier (UUID) for the browser isolation profile ID string `json:"id,omitempty"` // Name of the browser isolation profile Name string `json:"name,omitempty"` // The browser isolation profile URL URL string `json:"url,omitempty"` // (Optional) Indicates whether this is a default browser isolation profile. Zscaler sets this field. DefaultProfile bool `json:"defaultProfile,omitempty"` // Indicates whether sandboxMode is enabled for this profile configured in Cloud Browser Isolation SandboxMode bool `json:"sandboxMode,omitempty"` }
type CloudApp ¶
type CloudApp struct { Val int `json:"val,omitempty"` WebApplicationClass string `json:"webApplicationClass,omitempty"` BackendName string `json:"backendName,omitempty"` OriginalName string `json:"originalName,omitempty"` Name string `json:"name,omitempty"` Deprecated bool `json:"deprecated,omitempty"` Misc bool `json:"misc,omitempty"` AppNotReady bool `json:"appNotReady,omitempty"` UnderMigration bool `json:"underMigration,omitempty"` AppCatModified bool `json:"appCatModified,omitempty"` }
type CloudAppInstances ¶
type WebApplicationRules ¶
type WebApplicationRules struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Actions []string `json:"actions,omitempty"` State string `json:"state,omitempty"` Rank int `json:"rank,omitempty"` Type string `json:"type,omitempty"` Order int `json:"order,omitempty"` TimeQuota int `json:"timeQuota,omitempty"` SizeQuota int `json:"sizeQuota,omitempty"` CascadingEnabled bool `json:"cascadingEnabled,omitempty"` AccessControl string `json:"accessControl,omitempty"` Applications []string `json:"applications,omitempty"` NumberOfApplications int `json:"numberOfApplications,omitempty"` EunEnabled bool `json:"eunEnabled,omitempty"` EunTemplateID int `json:"eunTemplateId,omitempty"` BrowserEunTemplateID int `json:"browserEunTemplateId,omitempty"` // If set to true, a predefined rule is applied Predefined bool `json:"predefined,omitempty"` // If enforceTimeValidity is set to true, the URL Filtering rule is valid starting on this date and time. ValidityStartTime int `json:"validityStartTime,omitempty"` // If enforceTimeValidity is set to true, the URL Filtering rule ceases to be valid on this end date and time. ValidityEndTime int `json:"validityEndTime,omitempty"` // If enforceTimeValidity is set to true, the URL Filtering rule date and time is valid based on this time zone ID. ValidityTimeZoneID string `json:"validityTimeZoneId,omitempty"` UserAgentTypes []string `json:"userAgentTypes,omitempty"` // When the rule was last modified LastModifiedTime int `json:"lastModifiedTime,omitempty"` // Enforce a set a validity time period for the URL Filtering rule. To learn more, see Configuring the URL Filtering Policy. EnforceTimeValidity bool `json:"enforceTimeValidity,omitempty"` // List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation. DeviceTrustLevels []string `json:"deviceTrustLevels,omitempty"` UserRiskScoreLevels []string `json:"userRiskScoreLevels,omitempty"` // This field is applicable for devices that are managed using Zscaler Client Connector. If no value is set, this field is ignored during the policy evaluation. DeviceGroups []common.IDNameExtensions `json:"deviceGroups"` // Name-ID pairs of devices for which rule must be applied. Specifies devices that are managed using Zscaler Client Connector. If no value is set, this field is ignored during the policy evaluation. Devices []common.IDNameExtensions `json:"devices,omitempty"` // Name-ID pairs of departments for which rule must be applied Departments []common.IDNameExtensions `json:"departments,omitempty"` // Name-ID pairs of groups for which rule must be applied Groups []common.IDNameExtensions `json:"groups,omitempty"` // The URL Filtering rule's label. Rule labels allow you to logically group your organization's policy rules. Policy rules that are not associated with a rule label are grouped under the Untagged label. Labels []common.IDNameExtensions `json:"labels,omitempty"` // Name-ID pairs of users for which rule must be applied Users []common.IDNameExtensions `json:"users,omitempty"` // Name-ID pairs of locations for which rule must be applied Locations []common.IDNameExtensions `json:"locations,omitempty"` // Name-ID pairs of the location groups to which the rule must be applied. LocationGroups []common.IDNameExtensions `json:"locationGroups,omitempty"` // Name-ID pairs of time interval during which rule must be enforced. TimeWindows []common.IDNameExtensions `json:"timeWindows,omitempty"` CloudAppInstances []CloudAppInstances `json:"cloudAppInstances,omitempty"` //FormSharingDomainProfiles []common.CommonEntityReferences `json:"formSharingDomainProfiles,omitempty"` //SharingDomainProfiles []common.CommonEntityReferences `json:"sharingDomainProfiles,omitempty"` TenancyProfileIDs []common.IDNameExtensions `json:"tenancyProfileIds,omitempty"` CloudAppRiskProfile *common.IDCustom `json:"cloudAppRiskProfile,omitempty"` // The cloud browser isolation profile to which the ISOLATE action is applied in the URL Filtering Policy rules. // Note: This parameter is required for the ISOLATE action and is not applicable to other actions. CBIProfile CBIProfile `json:"cbiProfile,omitempty"` }
func Create ¶
func Create(service *services.Service, ruleType string, rule *WebApplicationRules) (*WebApplicationRules, error)
func CreateDuplicate ¶
func GetByRuleID ¶
func GetByRuleType ¶
func GetByRuleType(service *services.Service, ruleType string) ([]WebApplicationRules, error)
func Update ¶
func Update(service *services.Service, ruleType string, ruleID int, rules *WebApplicationRules) (*WebApplicationRules, error)
Click to show internal directories.
Click to hide internal directories.