Documentation
¶
Index ¶
- Constants
- func AddUsersToGroup(ctx context.Context, c *Client, gID string, users []string) error
- func AliasExists(ctx context.Context, c *Client, neID, alias string) (bool, error)
- func AssignAlias(ctx context.Context, c *Client, entityID, alias string) error
- func AssignRolesToGroup(ctx context.Context, c *Client, gID string, roles []string) ([]string, error)
- func AssignRolesToUser(ctx context.Context, c *Client, uID string, roles []string) ([]string, error)
- func AssignTagsToResource(ctx context.Context, c *Client, rID, rName string, tags []Tag) error
- func ConfigToStringSlice(key string, d *schema.ResourceData) []string
- func Contains(v string, a []string) bool
- func ConvertTagsListToMap(tags []Tag) map[string]string
- func DeleteAlias(ctx context.Context, c *Client, entityID, alias string) error
- func DeleteMappedDomain(ctx context.Context, c *Client, neID, name string) error
- func DeleteMappedHost(ctx context.Context, c *Client, neID, name string) error
- func DeletePacFileContent(ctx context.Context, c *Client, pfID string) error
- func GetPacFileContent(ctx context.Context, c *Client, pfID string) (*string, error)
- func MapResponseToResource(r interface{}, d *schema.ResourceData, excludedKeys []string) error
- func MarshalAppProtocol(protocol string, saml *AppSaml, oidc *AppOidc) ([]byte, []byte, error)
- func NewAppMappedAttr(d *schema.ResourceData) *[]AppMappedAttributes
- func PatchPacFileManagedContent(ctx context.Context, c *Client, pfID string, mc *ManagedContent) error
- func PutPacFileContent(ctx context.Context, c *Client, pfID, pfContent string) error
- func RemoveUsersFromGroup(ctx context.Context, c *Client, gID string, users []string) error
- func ResourceTypeSetToStringSlice(s *schema.Set) []string
- func RetryPolicy(ctx context.Context, resp *http.Response, err error) (bool, error)
- func UpdateEasylinkProxy(ctx context.Context, c *Client, eID string, p *Proxy) error
- func UpdateEasylinkRdp(ctx context.Context, c *Client, eID string, r *Rdp) error
- type AacRule
- func CreateAacRule(ctx context.Context, c *Client, aac_rule *AacRule) (*AacRule, error)
- func DeleteAacRule(ctx context.Context, c *Client, arlID string) (*AacRule, error)
- func GetAacRule(ctx context.Context, c *Client, arlID string) (*AacRule, error)
- func NewAacRule(d *schema.ResourceData) *AacRule
- func UpdateAacRule(ctx context.Context, c *Client, arlID string, aac_rule *AacRule) (*AacRule, error)
- type AccessBridge
- func CreateAccessBridge(ctx context.Context, c *Client, e *AccessBridge) (*AccessBridge, error)
- func DeleteAccessBridge(ctx context.Context, c *Client, mID string) (*AccessBridge, error)
- func GetAccessBridge(ctx context.Context, c *Client, eID string) (*AccessBridge, error)
- func NewAccessBridge(d *schema.ResourceData) *AccessBridge
- func UpdateAccessBridge(ctx context.Context, c *Client, eID string, e *AccessBridge) (*AccessBridge, error)
- type AccessControl
- func CreateAccessControl(ctx context.Context, c *Client, e *AccessControl) (*AccessControl, error)
- func DeleteAccessControl(ctx context.Context, c *Client, mID string) (*AccessControl, error)
- func GetAccessControl(ctx context.Context, c *Client, eID string) (*AccessControl, error)
- func NewAccessControl(d *schema.ResourceData) *AccessControl
- func UpdateAccessControl(ctx context.Context, c *Client, eID string, e *AccessControl) (*AccessControl, error)
- type Alert
- func CreateAlert(ctx context.Context, c *Client, a *Alert) (*Alert, error)
- func DeleteAlert(ctx context.Context, c *Client, aID string) (*Alert, error)
- func GetAlert(ctx context.Context, c *Client, aID string) (*Alert, error)
- func NewAlert(d *schema.ResourceData) *Alert
- func UpdateAlert(ctx context.Context, c *Client, aID string, a *Alert) (*Alert, error)
- type App
- func CreateApp(ctx context.Context, c *Client, app *App, saml *AppSaml, oidc *AppOidc, ...) (*App, error)
- func DeleteApp(ctx context.Context, c *Client, appID string) (*App, error)
- func GetApp(ctx context.Context, c *Client, appID string, protocol string) (*App, error)
- func NewApp(d *schema.ResourceData) *App
- func UpdateApp(ctx context.Context, c *Client, appID string, app *App, saml *AppSaml, ...) (*App, error)
- func UpdateAppProto(ctx context.Context, c *Client, app *App, saml []byte, oidc []byte, ...) (*App, error)
- type AppDomainFederation
- type AppMappedAttributes
- type AppOidc
- type AppSaml
- type Attributes
- type Auth
- type CatalogApp
- type Certificate
- func CreateCertificate(ctx context.Context, c *Client, cert *Certificate) (*Certificate, error)
- func DeleteCertificate(ctx context.Context, c *Client, cID string) (*Certificate, error)
- func GetCertificate(ctx context.Context, c *Client, cID string) (*Certificate, error)
- func NewCertificate(d *schema.ResourceData) *Certificate
- func UpdateCertificate(ctx context.Context, c *Client, cID string, cert *Certificate) (*Certificate, error)
- type Check
- type Client
- func (c *Client) Delete(ctx context.Context, url string, queryParams url.Values) ([]byte, error)
- func (c *Client) Get(ctx context.Context, url string, queryParams url.Values) ([]byte, error)
- func (c *Client) GetResource(ctx context.Context, resourceUrl, ID string) ([]byte, error)
- func (c *Client) Patch(ctx context.Context, url string, body []byte) ([]byte, error)
- func (c *Client) Post(ctx context.Context, url string, body []byte) ([]byte, error)
- func (c *Client) Put(ctx context.Context, url string, body []byte) ([]byte, error)
- func (c *Client) SendRequest(r *http.Request) ([]byte, error)
- type CloudApp
- func CreateCloudApp(ctx context.Context, c *Client, ca *CloudApp) (*CloudApp, error)
- func DeleteCloudApp(ctx context.Context, c *Client, cID string) (*CloudApp, error)
- func GetCloudApp(ctx context.Context, c *Client, cID string) (*CloudApp, error)
- func NewCloudApp(d *schema.ResourceData) *CloudApp
- func UpdateCloudApp(ctx context.Context, c *Client, cID string, ca *CloudApp) (*CloudApp, error)
- type Config
- type ContentCategory
- func CreateContentCategory(ctx context.Context, c *Client, cc *ContentCategory) (*ContentCategory, error)
- func DeleteContentCategory(ctx context.Context, c *Client, ccId string) (*ContentCategory, error)
- func GetContentCategory(ctx context.Context, c *Client, ccId string) (*ContentCategory, error)
- func NewContentCategory(d *schema.ResourceData) *ContentCategory
- func UpdateContentCategory(ctx context.Context, c *Client, ccId string, cc *ContentCategory) (*ContentCategory, error)
- type Credentials
- type Criteria
- type Device
- func CreateDevice(ctx context.Context, c *Client, dev *Device) (*Device, error)
- func DeleteDevice(ctx context.Context, c *Client, deviceID string) (*Device, error)
- func GetDevice(ctx context.Context, c *Client, deviceID string) (*Device, error)
- func NewDevice(d *schema.ResourceData) *Device
- func UpdateDevice(ctx context.Context, c *Client, deviceId string, device *Device) (*Device, error)
- type DeviceSettings
- func CreateDeviceSettings(ctx context.Context, c *Client, ds *DeviceSettings) (*DeviceSettings, error)
- func DeleteDeviceSettings(ctx context.Context, c *Client, dsID string) (*DeviceSettings, error)
- func GetDeviceSettings(ctx context.Context, c *Client, dsID string) (*DeviceSettings, error)
- func NewDeviceSettings(d *schema.ResourceData) *DeviceSettings
- func UpdateDeviceSettings(ctx context.Context, c *Client, dsID string, ds *DeviceSettings) (*DeviceSettings, error)
- type EasyLink
- func CreateEasyLink(ctx context.Context, c *Client, e *EasyLink) (*EasyLink, error)
- func DeleteEasyLink(ctx context.Context, c *Client, eID string) (*EasyLink, error)
- func GetEasyLink(ctx context.Context, c *Client, eID string) (*EasyLink, error)
- func NewEasyLink(d *schema.ResourceData) *EasyLink
- func UpdateEasyLink(ctx context.Context, c *Client, eID string, e *EasyLink) (*EasyLink, error)
- type EgressRoute
- func CreateEgressRoute(ctx context.Context, c *Client, e *EgressRoute) (*EgressRoute, error)
- func DeleteEgressRoute(ctx context.Context, c *Client, mID string) (*EgressRoute, error)
- func GetEgressRoute(ctx context.Context, c *Client, eID string) (*EgressRoute, error)
- func NewEgressRoute(d *schema.ResourceData) *EgressRoute
- func UpdateEgressRoute(ctx context.Context, c *Client, eID string, e *EgressRoute) (*EgressRoute, error)
- type EmailConfig
- type EnterpriseDNS
- func CreateEnterpriseDNS(ctx context.Context, c *Client, ed *EnterpriseDNS) (*EnterpriseDNS, error)
- func DeleteEnterpriseDNS(ctx context.Context, c *Client, edID string) (*EnterpriseDNS, error)
- func GetEnterpriseDNS(ctx context.Context, c *Client, edID string) (*EnterpriseDNS, error)
- func NewEnterpriseDNS(d *schema.ResourceData) *EnterpriseDNS
- func UpdateEnterpriseDNS(ctx context.Context, c *Client, edID string, ed *EnterpriseDNS) (*EnterpriseDNS, error)
- type ErrorResponse
- type ExternalIpConfig
- type FailBack
- type FailOver
- type GoogleConfig
- type GreTunnelConfig
- type Group
- func CreateGroup(ctx context.Context, c *Client, g *Group) (*Group, error)
- func DeleteGroup(ctx context.Context, c *Client, gID string) (*Group, error)
- func GetGroupById(ctx context.Context, c *Client, gID string) (*Group, error)
- func GetGroupByName(ctx context.Context, c *Client, name string) (*Group, error)
- func NewGroup(d *schema.ResourceData) *Group
- func UpdateGroup(ctx context.Context, c *Client, gID string, g *Group) (*Group, error)
- type IPNetwork
- func CreateIPNetwork(ctx context.Context, c *Client, in *IPNetwork) (*IPNetwork, error)
- func DeleteIPNetwork(ctx context.Context, c *Client, inId string) (*IPNetwork, error)
- func GetIPNetwork(ctx context.Context, c *Client, inId string) (*IPNetwork, error)
- func NewIPNetwork(d *schema.ResourceData) *IPNetwork
- func UpdateIPNetwork(ctx context.Context, c *Client, inId string, in *IPNetwork) (*IPNetwork, error)
- type Idp
- func CreateIdp(ctx context.Context, c *Client, idp *Idp) (*Idp, error)
- func DeleteIdp(ctx context.Context, c *Client, idpID string) (*Idp, error)
- func GetIdp(ctx context.Context, c *Client, idpID string) (*Idp, error)
- func NewIdp(d *schema.ResourceData) *Idp
- func UpdateIdp(ctx context.Context, c *Client, idpID string, idp *Idp) (*Idp, error)
- type IdpOidcConfig
- type IdpSamlConfig
- type IdpScimConfig
- type Location
- type ManagedContent
- type MappedDomain
- type MappedHost
- type Metaport
- func AddMappedElementsToMetaport(ctx context.Context, c *Client, mID string, meIDs []string) (*Metaport, error)
- func CreateMetaport(ctx context.Context, c *Client, m *Metaport) (*Metaport, error)
- func DeleteMetaport(ctx context.Context, c *Client, mID string) (*Metaport, error)
- func GetMetaport(ctx context.Context, c *Client, mId string) (*Metaport, error)
- func GetMetaportByName(ctx context.Context, c *Client, name string) (*Metaport, error)
- func NewMetaport(d *schema.ResourceData) *Metaport
- func RemoveMappedElementsFromMetaport(ctx context.Context, c *Client, mID string, meIDs []string) (*Metaport, error)
- func UpdateMetaport(ctx context.Context, c *Client, mId string, m *Metaport) (*Metaport, error)
- type MetaportCluster
- func AddMappedElementsToMetaportCluster(ctx context.Context, c *Client, mID string, meIDs []string) (*MetaportCluster, error)
- func CreateMetaportCluster(ctx context.Context, c *Client, m *MetaportCluster) (*MetaportCluster, error)
- func DeleteMetaportCluster(ctx context.Context, c *Client, mcID string) (*MetaportCluster, error)
- func GetMetaportCluster(ctx context.Context, c *Client, mId string) (*MetaportCluster, error)
- func GetMetaportClustertByName(ctx context.Context, c *Client, name string) (*MetaportCluster, error)
- func NewMetaportCluster(d *schema.ResourceData) *MetaportCluster
- func RemoveMappedElementsFromMetaportCluster(ctx context.Context, c *Client, mID string, meIDs []string) (*MetaportCluster, error)
- func UpdateMetaportCluster(ctx context.Context, c *Client, mId string, m *MetaportCluster) (*MetaportCluster, error)
- type MetaportFailover
- func CreateMetaportFailover(ctx context.Context, c *Client, m *MetaportFailover) (*MetaportFailover, error)
- func DeleteMetaportFailover(ctx context.Context, c *Client, mcID string) (*MetaportFailover, error)
- func GetMetaportFailover(ctx context.Context, c *Client, mId string) (*MetaportFailover, error)
- func NewMetaportFailover(d *schema.ResourceData) *MetaportFailover
- func UpdateMetaportFailover(ctx context.Context, c *Client, mId string, m *MetaportFailover) (*MetaportFailover, error)
- type MicrosoftConfig
- type NetworkElementBody
- type NetworkElementResponse
- func CreateNetworkElement(ctx context.Context, c *Client, ne *NetworkElementBody) (*NetworkElementResponse, error)
- func DeleteNetworkElement(ctx context.Context, c *Client, neID string) (*NetworkElementResponse, error)
- func GetNetworkElement(ctx context.Context, c *Client, neID string) (*NetworkElementResponse, error)
- func UpdateNetworkElement(ctx context.Context, c *Client, neId string, ne *NetworkElementBody) (*NetworkElementResponse, error)
- type NotificationChannel
- func CreateNotificationChannel(ctx context.Context, c *Client, nc *NotificationChannel) (*NotificationChannel, error)
- func DeleteNotificationChannel(ctx context.Context, c *Client, ncID string) (*NotificationChannel, error)
- func GetNotificationChannel(ctx context.Context, c *Client, ncID string) (*NotificationChannel, error)
- func NewNotificationChannel(d *schema.ResourceData) *NotificationChannel
- func UpdateNotificationChannel(ctx context.Context, c *Client, ncID string, nc *NotificationChannel) (*NotificationChannel, error)
- type Oauth2Config
- type PacFile
- func CreatePacFile(ctx context.Context, c *Client, pf *PacFile) (*PacFile, error)
- func DeletePacFile(ctx context.Context, c *Client, pfID string) (*PacFile, error)
- func GetPacFile(ctx context.Context, c *Client, pfID string) (*PacFile, error)
- func ModifiedPacFile(d *schema.ResourceData) *PacFile
- func NewPacFile(d *schema.ResourceData) *PacFile
- func PacFileBase(d *schema.ResourceData) *PacFile
- func UpdatePacFile(ctx context.Context, c *Client, pfID string, pf *PacFile) (*PacFile, error)
- type PagerdutyConfig
- type Policy
- func CreatePolicy(ctx context.Context, c *Client, rg *Policy) (*Policy, error)
- func DeletePolicy(ctx context.Context, c *Client, pgID string) (*Policy, error)
- func GetPolicy(ctx context.Context, c *Client, rgID string) (*Policy, error)
- func NewPolicy(d *schema.ResourceData) *Policy
- func UpdatePolicy(ctx context.Context, c *Client, rgID string, rg *Policy) (*Policy, error)
- type PostureCheck
- func CreatePostureCheck(ctx context.Context, c *Client, e *PostureCheck) (*PostureCheck, error)
- func DeletePostureCheck(ctx context.Context, c *Client, mID string) (*PostureCheck, error)
- func GetPostureCheck(ctx context.Context, c *Client, eID string) (*PostureCheck, error)
- func NewPostureCheck(d *schema.ResourceData) *PostureCheck
- func UpdatePostureCheck(ctx context.Context, c *Client, eID string, e *PostureCheck) (*PostureCheck, error)
- type ProofpointCasbConfig
- type Protocol
- type ProtocolGroup
- func CreateProtocolGroup(ctx context.Context, c *Client, pg *ProtocolGroup) (*ProtocolGroup, error)
- func DeleteProtocolGroup(ctx context.Context, c *Client, pgID string) (*ProtocolGroup, error)
- func GetProtocolGroupById(ctx context.Context, c *Client, pgID string) (*ProtocolGroup, error)
- func GetProtocolGroupByName(ctx context.Context, c *Client, name string) (*ProtocolGroup, error)
- func NewProtocolGroup(d *schema.ResourceData) *ProtocolGroup
- func UpdateProtocolGroup(ctx context.Context, c *Client, pgID string, pg *ProtocolGroup) (*ProtocolGroup, error)
- type Proxy
- type ProxyPortRange
- func CreateProxyPortRange(ctx context.Context, c *Client, ppr *ProxyPortRange) (*ProxyPortRange, error)
- func DeleteProxyPortRange(ctx context.Context, c *Client, pprId string) (*ProxyPortRange, error)
- func GetProxyPortRange(ctx context.Context, c *Client, pprId string) (*ProxyPortRange, error)
- func NewProxyPortRange(d *schema.ResourceData) *ProxyPortRange
- func UpdateProxyPortRange(ctx context.Context, c *Client, pprId string, ppr *ProxyPortRange) (*ProxyPortRange, error)
- type QradarHttpConfig
- type Rdp
- type ResolvedAddressConfig
- type Role
- func CreateRole(ctx context.Context, c *Client, r *Role) (*Role, error)
- func DeleteRole(ctx context.Context, c *Client, rID string) (*Role, error)
- func GetRoleByID(ctx context.Context, c *Client, rID string) (*Role, error)
- func GetRoleByName(ctx context.Context, c *Client, name string) (*Role, error)
- func NewRole(d *schema.ResourceData) *Role
- func UpdateRole(ctx context.Context, c *Client, rID string, r *Role) (*Role, error)
- type RoutingGroup
- func AddMappedElementsToRoutingGroups(ctx context.Context, c *Client, rgID string, meIDs []string) (*RoutingGroup, error)
- func CreateRoutingGroup(ctx context.Context, c *Client, rg *RoutingGroup) (*RoutingGroup, error)
- func DeleteRoutingGroup(ctx context.Context, c *Client, pgID string) (*RoutingGroup, error)
- func GetRoutingGroup(ctx context.Context, c *Client, rgID string) (*RoutingGroup, error)
- func NewRoutingGroup(d *schema.ResourceData) *RoutingGroup
- func RemoveMappedElementsFromRoutingGroups(ctx context.Context, c *Client, pgID string, meIDs []string) (*RoutingGroup, error)
- func UpdateRoutingGroup(ctx context.Context, c *Client, rgID string, rg *RoutingGroup) (*RoutingGroup, error)
- type S3Config
- type SSLBypassRule
- func CreateSSLBypassRule(ctx context.Context, c *Client, rg *SSLBypassRule) (*SSLBypassRule, error)
- func DeleteSSLBypassRule(ctx context.Context, c *Client, pgID string) (*SSLBypassRule, error)
- func GetSSLBypassRule(ctx context.Context, c *Client, rgID string) (*SSLBypassRule, error)
- func NewSSLBypassRule(d *schema.ResourceData) *SSLBypassRule
- func UpdateSSLBypassRule(ctx context.Context, c *Client, rgID string, rg *SSLBypassRule) (*SSLBypassRule, error)
- type ScanRule
- func CreateScanRule(ctx context.Context, c *Client, rg *ScanRule) (*ScanRule, error)
- func DeleteScanRule(ctx context.Context, c *Client, pgID string) (*ScanRule, error)
- func GetScanRule(ctx context.Context, c *Client, rgID string) (*ScanRule, error)
- func NewScanRule(d *schema.ResourceData) *ScanRule
- func UpdateScanRule(ctx context.Context, c *Client, rgID string, rg *ScanRule) (*ScanRule, error)
- type SiemConfig
- type SlackConfig
- type SpikeCondition
- type SplunkHttpConfig
- type SyslogConfig
- type Tag
- type TenantAwarenessData
- type TenantRestriction
- func CreateTenantRestriction(ctx context.Context, c *Client, tr *TenantRestriction) (*TenantRestriction, error)
- func DeleteTenantRestriction(ctx context.Context, c *Client, ncID string) (*TenantRestriction, error)
- func GetTenantRestriction(ctx context.Context, c *Client, trID string) (*TenantRestriction, error)
- func NewTenantRestriction(d *schema.ResourceData) *TenantRestriction
- func UpdateTenantRestriction(ctx context.Context, c *Client, trID string, tr *TenantRestriction) (*TenantRestriction, error)
- type ThreatCategory
- func CreateThreatCategory(ctx context.Context, c *Client, tc *ThreatCategory) (*ThreatCategory, error)
- func DeleteThreatCategory(ctx context.Context, c *Client, tcId string) (*ThreatCategory, error)
- func GetThreatCategory(ctx context.Context, c *Client, tcId string) (*ThreatCategory, error)
- func NewThreatCategory(d *schema.ResourceData) *ThreatCategory
- func UpdateThreatCategory(ctx context.Context, c *Client, tcId string, cc *ThreatCategory) (*ThreatCategory, error)
- type ThresholdCondition
- type Time
- type TimeFrame
- func CreateTimeFrame(ctx context.Context, c *Client, tf *TimeFrame) (*TimeFrame, error)
- func DeleteTimeFrame(ctx context.Context, c *Client, inId string) (*TimeFrame, error)
- func GetTimeFrame(ctx context.Context, c *Client, tfId string) (*TimeFrame, error)
- func NewTimeFrame(d *schema.ResourceData) *TimeFrame
- func UpdateTimeFrame(ctx context.Context, c *Client, tfId string, in *TimeFrame) (*TimeFrame, error)
- type Token
- type TrustedNetwork
- func CreateTrustedNetwork(ctx context.Context, c *Client, e *TrustedNetwork) (*TrustedNetwork, error)
- func DeleteTrustedNetwork(ctx context.Context, c *Client, mID string) (*TrustedNetwork, error)
- func GetTrustedNetwork(ctx context.Context, c *Client, eID string) (*TrustedNetwork, error)
- func NewTrustedNetwork(d *schema.ResourceData) *TrustedNetwork
- func UpdateTrustedNetwork(ctx context.Context, c *Client, eID string, e *TrustedNetwork) (*TrustedNetwork, error)
- type Tunnel
- func AddGreSourceIpsToTunnel(ctx context.Context, c *Client, tId string, sourceIps []string) (*Tunnel, error)
- func CreateTunnel(ctx context.Context, c *Client, t *Tunnel) (*Tunnel, error)
- func DeleteTunnel(ctx context.Context, c *Client, tId string) (*Tunnel, error)
- func GetTunnel(ctx context.Context, c *Client, tId string) (*Tunnel, error)
- func GetTunnelByName(ctx context.Context, c *Client, name string) (*Tunnel, error)
- func RemoveGreSourceIpsFromTunnel(ctx context.Context, c *Client, tId string, sourceIps []string) (*Tunnel, error)
- func UpdateTunnel(ctx context.Context, c *Client, tId string, t *Tunnel) (*Tunnel, error)
- type UrlFilteringRule
- func CreateUrlFilteringRule(ctx context.Context, c *Client, rg *UrlFilteringRule) (*UrlFilteringRule, error)
- func DeleteUrlFilteringRule(ctx context.Context, c *Client, pgID string) (*UrlFilteringRule, error)
- func GetUrlFilteringRule(ctx context.Context, c *Client, rgID string) (*UrlFilteringRule, error)
- func NewUrlFilteringRule(d *schema.ResourceData) *UrlFilteringRule
- func UpdateUrlFilteringRule(ctx context.Context, c *Client, rgID string, rg *UrlFilteringRule) (*UrlFilteringRule, error)
- type User
- func CreateUser(ctx context.Context, c *Client, ed *User) (*User, error)
- func DeleteUser(ctx context.Context, c *Client, uID string) (*User, error)
- func GetUserByEmail(ctx context.Context, c *Client, email string) (*User, error)
- func GetUserByID(ctx context.Context, c *Client, uID string) (*User, error)
- func NewUser(d *schema.ResourceData) *User
- func UpdateUser(ctx context.Context, c *Client, edID string, ed *User) (*User, error)
- type UserSettings
- func CreateUserSettings(ctx context.Context, c *Client, ds *UserSettings) (*UserSettings, error)
- func DeleteUserSettings(ctx context.Context, c *Client, dsID string) (*UserSettings, error)
- func GetUserSettings(ctx context.Context, c *Client, dsID string) (*UserSettings, error)
- func NewUserSettings(d *schema.ResourceData) *UserSettings
- func UpdateUserSettings(ctx context.Context, c *Client, dsID string, ds *UserSettings) (*UserSettings, error)
- type WebhookConfig
Constants ¶
View Source
const IPNetworksEndpoint = "v1/ip_networks"
View Source
const ProxyPortRangeEndpoint = "v1/proxy_port_ranges"
View Source
const TimeFramesEndpoint = "v1/time_frames"
View Source
const UsersEndpoint = "v1/users"
Variables ¶
This section is empty.
Functions ¶
func AddUsersToGroup ¶
func AliasExists ¶
func AssignRolesToGroup ¶
func AssignRolesToUser ¶
func AssignTagsToResource ¶
func ConfigToStringSlice ¶
func ConfigToStringSlice(key string, d *schema.ResourceData) []string
func ConvertTagsListToMap ¶
func DeleteMappedDomain ¶
func DeleteMappedHost ¶
func DeletePacFileContent ¶
func GetPacFileContent ¶
func MapResponseToResource ¶
func MapResponseToResource(r interface{}, d *schema.ResourceData, excludedKeys []string) error
func MarshalAppProtocol ¶
func NewAppMappedAttr ¶
func NewAppMappedAttr(d *schema.ResourceData) *[]AppMappedAttributes
func PutPacFileContent ¶
func RemoveUsersFromGroup ¶
func RetryPolicy ¶
RetryPolicy is a callback for Client.CheckRetry, which will status codes 409, 502, 504.
func UpdateEasylinkProxy ¶
Types ¶
type AacRule ¶
type AacRule struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description *string `json:"description"` Enabled bool `json:"enabled"` Priority int `json:"priority,omitempty"` Action string `json:"action,omitempty"` AppIds []string `json:"app_ids,omitempty"` ApplyAllApps bool `json:"apply_all_apps"` Sources []string `json:"sources,omitempty"` ExemptSources []string `json:"exempt_sources,omitempty"` FilterExpression *string `json:"filter_expression"` Networks []string `json:"networks,omitempty"` Locations *[]string `json:"locations"` IpReputations *[]string `json:"ip_reputations"` CertificateIds *[]string `json:"certificate_ids"` NotificationChannels []string `json:"notification_channels,omitempty"` }
func CreateAacRule ¶
func DeleteAacRule ¶
func NewAacRule ¶
func NewAacRule(d *schema.ResourceData) *AacRule
type AccessBridge ¶
type AccessBridge struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` SiemConfig *SiemConfig `json:"siem_config,omitempty"` NotificationChannels []string `json:"notification_channels"` Status string `json:"status,omitempty"` StatusDescription string `json:"status_description,omitempty"` Type string `json:"type,omitempty"` }
func CreateAccessBridge ¶
func CreateAccessBridge(ctx context.Context, c *Client, e *AccessBridge) (*AccessBridge, error)
func DeleteAccessBridge ¶
func GetAccessBridge ¶
func NewAccessBridge ¶
func NewAccessBridge(d *schema.ResourceData) *AccessBridge
func UpdateAccessBridge ¶
func UpdateAccessBridge(ctx context.Context, c *Client, eID string, e *AccessBridge) (*AccessBridge, error)
type AccessControl ¶
type AccessControl struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` ApplyToOrg bool `json:"apply_to_org"` ApplyToEntities []string `json:"apply_to_entities"` ExemptEntities []string `json:"exempt_entities"` AllowedRoutes []string `json:"allowed_routes"` }
func CreateAccessControl ¶
func CreateAccessControl(ctx context.Context, c *Client, e *AccessControl) (*AccessControl, error)
func DeleteAccessControl ¶
func GetAccessControl ¶
func NewAccessControl ¶
func NewAccessControl(d *schema.ResourceData) *AccessControl
func UpdateAccessControl ¶
func UpdateAccessControl(ctx context.Context, c *Client, eID string, e *AccessControl) (*AccessControl, error)
type Alert ¶
type Alert struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Channels []string `json:"channels"` Enabled bool `json:"enabled"` GroupBy *string `json:"group_by"` NotifyMessage string `json:"notify_message"` QueryText string `json:"query_text"` SourceType string `json:"source_type"` SpikeCondition *SpikeCondition `json:"spike_condition,omitempty"` ThresholdCondition *ThresholdCondition `json:"threshold_condition,omitempty"` Type string `json:"type,omitempty"` Window int `json:"window"` }
func NewAlert ¶
func NewAlert(d *schema.ResourceData) *Alert
type App ¶
type App struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description *string `json:"description"` Enabled bool `json:"enabled"` Visible bool `json:"visible"` AssignedMembers []string `json:"assigned_members"` IpWhitelist *[]string `json:"ip_whitelist"` DirectSsoLogin *string `json:"direct_sso_login"` Protocol string `json:"protocol,omitempty"` Saml *AppSaml `json:"saml,omitempty"` Oidc *AppOidc `json:"oidc,omitempty"` MappedAttributes []AppMappedAttributes `json:"mapped_attributes,omitempty"` DomainFederation *AppDomainFederation `json:"domain_federation,omitempty"` }
func CreateApp ¶
func CreateApp(ctx context.Context, c *Client, app *App, saml *AppSaml, oidc *AppOidc, mappedAttrs *[]AppMappedAttributes, domainFed *AppDomainFederation) (*App, error)
func NewApp ¶
func NewApp(d *schema.ResourceData) *App
type AppDomainFederation ¶
type AppDomainFederation struct {
Domain string `json:"domain"`
}
func NewAppDomainFederation ¶
func NewAppDomainFederation(protocol string, d *schema.ResourceData) (*AppDomainFederation, error)
type AppMappedAttributes ¶
type AppMappedAttributes struct { AttributeFormat *string `json:"attribute_format,omitempty"` VariableName string `json:"variable_name,omitempty"` TargetVariableName *string `json:"target_variable_name"` FilterType *string `json:"filter_type"` FilterValue *string `json:"filter_value"` }
func UpdateAppMappedAttrs ¶
type AppOidc ¶
type AppOidc struct { SignInRedirectUrls []string `json:"sign_in_redirect_urls,omitempty"` GrantTypes []string `json:"grant_types,omitempty"` Scopes []string `json:"scopes,omitempty"` InitiateLoginUrl *string `json:"initiate_login_url"` AccessTokenLifetime int `json:"access_token_lifetime,omitempty"` IdTokenLifetime int `json:"id_token_lifetime,omitempty"` }
func NewAppOidc ¶
func NewAppOidc(d *schema.ResourceData) *AppOidc
type AppSaml ¶
type AppSaml struct { AudienceUri string `json:"audience_uri,omitempty"` Recipient string `json:"recipient,omitempty"` Destination string `json:"destination,omitempty"` SsoAcsUrl string `json:"sso_acs_url,omitempty"` SubjectNameIdAttribute string `json:"subject_name_id_attribute,omitempty"` SubjectNameIdFormat string `json:"subject_name_id_format,omitempty"` SignatureAlgorithm string `json:"signature_algorithm,omitempty"` DigestAlgorithm string `json:"digest_algorithm,omitempty"` DefaultRelayState string `json:"default_relay_state,omitempty"` X509Cert string `json:"x509_cert,omitempty"` IdpIssuer string `json:"idp_issuer,omitempty"` IdpSsoUrl string `json:"idp_sso_url,omitempty"` AuthnContextClass string `json:"authn_context_class,omitempty"` }
func NewAppSaml ¶
func NewAppSaml(d *schema.ResourceData) *AppSaml
type Attributes ¶
type Attributes struct {
TenantAwarenessData TenantAwarenessData `json:"tenant_awareness_data"`
}
type Auth ¶
type Auth struct {
Oauth2Config Oauth2Config `json:"oauth2_config"`
}
type CatalogApp ¶
type CatalogApp struct { ID string `json:"id"` Name string `json:"name"` Category string `json:"category"` Risk int `json:"risk"` Urls []string `json:"urls"` Vendor string `json:"vendor"` Verified bool `json:"verified"` Attributes Attributes `json:"attributes"` }
func GetCatalogAppByID ¶
func GetCatalogAppByName ¶
type Certificate ¶
type Certificate struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Sans []string `json:"sans,omitempty"` SerialNumber string `json:"serial_number,omitempty"` Status string `json:"status,omitempty"` StatusDescription string `json:"status_description,omitempty"` ValidNotAfter string `json:"valid_not_after,omitempty"` ValidNotBefore string `json:"valid_not_before,omitempty"` Certificate string `json:"certificate,omitempty"` }
func CreateCertificate ¶
func CreateCertificate(ctx context.Context, c *Client, cert *Certificate) (*Certificate, error)
func DeleteCertificate ¶
func GetCertificate ¶
func NewCertificate ¶
func NewCertificate(d *schema.ResourceData) *Certificate
func UpdateCertificate ¶
func UpdateCertificate(ctx context.Context, c *Client, cID string, cert *Certificate) (*Certificate, error)
type Client ¶
type Client struct { Credentials *Credentials Token *Token HTTP *retryablehttp.Client BaseURL string TokenCreationTime int64 UserAgent string }
func (*Client) GetResource ¶
type CloudApp ¶
type CloudApp struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` App string `json:"app,omitempty"` Tenant string `json:"tenant,omitempty"` TenantType string `json:"tenant_type,omitempty"` Type string `json:"type,omitempty"` Urls []string `json:"urls"` }
func CreateCloudApp ¶
func DeleteCloudApp ¶
func NewCloudApp ¶
func NewCloudApp(d *schema.ResourceData) *CloudApp
type ContentCategory ¶
type ContentCategory struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` ConfidenceLevel string `json:"confidence_level"` ForbidUncategorizedUrls bool `json:"forbid_uncategorized_urls"` Types []string `json:"types"` Urls []string `json:"urls"` }
func CreateContentCategory ¶
func CreateContentCategory(ctx context.Context, c *Client, cc *ContentCategory) (*ContentCategory, error)
func DeleteContentCategory ¶
func GetContentCategory ¶
func NewContentCategory ¶
func NewContentCategory(d *schema.ResourceData) *ContentCategory
func UpdateContentCategory ¶
func UpdateContentCategory(ctx context.Context, c *Client, ccId string, cc *ContentCategory) (*ContentCategory, error)
type Credentials ¶
type Criteria ¶
type Criteria struct { ExternalIpConfig *ExternalIpConfig `json:"external_ip_config,omitempty"` ResolvedAddressConfig *ResolvedAddressConfig `json:"resolved_address_config,omitempty"` Type string `json:"type,omitempty"` }
type Device ¶
type Device struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled *bool `json:"enabled,omitempty"` OwnerID string `json:"owner_id,omitempty"` AutoAliases []string `json:"auto_aliases,omitempty"` Groups []string `json:"groups,omitempty"` Tags []Tag `json:"tags,omitempty"` Aliases []string `json:"aliases,omitempty"` }
func DeleteDevice ¶
func NewDevice ¶
func NewDevice(d *schema.ResourceData) *Device
type DeviceSettings ¶
type DeviceSettings struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` ApplyOnOrg bool `json:"apply_on_org"` ApplyToEntities []string `json:"apply_to_entities"` AutoFqdnDomainNames []string `json:"auto_fqdn_domain_names,omitempty"` DirectSso *string `json:"direct_sso,omitempty"` OverlayMfaRefreshPeriod *int `json:"overlay_mfa_refresh_period,omitempty"` OverlayMfaRequired *bool `json:"overlay_mfa_required,omitempty"` ProtocolSelectionLifetime *int `json:"protocol_selection_lifetime,omitempty"` ProxyAlwaysOn *bool `json:"proxy_always_on,omitempty"` SearchDomains []string `json:"search_domains,omitempty"` SessionLifetime *int `json:"session_lifetime,omitempty"` SessionLifetimeGrace *int `json:"session_lifetime_grace,omitempty"` TunnelMode *string `json:"tunnel_mode,omitempty"` VpnLoginBrowser *string `json:"vpn_login_browser,omitempty"` ZtnaAlwaysOn *bool `json:"ztna_always_on,omitempty"` }
func CreateDeviceSettings ¶
func CreateDeviceSettings(ctx context.Context, c *Client, ds *DeviceSettings) (*DeviceSettings, error)
func DeleteDeviceSettings ¶
func GetDeviceSettings ¶
func NewDeviceSettings ¶
func NewDeviceSettings(d *schema.ResourceData) *DeviceSettings
func UpdateDeviceSettings ¶
func UpdateDeviceSettings(ctx context.Context, c *Client, dsID string, ds *DeviceSettings) (*DeviceSettings, error)
type EasyLink ¶
type EasyLink struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` DomainName string `json:"domain_name,omitempty"` Viewers []string `json:"viewers,omitempty"` AccessFqdn string `json:"access_fqdn,omitempty"` AccessType string `json:"access_type"` MappedElementId *string `json:"mapped_element_id"` CertificateId string `json:"certificate_id,omitempty"` Audit bool `json:"audit"` EnableSni bool `json:"enable_sni"` Port int `json:"port"` Protocol string `json:"protocol,omitempty"` RootPath string `json:"root_path"` Proxy *Proxy `json:"proxy,omitempty"` Rdp *Rdp `json:"rdp,omitempty"` Version int `json:"version,omitempty"` }
func CreateEasyLink ¶
func DeleteEasyLink ¶
func NewEasyLink ¶
func NewEasyLink(d *schema.ResourceData) *EasyLink
type EgressRoute ¶
type EgressRoute struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Destinations []string `json:"destinations"` Enabled bool `json:"enabled"` ExemptSources []string `json:"exempt_sources"` Sources []string `json:"sources"` Via string `json:"via"` }
func CreateEgressRoute ¶
func CreateEgressRoute(ctx context.Context, c *Client, e *EgressRoute) (*EgressRoute, error)
func DeleteEgressRoute ¶
func GetEgressRoute ¶
func NewEgressRoute ¶
func NewEgressRoute(d *schema.ResourceData) *EgressRoute
func UpdateEgressRoute ¶
func UpdateEgressRoute(ctx context.Context, c *Client, eID string, e *EgressRoute) (*EgressRoute, error)
type EmailConfig ¶
type EmailConfig struct {
Recipients []string `json:"recipients"`
}
type EnterpriseDNS ¶
type EnterpriseDNS struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` MappedDomains []MappedDomain `json:"mapped_domains,omitempty"` }
func CreateEnterpriseDNS ¶
func CreateEnterpriseDNS(ctx context.Context, c *Client, ed *EnterpriseDNS) (*EnterpriseDNS, error)
func DeleteEnterpriseDNS ¶
func GetEnterpriseDNS ¶
func NewEnterpriseDNS ¶
func NewEnterpriseDNS(d *schema.ResourceData) *EnterpriseDNS
func UpdateEnterpriseDNS ¶
func UpdateEnterpriseDNS(ctx context.Context, c *Client, edID string, ed *EnterpriseDNS) (*EnterpriseDNS, error)
type ErrorResponse ¶
type ErrorResponse struct { URL string Method string Detail string `json:"detail"` Status int `json:"status"` Title string `json:"title"` Type string `json:"type"` }
func (*ErrorResponse) Error ¶
func (err *ErrorResponse) Error() string
type ExternalIpConfig ¶
type ExternalIpConfig struct {
AddressesRanges []string `json:"addresses_ranges"`
}
type GoogleConfig ¶
type GreTunnelConfig ¶
type GreTunnelConfig struct {
SourceIps []string `json:"source_ips"`
}
type Group ¶
type Group struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Expression *string `json:"expression"` Roles []string `json:"roles,omitempty"` Users []string `json:"users,omitempty"` }
func GetGroupByName ¶
func NewGroup ¶
func NewGroup(d *schema.ResourceData) *Group
type IPNetwork ¶
type IPNetwork struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Cidrs []string `json:"cidrs"` Countries []string `json:"countries,omitempty"` }
func CreateIPNetwork ¶
func DeleteIPNetwork ¶
func GetIPNetwork ¶
func NewIPNetwork ¶
func NewIPNetwork(d *schema.ResourceData) *IPNetwork
type Idp ¶
type Idp struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description *string `json:"description"` Enabled bool `json:"enabled"` Hidden bool `json:"hidden"` Icon *string `json:"icon"` MappedAttributes *[]string `json:"mapped_attributes"` SamlConfig *IdpSamlConfig `json:"saml_config,omitempty"` OidcConfig *IdpOidcConfig `json:"oidc_config,omitempty"` ScimConfig *IdpScimConfig `json:"scim_config,omitempty"` }
func NewIdp ¶
func NewIdp(d *schema.ResourceData) *Idp
type IdpOidcConfig ¶
type IdpOidcConfig struct { Issuer string `json:"issuer,omitempty"` ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret"` JitEnabled bool `json:"jit_enabled,omitempty"` }
func NewIdpOidcConfig ¶
func NewIdpOidcConfig(d *schema.ResourceData) *IdpOidcConfig
type IdpSamlConfig ¶
type IdpSamlConfig struct { Certificate string `json:"certificate,omitempty"` Issuer string `json:"issuer,omitempty"` SsoUrl string `json:"sso_url,omitempty"` AuthnContextClass string `json:"authn_context_class,omitempty"` JitEnabled bool `json:"jit_enabled,omitempty"` }
func NewIdpSamlConfig ¶
func NewIdpSamlConfig(d *schema.ResourceData) *IdpSamlConfig
type IdpScimConfig ¶
type IdpScimConfig struct { ApiKeyId string `json:"api_key_id,omitempty"` AssumeOwnership bool `json:"assume_ownership,omitempty"` }
func NewIdpScimConfig ¶
func NewIdpScimConfig(d *schema.ResourceData) *IdpScimConfig
type Location ¶
type ManagedContent ¶
type ManagedContent struct { Domains *[]string `json:"domains,omitempty"` CloudApps *[]string `json:"cloud_apps,omitempty"` IpNetworks *[]string `json:"ip_networks,omitempty"` }
func NewManagedContent ¶
func NewManagedContent(d *schema.ResourceData) *ManagedContent
type MappedDomain ¶
type MappedDomain struct { MappedDomain string `json:"mapped_domain"` Name string `json:"name,omitempty"` }
func GetMappedDomain ¶
func GetMappedDomain(ctx context.Context, c *Client, neID string, mappedDomain *MappedDomain) (*MappedDomain, error)
func SetMappedDomain ¶
func SetMappedDomain(ctx context.Context, c *Client, neID string, mappedDomain *MappedDomain) (*MappedDomain, error)
func (*MappedDomain) ReqBody ¶
func (md *MappedDomain) ReqBody() ([]byte, error)
ReqBody returns a body with mapped_domain only because the name of the mapped domain should be in the path params only
type MappedHost ¶
type MappedHost struct { MappedHost string `json:"mapped_host"` Name string `json:"name,omitempty"` }
func GetMappedHost ¶
func GetMappedHost(ctx context.Context, c *Client, neID string, mappedHost *MappedHost) (*MappedHost, error)
func SetMappedHost ¶
func SetMappedHost(ctx context.Context, c *Client, neID string, mappedHost *MappedHost) (*MappedHost, error)
func (*MappedHost) ReqBody ¶
func (mh *MappedHost) ReqBody() ([]byte, error)
ReqBody returns a body with mapped_host only because the name of the mapped host should be in the path params only
type Metaport ¶
type Metaport struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` AllowSupport *bool `json:"allow_support,omitempty"` MappedElements []string `json:"mapped_elements"` NotificationChannels []string `json:"notification_channels"` }
func CreateMetaport ¶
func DeleteMetaport ¶
func GetMetaportByName ¶
func NewMetaport ¶
func NewMetaport(d *schema.ResourceData) *Metaport
type MetaportCluster ¶
type MetaportCluster struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` MappedElements []string `json:"mapped_elements"` Metaports []string `json:"metaports"` }
func CreateMetaportCluster ¶
func CreateMetaportCluster(ctx context.Context, c *Client, m *MetaportCluster) (*MetaportCluster, error)
func DeleteMetaportCluster ¶
func GetMetaportCluster ¶
func NewMetaportCluster ¶
func NewMetaportCluster(d *schema.ResourceData) *MetaportCluster
func UpdateMetaportCluster ¶
func UpdateMetaportCluster(ctx context.Context, c *Client, mId string, m *MetaportCluster) (*MetaportCluster, error)
type MetaportFailover ¶
type MetaportFailover struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` MappedElements []string `json:"mapped_elements"` Cluster1 *string `json:"cluster_1"` Cluster2 *string `json:"cluster_2"` ActiveCluster *string `json:"active_cluster,omitempty"` FailBack *FailBack `json:"failback,omitempty"` FailOver *FailOver `json:"failover,omitempty"` NotificationChannels []string `json:"notification_channels"` }
func CreateMetaportFailover ¶
func CreateMetaportFailover(ctx context.Context, c *Client, m *MetaportFailover) (*MetaportFailover, error)
func DeleteMetaportFailover ¶
func GetMetaportFailover ¶
func NewMetaportFailover ¶
func NewMetaportFailover(d *schema.ResourceData) *MetaportFailover
func UpdateMetaportFailover ¶
func UpdateMetaportFailover(ctx context.Context, c *Client, mId string, m *MetaportFailover) (*MetaportFailover, error)
func (*MetaportFailover) ReqBody ¶
func (mf *MetaportFailover) ReqBody() ([]byte, error)
type MicrosoftConfig ¶
type NetworkElementBody ¶
type NetworkElementBody struct { Name string `json:"name,omitempty"` Description string `json:"description"` Enabled *bool `json:"enabled,omitempty"` MappedSubnets []string `json:"mapped_subnets,omitempty"` MappedService string `json:"mapped_service,omitempty"` Platform string `json:"platform,omitempty"` OwnerID string `json:"owner_id,omitempty"` }
func NewNetworkElementBody ¶
func NewNetworkElementBody(d *schema.ResourceData) *NetworkElementBody
type NetworkElementResponse ¶
type NetworkElementResponse struct { NetworkElementBody ID string `json:"id"` AutoAliases []string `json:"auto_aliases"` Groups []string `json:"groups"` Type string `json:"type"` Tags []Tag `json:"tags,omitempty"` Aliases []string `json:"aliases"` }
func CreateNetworkElement ¶
func CreateNetworkElement(ctx context.Context, c *Client, ne *NetworkElementBody) (*NetworkElementResponse, error)
func DeleteNetworkElement ¶
func GetNetworkElement ¶
func UpdateNetworkElement ¶
func UpdateNetworkElement(ctx context.Context, c *Client, neId string, ne *NetworkElementBody) (*NetworkElementResponse, error)
type NotificationChannel ¶
type NotificationChannel struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` Type string `json:"type,omitempty"` EmailConfig *EmailConfig `json:"email_config,omitempty"` PagerdutyConfig *PagerdutyConfig `json:"pagerduty_config,omitempty"` SlackConfig *SlackConfig `json:"slack_config,omitempty"` WebhookConfig *WebhookConfig `json:"webhook_config,omitempty"` }
func CreateNotificationChannel ¶
func CreateNotificationChannel(ctx context.Context, c *Client, nc *NotificationChannel) (*NotificationChannel, error)
func GetNotificationChannel ¶
func NewNotificationChannel ¶
func NewNotificationChannel(d *schema.ResourceData) *NotificationChannel
func UpdateNotificationChannel ¶
func UpdateNotificationChannel(ctx context.Context, c *Client, ncID string, nc *NotificationChannel) (*NotificationChannel, error)
type Oauth2Config ¶
type PacFile ¶
type PacFile struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` ApplyToOrg bool `json:"apply_to_org"` Sources []string `json:"sources"` ExemptSources []string `json:"exempt_sources"` HasContent bool `json:"has_content,omitempty"` Priority int `json:"priority"` Type string `json:"type,omitempty"` ManagedContent *ManagedContent `json:"managed_content,omitempty"` }
func CreatePacFile ¶
func DeletePacFile ¶
func ModifiedPacFile ¶
func ModifiedPacFile(d *schema.ResourceData) *PacFile
func NewPacFile ¶
func NewPacFile(d *schema.ResourceData) *PacFile
func PacFileBase ¶
func PacFileBase(d *schema.ResourceData) *PacFile
type PagerdutyConfig ¶
type PagerdutyConfig struct {
ApiKey string `json:"api_key"`
}
type Policy ¶
type Policy struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Destinations []string `json:"destinations"` Enabled *bool `json:"enabled,omitempty"` ExemptSources []string `json:"exempt_sources"` ProtocolGroups []string `json:"protocol_groups"` Sources []string `json:"sources"` }
func NewPolicy ¶
func NewPolicy(d *schema.ResourceData) *Policy
type PostureCheck ¶
type PostureCheck struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` Action string `json:"action"` Check *Check `json:"check,omitempty"` When []string `json:"when"` ApplyToOrg bool `json:"apply_to_org"` ApplyToEntities []string `json:"apply_to_entities"` ExemptEntities []string `json:"exempt_entities"` Interval *int `json:"interval"` Osquery string `json:"osquery"` Platform string `json:"platform"` UserMessageOnFail string `json:"user_message_on_fail"` }
func CreatePostureCheck ¶
func CreatePostureCheck(ctx context.Context, c *Client, e *PostureCheck) (*PostureCheck, error)
func DeletePostureCheck ¶
func GetPostureCheck ¶
func NewPostureCheck ¶
func NewPostureCheck(d *schema.ResourceData) *PostureCheck
func UpdatePostureCheck ¶
func UpdatePostureCheck(ctx context.Context, c *Client, eID string, e *PostureCheck) (*PostureCheck, error)
type ProofpointCasbConfig ¶
type ProtocolGroup ¶
type ProtocolGroup struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Protocols []Protocol `json:"protocols,omitempty"` }
func CreateProtocolGroup ¶
func CreateProtocolGroup(ctx context.Context, c *Client, pg *ProtocolGroup) (*ProtocolGroup, error)
func DeleteProtocolGroup ¶
func GetProtocolGroupById ¶
func GetProtocolGroupByName ¶
func NewProtocolGroup ¶
func NewProtocolGroup(d *schema.ResourceData) *ProtocolGroup
func UpdateProtocolGroup ¶
func UpdateProtocolGroup(ctx context.Context, c *Client, pgID string, pg *ProtocolGroup) (*ProtocolGroup, error)
type Proxy ¶
type Proxy struct { EnterpriseAccess bool `json:"enterprise_access"` Hosts []string `json:"hosts"` HttpHostHeader string `json:"http_host_header"` RewriteContentTypes []string `json:"rewrite_content_types"` RewriteHosts bool `json:"rewrite_hosts"` RewriteHostsClient bool `json:"rewrite_hosts_client"` RewriteHttp bool `json:"rewrite_http"` }
func NewProxy ¶
func NewProxy(d *schema.ResourceData) *Proxy
type ProxyPortRange ¶
type ProxyPortRange struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Proto string `json:"proto"` FromPort int `json:"from_port"` ToPort int `json:"to_port"` ReadOnly bool `json:"read_only,omitempty"` }
func CreateProxyPortRange ¶
func CreateProxyPortRange(ctx context.Context, c *Client, ppr *ProxyPortRange) (*ProxyPortRange, error)
func DeleteProxyPortRange ¶
func GetProxyPortRange ¶
func NewProxyPortRange ¶
func NewProxyPortRange(d *schema.ResourceData) *ProxyPortRange
func UpdateProxyPortRange ¶
func UpdateProxyPortRange(ctx context.Context, c *Client, pprId string, ppr *ProxyPortRange) (*ProxyPortRange, error)
type QradarHttpConfig ¶
type Rdp ¶
type Rdp struct { RemoteApp string `json:"remote_app"` RemoteAppCmdArgs string `json:"remote_app_cmd_args"` RemoteAppWorkDir string `json:"remote_app_work_dir"` Security string `json:"security"` ServerKeyboardLayout string `json:"server_keyboard_layout"` }
func NewRdp ¶
func NewRdp(d *schema.ResourceData) *Rdp
type ResolvedAddressConfig ¶
type Role ¶
type Role struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` SubOrgsExpression string `json:"suborgs_expression,omitempty"` Privileges []string `json:"privileges"` ApplyToOrgs []string `json:"apply_to_orgs"` AllReadPrivs *bool `json:"all_read_privileges,omitempty"` AllWritePrivs *bool `json:"all_write_privileges,omitempty"` AllSubOrgs *bool `json:"all_suborgs,omitempty"` }
func NewRole ¶
func NewRole(d *schema.ResourceData) *Role
type RoutingGroup ¶
type RoutingGroup struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` MappedElementsIds []string `json:"mapped_elements_ids"` Sources []string `json:"sources"` ExemptSources []string `json:"exempt_sources"` }
func CreateRoutingGroup ¶
func CreateRoutingGroup(ctx context.Context, c *Client, rg *RoutingGroup) (*RoutingGroup, error)
func DeleteRoutingGroup ¶
func GetRoutingGroup ¶
func NewRoutingGroup ¶
func NewRoutingGroup(d *schema.ResourceData) *RoutingGroup
func UpdateRoutingGroup ¶
func UpdateRoutingGroup(ctx context.Context, c *Client, rgID string, rg *RoutingGroup) (*RoutingGroup, error)
type SSLBypassRule ¶
type SSLBypassRule struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` Enabled bool `json:"enabled"` ApplyToOrg bool `json:"apply_to_org"` Sources []string `json:"sources"` ExemptSources []string `json:"exempt_sources"` BypassUncategorizedUrls bool `json:"bypass_uncategorized_urls"` ContentTypes []string `json:"content_types"` Domains []string `json:"domains"` Priority int `json:"priority"` Action string `json:"action"` }
func CreateSSLBypassRule ¶
func CreateSSLBypassRule(ctx context.Context, c *Client, rg *SSLBypassRule) (*SSLBypassRule, error)
func DeleteSSLBypassRule ¶
func GetSSLBypassRule ¶
func NewSSLBypassRule ¶
func NewSSLBypassRule(d *schema.ResourceData) *SSLBypassRule
func UpdateSSLBypassRule ¶
func UpdateSSLBypassRule(ctx context.Context, c *Client, rgID string, rg *SSLBypassRule) (*SSLBypassRule, error)
type ScanRule ¶
type ScanRule struct { ID string `json:"id,omitempty"` Priority int `json:"priority"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` Sources []string `json:"sources,omitempty"` ExemptSources []string `json:"exempt_sources,omitempty"` FilterExpression *string `json:"filter_expression,omitempty"` ApplyToOrg bool `json:"apply_to_org"` ContentCategories []string `json:"content_categories,omitempty"` ThreatCategories []string `json:"threat_categories,omitempty"` CloudApps []string `json:"cloud_apps,omitempty"` CloudAppRiskGroups []string `json:"cloud_app_risk_groups,omitempty"` CatalogAppCategories []string `json:"catalog_app_categories,omitempty"` Networks []string `json:"networks,omitempty"` Countries []string `json:"countries,omitempty"` UserAgents []string `json:"user_agents,omitempty"` UserActions []string `json:"user_actions"` AllSupportedFileTypes bool `json:"all_supported_file_types"` FileTypes []string `json:"file_types,omitempty"` MaxFileSizeMb int `json:"max_file_size_mb,omitempty"` PasswordProtectedFiles bool `json:"password_protected_files,omitempty"` Dlp bool `json:"dlp,omitempty"` Detectors []string `json:"detectors,omitempty"` Malware bool `json:"malware,omitempty"` Sandbox bool `json:"sandbox,omitempty"` Antivirus bool `json:"antivirus,omitempty"` Action string `json:"action"` AccessIds []string `json:"access_ids,omitempty"` }
func CreateScanRule ¶
func DeleteScanRule ¶
func NewScanRule ¶
func NewScanRule(d *schema.ResourceData) *ScanRule
type SiemConfig ¶
type SiemConfig struct { Type string `json:"type,omitempty"` ExportLogs []string `json:"export_logs"` ProofpointCasbConfig *ProofpointCasbConfig `json:"proofpoint_casb_config,omitempty"` QradarHttpConfig *QradarHttpConfig `json:"qradar_http_config,omitempty"` S3Config *S3Config `json:"s3_config,omitempty"` SplunkHttpConfig *SplunkHttpConfig `json:"splunk_http_config,omitempty"` SyslogConfig *SyslogConfig `json:"syslog_config,omitempty"` }
type SlackConfig ¶
type SpikeCondition ¶
type SplunkHttpConfig ¶
type SyslogConfig ¶
type TenantAwarenessData ¶
type TenantRestriction ¶
type TenantRestriction struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` GoogleConfig *GoogleConfig `json:"google_config,omitempty"` MicrosoftConfig *MicrosoftConfig `json:"microsoft_config,omitempty"` Type string `json:"type,omitempty"` }
func CreateTenantRestriction ¶
func CreateTenantRestriction(ctx context.Context, c *Client, tr *TenantRestriction) (*TenantRestriction, error)
func DeleteTenantRestriction ¶
func GetTenantRestriction ¶
func NewTenantRestriction ¶
func NewTenantRestriction(d *schema.ResourceData) *TenantRestriction
func UpdateTenantRestriction ¶
func UpdateTenantRestriction(ctx context.Context, c *Client, trID string, tr *TenantRestriction) (*TenantRestriction, error)
type ThreatCategory ¶
type ThreatCategory struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` ConfidenceLevel string `json:"confidence_level"` RiskLevel string `json:"risk_level"` Countries []string `json:"countries"` Types []string `json:"types"` }
func CreateThreatCategory ¶
func CreateThreatCategory(ctx context.Context, c *Client, tc *ThreatCategory) (*ThreatCategory, error)
func DeleteThreatCategory ¶
func GetThreatCategory ¶
func NewThreatCategory ¶
func NewThreatCategory(d *schema.ResourceData) *ThreatCategory
func UpdateThreatCategory ¶
func UpdateThreatCategory(ctx context.Context, c *Client, tcId string, cc *ThreatCategory) (*ThreatCategory, error)
type ThresholdCondition ¶
type TimeFrame ¶
type TimeFrame struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Days []string `json:"days"` StartTime *Time `json:"start_time"` EndTime *Time `json:"end_time"` }
func CreateTimeFrame ¶
func DeleteTimeFrame ¶
func GetTimeFrame ¶
func NewTimeFrame ¶
func NewTimeFrame(d *schema.ResourceData) *TimeFrame
type TrustedNetwork ¶
type TrustedNetwork struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` ApplyToOrg bool `json:"apply_to_org"` ApplyToEntities []string `json:"apply_to_entities"` ExemptEntities []string `json:"exempt_entities"` Criteria []Criteria `json:"criteria"` }
func CreateTrustedNetwork ¶
func CreateTrustedNetwork(ctx context.Context, c *Client, e *TrustedNetwork) (*TrustedNetwork, error)
func DeleteTrustedNetwork ¶
func GetTrustedNetwork ¶
func NewTrustedNetwork ¶
func NewTrustedNetwork(d *schema.ResourceData) *TrustedNetwork
func UpdateTrustedNetwork ¶
func UpdateTrustedNetwork(ctx context.Context, c *Client, eID string, e *TrustedNetwork) (*TrustedNetwork, error)
type Tunnel ¶
type Tunnel struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` GreConfig *GreTunnelConfig `json:"gre_config,omitempty"` }
func AddGreSourceIpsToTunnel ¶
func GetTunnelByName ¶
type UrlFilteringRule ¶
type UrlFilteringRule struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Action string `json:"action"` ApplyToOrg bool `json:"apply_to_org"` Enabled bool `json:"enabled"` Sources []string `json:"sources,omitempty"` ExemptSources []string `json:"exempt_sources,omitempty"` AdvancedThreatProtection bool `json:"advanced_threat_protection"` CatalogAppCategories []string `json:"catalog_app_categories"` CloudApps []string `json:"cloud_apps"` Countries []string `json:"countries,omitempty"` ExpiresAt string `json:"expires_at,omitempty"` FilterExpression string `json:"filter_expression,omitempty"` ForbiddenContentCategories []string `json:"forbidden_content_categories"` Networks []string `json:"networks,omitempty"` Priority int `json:"priority"` Schedule []string `json:"schedule"` TenantRestriction string `json:"tenant_restriction,omitempty"` ThreatCategories []string `json:"threat_categories"` WarnTtl int `json:"warn_ttl"` AccessIds []string `json:"access_ids,omitempty"` }
func CreateUrlFilteringRule ¶
func CreateUrlFilteringRule(ctx context.Context, c *Client, rg *UrlFilteringRule) (*UrlFilteringRule, error)
func DeleteUrlFilteringRule ¶
func GetUrlFilteringRule ¶
func NewUrlFilteringRule ¶
func NewUrlFilteringRule(d *schema.ResourceData) *UrlFilteringRule
func UpdateUrlFilteringRule ¶
func UpdateUrlFilteringRule(ctx context.Context, c *Client, rgID string, rg *UrlFilteringRule) (*UrlFilteringRule, error)
type User ¶
type User struct { ID string `json:"id,omitempty"` GivenName string `json:"given_name,omitempty"` FamilyName string `json:"family_name,omitempty"` Description string `json:"description"` Email string `json:"email,omitempty"` Enabled *bool `json:"enabled,omitempty"` Phone *string `json:"phone"` Name string `json:"name,omitempty"` Tags []Tag `json:"tags,omitempty"` Roles []string `json:"roles,omitempty"` Groups []string `json:"groups,omitempty"` }
func GetUserByEmail ¶
func NewUser ¶
func NewUser(d *schema.ResourceData) *User
type UserSettings ¶
type UserSettings struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Enabled bool `json:"enabled"` ApplyOnOrg bool `json:"apply_on_org"` ApplyToEntities []string `json:"apply_to_entities"` AllowedFactors []string `json:"allowed_factors,omitempty"` MaxDevicesPerUser *int `json:"max_devices_per_user,omitempty"` MfaRequired *bool `json:"mfa_required,omitempty"` PasswordExpiration *int `json:"password_expiration,omitempty"` ProhibitedOs []string `json:"prohibited_os,omitempty"` ProxyPops *string `json:"proxy_pops,omitempty"` SsoMandatory *bool `json:"sso_mandatory,omitempty"` }
func CreateUserSettings ¶
func CreateUserSettings(ctx context.Context, c *Client, ds *UserSettings) (*UserSettings, error)
func DeleteUserSettings ¶
func GetUserSettings ¶
func NewUserSettings ¶
func NewUserSettings(d *schema.ResourceData) *UserSettings
func UpdateUserSettings ¶
func UpdateUserSettings(ctx context.Context, c *Client, dsID string, ds *UserSettings) (*UserSettings, error)
type WebhookConfig ¶
type WebhookConfig struct { Auth *Auth `json:"auth,omitempty"` CustomPayload string `json:"custom_payload,omitempty"` Headers []string `json:"headers,omitempty"` Method string `json:"method"` Url string `json:"url"` }
func NewWebhookConfig ¶
func NewWebhookConfig(d *schema.ResourceData) *WebhookConfig
Source Files
¶
- aac_rule.go
- access_bridge.go
- access_control.go
- alert.go
- aliases.go
- app.go
- catalog_app.go
- certificate.go
- client.go
- cloud_app.go
- content_categories.go
- device_settings.go
- devices.go
- easylink.go
- egress_route.go
- enterprise_dns.go
- group.go
- helpers.go
- idp.go
- ip_networks.go
- location.go
- mapped_domain.go
- mapped_host.go
- metaport.go
- metaport_cluster.go
- metaport_failover.go
- network_element.go
- notification_channel.go
- pac_file.go
- policy.go
- posture_check.go
- protocol_groups.go
- proxy_port_range.go
- role.go
- routing_group.go
- scan_rule.go
- ssl_bypass_rule.go
- tenant_restriction.go
- threat_categories.go
- time_frames.go
- trusted_network.go
- tunnel.go
- url_filtering_rule.go
- user.go
- user_settings.go
Click to show internal directories.
Click to hide internal directories.