This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
CyCLI.psm1
116 lines (102 loc) · 7.37 KB
/
CyCLI.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
. $PSScriptRoot\CyHelper.ps1
. $PSScriptRoot\CyCrypto.ps1
. $PSScriptRoot\CyTDR.ps1
. $PSScriptRoot\CyAPI.ps1
. $PSScriptRoot\CyDevices.ps1
. $PSScriptRoot\CyThreats.ps1
. $PSScriptRoot\CyZones.ps1
. $PSScriptRoot\CyPolicies.ps1
. $PSScriptRoot\CyInstallers.ps1
. $PSScriptRoot\CyGlobalLists.ps1
. $PSScriptRoot\CyUsers.ps1
. $PSScriptRoot\CyOpticsDetections.ps1
. $PSScriptRoot\CyOpticsRules.ps1
. $PSScriptRoot\CyOpticsPackages.ps1
. $PSScriptRoot\CyOpticsInstaQuery.ps1
. $PSScriptRoot\CyConvenience.ps1
# API module
Export-ModuleMember Get-CyAPI
Export-ModuleMember Get-CyJwtToken
Export-ModuleMember Get-CyClaimsFromJwtToken
Export-ModuleMember Get-CyGlobalSettings
Export-ModuleMember Set-CyGlobalSettings
Export-ModuleMember Invoke-CyRestMethod
Export-ModuleMember Get-CyConsoleArgumentAutoCompleter
Export-ModuleMember ConvertTo-CyDateString
Export-ModuleMember ConvertFrom-CyDateString
Export-ModuleMember Get-CyAPIHandle
Export-ModuleMember Clear-CyAPIHandle
Export-ModuleMember Convert-CyObject
# Devices
Export-ModuleMember Get-CyDeviceList
Export-ModuleMember Get-CyDeviceDetail
# Zones
Export-ModuleMember Get-CyZoneList
Export-ModuleMember Get-CyZone
Export-ModuleMember Get-CyThreatDetail
Export-ModuleMember New-CyZone
Export-ModuleMember Update-CyZone
Export-ModuleMember Add-CyDeviceToZone
# Threats
Export-ModuleMember Get-CyThreatList
Export-ModuleMember Get-CyDeviceThreatList
Export-ModuleMember Update-CyDeviceThreat
Export-ModuleMember Add-CyHashToGlobalList
Export-ModuleMember Get-CyGlobalList
Export-ModuleMember Remove-CyHashFromGlobalList
Export-ModuleMember -Variable CyAPIHandle
Export-ModuleMember Read-CyData
Export-ModuleMember Remove-CyZone
Export-ModuleMember Remove-CyDeviceFromZone
Export-ModuleMember Set-CyPolicyForDevice
Export-ModuleMember Get-CyAgentInstallerLink
Export-ModuleMember Remove-CyDevice
Export-ModuleMember Get-CyThreatDownloadLink
Export-ModuleMember Get-CyThreatDeviceList
Export-ModuleMember Get-CyDeviceDetailByMac
# Users
Export-ModuleMember Get-CyUserList
Export-ModuleMember Get-CyUserDetail
Export-ModuleMember New-CyUser
Export-ModuleMember Invoke-CySendUserInvite
# Policies
Export-ModuleMember Get-CyPolicy
Export-ModuleMember Get-CyPolicyList
Export-ModuleMember Remove-CyPolicy
Export-ModuleMember Add-CyPolicyListSetting
Export-ModuleMember Copy-CyPolicy
Export-ModuleMember Update-CyPolicy
Export-ModuleMember New-CyPolicy
Export-ModuleMember Get-CyPolicyScaffold
# TDR module
Export-ModuleMember Get-CyTDRs
Export-ModuleMember Convert-CyTDRsToXLSX
Export-ModuleMember Get-CyTDRsForAllConsoles
# Helper
Export-ModuleMember Get-CyConsoleArgumentAutoCompleter
Export-ModuleMember Get-CyConsoleConfig
Export-ModuleMember New-CyConsoleConfig
Export-ModuleMember Remove-CyConsoleConfig
# Optics Detections
Export-ModuleMember Get-CyDetectionList
Export-ModuleMember Get-CyDetectionRecentList
Export-ModuleMember Get-CyDetectionDetail
Export-ModuleMember Remove-CyDetection
Export-ModuleMember Update-CyDetection
Export-ModuleMember Get-CyDetectionExceptionList
Export-ModuleMember Get-CyDetectionExceptionDetail
Export-ModuleMember Get-CyLockdownStatus
# Optics rules
Export-ModuleMember Get-CyDetectionRuleList
Export-ModuleMember Get-CyDetectionRuleDetail
Export-ModuleMember Get-CyDetectionExceptionList
Export-ModuleMember Get-CyDetectionExceptionDetail
# Optics Packages
Export-ModuleMember Get-CyPackagesList
# Optics InstaQuery
Export-ModuleMember New-CyInstaQuery
Export-ModuleMember Get-CyInstaQueryResults
Export-ModuleMember Get-CyInstaQueries
# Convenience methods
Export-ModuleMember Get-CyUserByEmail
Export-ModuleMember Add-CyPolicyExclusionsForApplication