Documentation ¶
Index ¶
Constants ¶
View Source
const CloudScanRulesEndpoint = "api/v1/cloud-scan-rules"
Variables ¶
This section is empty.
Functions ¶
func DeleteCloudScanRule ¶
Delete an existing cloud scan rule
func UpdateCloudScanRule ¶
func UpdateCloudScanRule(c api.Client, rule []CloudScanRule) error
Create/Update cloud scan rules
Types ¶
type AgentlessScanSpec ¶
type AgentlessScanSpec struct { Enabled bool `json:"enabled,omitempty"` HubAccount bool `json:"hubAccount,omitempty"` ConsoleAddr string `json:"consoleAddr,omitempty"` ScanNonRunning bool `json:"scanNonRunning,omitempty"` ProxyAddress string `json:"proxyAddress,omitempty"` ProxyCA string `json:"proxyCA,omitempty"` SkipPermissionsCheck bool `json:"skipPermissionsCheck,omitempty"` AutoScale bool `json:"autoScale,omitempty"` Scanners int `json:"scanners,omitempty"` SecurityGroup string `json:"securityGroup,omitempty"` SubNet string `json:"subnet,omitempty"` Regions []string `json:"regions,omitempty"` CustomTags []Tag `json:"customTags,omitempty"` IncludedTags []Tag `json:"includedTags,omitempty"` }
type CloudScanRule ¶
type CloudScanRule struct { CredentialId string `json:"credentialId"` Credential auth.Credential `json:"credential,omitempty"` DiscoveryEnabled bool `json:"discoveryEnabled,omitempty"` ServerlessRadarEnabled bool `json:"serverlessRadarEnabled,omitempty"` VmTagsEnabled bool `json:"vmTagsEnabled,omitempty"` DiscoverAllFunctionVersions bool `json:"discoverAllFunctionVersions,omitempty"` ServerlessRadarCap int `json:"serverlessRadarCap,omitempty"` AgentlessScanSpec AgentlessScanSpec `json:"agentlessScanSpec,omitempty"` ServerlessScanSpec ServerLessScanSpec `json:"serverlessScanSpec,omitempty"` AwsRegionType string `json:"awsRegionType,omitempty"` }
func GetCloudScanRule ¶
func GetCloudScanRule(c api.Client, name string) (*CloudScanRule, error)
Get a specific cloud scan rule
func ListCloudScanRules ¶
func ListCloudScanRules(c api.Client) ([]CloudScanRule, error)
Get all cloud can rules
Click to show internal directories.
Click to hide internal directories.