securityeventsapiv1

package
v0.46.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package securityeventsapiv1 : Operations and models for the SecurityEventsApiV1 service

Index

Constants

View Source
const (
	SecurityEventsOptions_IpClass_Backupservice     = "backupService"
	SecurityEventsOptions_IpClass_Badhost           = "badHost"
	SecurityEventsOptions_IpClass_Clean             = "clean"
	SecurityEventsOptions_IpClass_Greylist          = "greylist"
	SecurityEventsOptions_IpClass_Mobileplatform    = "mobilePlatform"
	SecurityEventsOptions_IpClass_Monitoringservice = "monitoringService"
	SecurityEventsOptions_IpClass_Norecord          = "noRecord"
	SecurityEventsOptions_IpClass_Scan              = "scan"
	SecurityEventsOptions_IpClass_Searchengine      = "searchEngine"
	SecurityEventsOptions_IpClass_Securityscanner   = "securityScanner"
	SecurityEventsOptions_IpClass_Tor               = "tor"
	SecurityEventsOptions_IpClass_Unknown           = "unknown"
	SecurityEventsOptions_IpClass_Whitelist         = "whitelist"
)

Constants associated with the SecurityEventsOptions.IpClass property. IP class is a map of client IP to visitor classification.

View Source
const (
	SecurityEventsOptions_Method_Acl             = "ACL"
	SecurityEventsOptions_Method_BaselineControl = "BASELINE-CONTROL"
	SecurityEventsOptions_Method_Bcopy           = "BCOPY"
	SecurityEventsOptions_Method_Bdelete         = "BDELETE"
	SecurityEventsOptions_Method_Bmove           = "BMOVE"
	SecurityEventsOptions_Method_Bpropfind       = "BPROPFIND"
	SecurityEventsOptions_Method_Bproppatch      = "BPROPPATCH"
	SecurityEventsOptions_Method_Checkin         = "CHECKIN"
	SecurityEventsOptions_Method_Checkout        = "CHECKOUT"
	SecurityEventsOptions_Method_Connect         = "CONNECT"
	SecurityEventsOptions_Method_Cook            = "COOK"
	SecurityEventsOptions_Method_Copy            = "COPY"
	SecurityEventsOptions_Method_Delete          = "DELETE"
	SecurityEventsOptions_Method_Get             = "GET"
	SecurityEventsOptions_Method_Head            = "HEAD"
	SecurityEventsOptions_Method_JSON            = "JSON"
	SecurityEventsOptions_Method_Label           = "LABEL"
	SecurityEventsOptions_Method_Lock            = "LOCK"
	SecurityEventsOptions_Method_Merge           = "MERGE"
	SecurityEventsOptions_Method_Mkactivity      = "MKACTIVITY"
	SecurityEventsOptions_Method_Mkcol           = "MKCOL"
	SecurityEventsOptions_Method_Mkworkspace     = "MKWORKSPACE"
	SecurityEventsOptions_Method_Move            = "MOVE"
	SecurityEventsOptions_Method_Notify          = "NOTIFY"
	SecurityEventsOptions_Method_Options         = "OPTIONS"
	SecurityEventsOptions_Method_Orderpatch      = "ORDERPATCH"
	SecurityEventsOptions_Method_Patch           = "PATCH"
	SecurityEventsOptions_Method_Poll            = "POLL"
	SecurityEventsOptions_Method_Post            = "POST"
	SecurityEventsOptions_Method_Propfind        = "PROPFIND"
	SecurityEventsOptions_Method_Proppatch       = "PROPPATCH"
	SecurityEventsOptions_Method_Purge           = "PURGE"
	SecurityEventsOptions_Method_Put             = "PUT"
	SecurityEventsOptions_Method_Report          = "REPORT"
	SecurityEventsOptions_Method_RpcInData       = "RPC_IN_DATA"
	SecurityEventsOptions_Method_RpcOutData      = "RPC_OUT_DATA"
	SecurityEventsOptions_Method_Search          = "SEARCH"
	SecurityEventsOptions_Method_Subscribe       = "SUBSCRIBE"
	SecurityEventsOptions_Method_Trace           = "TRACE"
	SecurityEventsOptions_Method_Track           = "TRACK"
	SecurityEventsOptions_Method_Uncheckout      = "UNCHECKOUT"
	SecurityEventsOptions_Method_Unlock          = "UNLOCK"
	SecurityEventsOptions_Method_Unsubscribe     = "UNSUBSCRIBE"
	SecurityEventsOptions_Method_Update          = "UPDATE"
	SecurityEventsOptions_Method_VersionControl  = "VERSION-CONTROL"
	SecurityEventsOptions_Method_XMsEnumatts     = "X-MS-ENUMATTS"
)

Constants associated with the SecurityEventsOptions.Method property. The HTTP method of the request.

View Source
const (
	SecurityEventsOptions_Scheme_Http    = "http"
	SecurityEventsOptions_Scheme_Https   = "https"
	SecurityEventsOptions_Scheme_Unknown = "unknown"
)

Constants associated with the SecurityEventsOptions.Scheme property. The scheme of the uri.

View Source
const (
	SecurityEventsOptions_Proto_Http10 = "HTTP/1.0"
	SecurityEventsOptions_Proto_Http11 = "HTTP/1.1"
	SecurityEventsOptions_Proto_Http12 = "HTTP/1.2"
	SecurityEventsOptions_Proto_Http2  = "HTTP/2"
	SecurityEventsOptions_Proto_Spdy31 = "SPDY/3.1"
	SecurityEventsOptions_Proto_Unk    = "UNK"
)

Constants associated with the SecurityEventsOptions.Proto property. The protocol of the request.

View Source
const (
	SecurityEventsOptions_Action_Allow           = "allow"
	SecurityEventsOptions_Action_Challenge       = "challenge"
	SecurityEventsOptions_Action_Connectionclose = "connectionClose"
	SecurityEventsOptions_Action_Drop            = "drop"
	SecurityEventsOptions_Action_Jschallenge     = "jschallenge"
	SecurityEventsOptions_Action_Log             = "log"
	SecurityEventsOptions_Action_Simulate        = "simulate"
	SecurityEventsOptions_Action_Unknown         = "unknown"
)

Constants associated with the SecurityEventsOptions.Action property. What type of action was taken.

View Source
const (
	SecurityEventsOptions_Source_Asn           = "asn"
	SecurityEventsOptions_Source_Bic           = "bic"
	SecurityEventsOptions_Source_Country       = "country"
	SecurityEventsOptions_Source_Firewallrules = "firewallRules"
	SecurityEventsOptions_Source_Hot           = "hot"
	SecurityEventsOptions_Source_Ip            = "ip"
	SecurityEventsOptions_Source_Iprange       = "ipRange"
	SecurityEventsOptions_Source_L7ddos        = "l7ddos"
	SecurityEventsOptions_Source_Ratelimit     = "rateLimit"
	SecurityEventsOptions_Source_Securitylevel = "securityLevel"
	SecurityEventsOptions_Source_Uablock       = "uaBlock"
	SecurityEventsOptions_Source_Unknown       = "unknown"
	SecurityEventsOptions_Source_Waf           = "waf"
	SecurityEventsOptions_Source_Zonelockdown  = "zoneLockdown"
)

Constants associated with the SecurityEventsOptions.Source property. Source of the event.

View Source
const (
	SecurityEventObject_Source_Asn           = "asn"
	SecurityEventObject_Source_Bic           = "bic"
	SecurityEventObject_Source_Country       = "country"
	SecurityEventObject_Source_Firewallrules = "firewallRules"
	SecurityEventObject_Source_Hot           = "hot"
	SecurityEventObject_Source_Ip            = "ip"
	SecurityEventObject_Source_Iprange       = "ipRange"
	SecurityEventObject_Source_L7ddos        = "l7ddos"
	SecurityEventObject_Source_Ratelimit     = "rateLimit"
	SecurityEventObject_Source_Securitylevel = "securityLevel"
	SecurityEventObject_Source_Uablock       = "uaBlock"
	SecurityEventObject_Source_Unknown       = "unknown"
	SecurityEventObject_Source_Waf           = "waf"
	SecurityEventObject_Source_Zonelockdown  = "zoneLockdown"
)

Constants associated with the SecurityEventObject.Source property. Source of the event.

View Source
const (
	SecurityEventObject_Action_Allow           = "allow"
	SecurityEventObject_Action_Challenge       = "challenge"
	SecurityEventObject_Action_Connectionclose = "connectionClose"
	SecurityEventObject_Action_Drop            = "drop"
	SecurityEventObject_Action_Jschallenge     = "jschallenge"
	SecurityEventObject_Action_Log             = "log"
	SecurityEventObject_Action_Simulate        = "simulate"
	SecurityEventObject_Action_Unknown         = "unknown"
)

Constants associated with the SecurityEventObject.Action property. What type of action was taken.

View Source
const (
	SecurityEventObject_IpClass_Backupservice     = "backupService"
	SecurityEventObject_IpClass_Badhost           = "badHost"
	SecurityEventObject_IpClass_Clean             = "clean"
	SecurityEventObject_IpClass_Greylist          = "greylist"
	SecurityEventObject_IpClass_Mobileplatform    = "mobilePlatform"
	SecurityEventObject_IpClass_Monitoringservice = "monitoringService"
	SecurityEventObject_IpClass_Norecord          = "noRecord"
	SecurityEventObject_IpClass_Scan              = "scan"
	SecurityEventObject_IpClass_Searchengine      = "searchEngine"
	SecurityEventObject_IpClass_Securityscanner   = "securityScanner"
	SecurityEventObject_IpClass_Tor               = "tor"
	SecurityEventObject_IpClass_Unknown           = "unknown"
	SecurityEventObject_IpClass_Whitelist         = "whitelist"
)

Constants associated with the SecurityEventObject.IpClass property. IP class is a map of client IP to visitor classification.

View Source
const (
	SecurityEventObject_Method_Acl             = "ACL"
	SecurityEventObject_Method_BaselineControl = "BASELINE-CONTROL"
	SecurityEventObject_Method_Bcopy           = "BCOPY"
	SecurityEventObject_Method_Bdelete         = "BDELETE"
	SecurityEventObject_Method_Bmove           = "BMOVE"
	SecurityEventObject_Method_Bpropfind       = "BPROPFIND"
	SecurityEventObject_Method_Bproppatch      = "BPROPPATCH"
	SecurityEventObject_Method_Checkin         = "CHECKIN"
	SecurityEventObject_Method_Checkout        = "CHECKOUT"
	SecurityEventObject_Method_Connect         = "CONNECT"
	SecurityEventObject_Method_Cook            = "COOK"
	SecurityEventObject_Method_Copy            = "COPY"
	SecurityEventObject_Method_Delete          = "DELETE"
	SecurityEventObject_Method_Get             = "GET"
	SecurityEventObject_Method_Head            = "HEAD"
	SecurityEventObject_Method_JSON            = "JSON"
	SecurityEventObject_Method_Label           = "LABEL"
	SecurityEventObject_Method_Lock            = "LOCK"
	SecurityEventObject_Method_Merge           = "MERGE"
	SecurityEventObject_Method_Mkactivity      = "MKACTIVITY"
	SecurityEventObject_Method_Mkcol           = "MKCOL"
	SecurityEventObject_Method_Mkworkspace     = "MKWORKSPACE"
	SecurityEventObject_Method_Move            = "MOVE"
	SecurityEventObject_Method_Notify          = "NOTIFY"
	SecurityEventObject_Method_Options         = "OPTIONS"
	SecurityEventObject_Method_Orderpatch      = "ORDERPATCH"
	SecurityEventObject_Method_Patch           = "PATCH"
	SecurityEventObject_Method_Poll            = "POLL"
	SecurityEventObject_Method_Post            = "POST"
	SecurityEventObject_Method_Propfind        = "PROPFIND"
	SecurityEventObject_Method_Proppatch       = "PROPPATCH"
	SecurityEventObject_Method_Purge           = "PURGE"
	SecurityEventObject_Method_Put             = "PUT"
	SecurityEventObject_Method_Report          = "REPORT"
	SecurityEventObject_Method_RpcInData       = "RPC_IN_DATA"
	SecurityEventObject_Method_RpcOutData      = "RPC_OUT_DATA"
	SecurityEventObject_Method_Search          = "SEARCH"
	SecurityEventObject_Method_Subscribe       = "SUBSCRIBE"
	SecurityEventObject_Method_Trace           = "TRACE"
	SecurityEventObject_Method_Track           = "TRACK"
	SecurityEventObject_Method_Uncheckout      = "UNCHECKOUT"
	SecurityEventObject_Method_Unlock          = "UNLOCK"
	SecurityEventObject_Method_Unsubscribe     = "UNSUBSCRIBE"
	SecurityEventObject_Method_Update          = "UPDATE"
	SecurityEventObject_Method_VersionControl  = "VERSION-CONTROL"
	SecurityEventObject_Method_XMsEnumatts     = "X-MS-ENUMATTS"
)

Constants associated with the SecurityEventObject.Method property. The HTTP method of the request.

View Source
const (
	SecurityEventObject_Proto_Http10 = "HTTP/1.0"
	SecurityEventObject_Proto_Http11 = "HTTP/1.1"
	SecurityEventObject_Proto_Http12 = "HTTP/1.2"
	SecurityEventObject_Proto_Http2  = "HTTP/2"
	SecurityEventObject_Proto_Spdy31 = "SPDY/3.1"
	SecurityEventObject_Proto_Unk    = "UNK"
)

Constants associated with the SecurityEventObject.Proto property. The protocol of the request.

View Source
const (
	SecurityEventObject_Scheme_Http    = "http"
	SecurityEventObject_Scheme_Https   = "https"
	SecurityEventObject_Scheme_Unknown = "unknown"
)

Constants associated with the SecurityEventObject.Scheme property. The scheme of the uri.

View Source
const DefaultServiceName = "security_events_api"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"

DefaultServiceURL is the default URL to make service requests to.

View Source
const (
	SecurityEventObject_Kind_Firewall = "firewall"
)

Constants associated with the SecurityEventObject.Kind property. Kind of events. Now it is only firewall.

View Source
const (
	SecurityEventsOptions_Kind_Firewall = "firewall"
)

Constants associated with the SecurityEventsOptions.Kind property. Kind of events. Now it is only firewall.

Variables

This section is empty.

Functions

func GetServiceURLForRegion added in v0.12.1

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalResultInfo

func UnmarshalResultInfo(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResultInfo unmarshals an instance of ResultInfo from the specified map of raw messages.

func UnmarshalResultInfoCursors

func UnmarshalResultInfoCursors(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResultInfoCursors unmarshals an instance of ResultInfoCursors from the specified map of raw messages.

func UnmarshalResultInfoScannedRange

func UnmarshalResultInfoScannedRange(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalResultInfoScannedRange unmarshals an instance of ResultInfoScannedRange from the specified map of raw messages.

func UnmarshalSecurityEventObject

func UnmarshalSecurityEventObject(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalSecurityEventObject unmarshals an instance of SecurityEventObject from the specified map of raw messages.

func UnmarshalSecurityEventObjectMatchesItem

func UnmarshalSecurityEventObjectMatchesItem(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalSecurityEventObjectMatchesItem unmarshals an instance of SecurityEventObjectMatchesItem from the specified map of raw messages.

func UnmarshalSecurityEvents

func UnmarshalSecurityEvents(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalSecurityEvents unmarshals an instance of SecurityEvents from the specified map of raw messages.

Types

type ResultInfo

type ResultInfo struct {
	// Cursor positions of the security events.
	Cursors *ResultInfoCursors `json:"cursors" validate:"required"`

	// The time window of the events.
	ScannedRange *ResultInfoScannedRange `json:"scanned_range" validate:"required"`
}

ResultInfo : Statistics of results.

type ResultInfoCursors

type ResultInfoCursors struct {
	// The events in the response is after this cursor position.
	After *string `json:"after" validate:"required"`

	// The events in the response is before this cursor position.
	Before *string `json:"before" validate:"required"`
}

ResultInfoCursors : Cursor positions of the security events.

type ResultInfoScannedRange

type ResultInfoScannedRange struct {
	// Start date and time of the events.
	Since *string `json:"since" validate:"required"`

	// End date and time of the events.
	Until *string `json:"until" validate:"required"`
}

ResultInfoScannedRange : The time window of the events.

type SecurityEventObject

type SecurityEventObject struct {
	// Ray ID of the request.
	RayID *string `json:"ray_id" validate:"required"`

	// Kind of events. Now it is only firewall.
	Kind *string `json:"kind" validate:"required"`

	// Source of the event.
	Source *string `json:"source" validate:"required"`

	// What type of action was taken.
	Action *string `json:"action" validate:"required"`

	// The ID of the rule that triggered the event, should be considered in the context of source.
	RuleID *string `json:"rule_id" validate:"required"`

	// The IPv4 or IPv6 address from which the request originated.
	Ip *string `json:"ip" validate:"required"`

	// IP class is a map of client IP to visitor classification.
	IpClass *string `json:"ip_class" validate:"required"`

	// The 2-digit country code in which the request originated.
	Country *string `json:"country" validate:"required"`

	// The 3-letter CF PoP code.
	Colo *string `json:"colo" validate:"required"`

	// The hostname the request attempted to access.
	Host *string `json:"host" validate:"required"`

	// The HTTP method of the request.
	Method *string `json:"method" validate:"required"`

	// The protocol of the request.
	Proto *string `json:"proto" validate:"required"`

	// The scheme of the uri.
	Scheme *string `json:"scheme" validate:"required"`

	// The client user agent that initiated the request.
	Ua *string `json:"ua" validate:"required"`

	// The URI requested from the hostname.
	URI *string `json:"uri" validate:"required"`

	// The time that the event occurred.
	OccurredAt *strfmt.DateTime `json:"occurred_at" validate:"required"`

	// The firewall rules those the event matches.
	Matches []SecurityEventObjectMatchesItem `json:"matches" validate:"required"`
}

SecurityEventObject : Security event object.

type SecurityEventObjectMatchesItem

type SecurityEventObjectMatchesItem struct {
	// The ID of the rule that triggered the event, should be considered in the context of source.
	RuleID *string `json:"rule_id" validate:"required"`

	// Source of the event.
	Source *string `json:"source" validate:"required"`

	// What type of action was taken.
	Action *string `json:"action" validate:"required"`

	// metadata.
	Metadata interface{} `json:"metadata" validate:"required"`
}

SecurityEventObjectMatchesItem : SecurityEventObjectMatchesItem struct

type SecurityEvents

type SecurityEvents struct {
	// Container for response information.
	Result []SecurityEventObject `json:"result" validate:"required"`

	// Statistics of results.
	ResultInfo *ResultInfo `json:"result_info" validate:"required"`

	// Was the get successful.
	Success *bool `json:"success" validate:"required"`

	// Array of errors encountered.
	Errors [][]string `json:"errors" validate:"required"`

	// Array of messages returned.
	Messages [][]string `json:"messages" validate:"required"`
}

SecurityEvents : security events objects.

type SecurityEventsApiV1

type SecurityEventsApiV1 struct {
	Service *core.BaseService

	// Full url-encoded cloud resource name (CRN) of resource instance.
	Crn *string

	// zone identifier.
	ZoneID *string
}

SecurityEventsApiV1 : Security Events API

Version: 1.0.0

func NewSecurityEventsApiV1

func NewSecurityEventsApiV1(options *SecurityEventsApiV1Options) (service *SecurityEventsApiV1, err error)

NewSecurityEventsApiV1 : constructs an instance of SecurityEventsApiV1 with passed in options.

func NewSecurityEventsApiV1UsingExternalConfig

func NewSecurityEventsApiV1UsingExternalConfig(options *SecurityEventsApiV1Options) (securityEventsApi *SecurityEventsApiV1, err error)

NewSecurityEventsApiV1UsingExternalConfig : constructs an instance of SecurityEventsApiV1 with passed in options and external configuration.

func (*SecurityEventsApiV1) Clone added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) Clone() *SecurityEventsApiV1

Clone makes a copy of "securityEventsApi" suitable for processing requests.

func (*SecurityEventsApiV1) DisableRetries added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*SecurityEventsApiV1) EnableRetries added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*SecurityEventsApiV1) GetEnableGzipCompression added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*SecurityEventsApiV1) GetServiceURL added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*SecurityEventsApiV1) NewSecurityEventsOptions

func (*SecurityEventsApiV1) NewSecurityEventsOptions() *SecurityEventsOptions

NewSecurityEventsOptions : Instantiate SecurityEventsOptions

func (*SecurityEventsApiV1) SecurityEvents

func (securityEventsApi *SecurityEventsApiV1) SecurityEvents(securityEventsOptions *SecurityEventsOptions) (result *SecurityEvents, response *core.DetailedResponse, err error)

SecurityEvents : Logs of the mitigations performed by Firewall features Provides a full log of the mitigations performed by the CIS Firewall features including; Firewall Rules, Rate Limiting, Security Level, Access Rules (IP, IP Range, ASN, and Country), WAF (Web Application Firewall), User Agent Blocking, Zone Lockdown, and Advanced DDoS Protection. (DEPRECATED: use Firewall Event Analytics API instead).

func (*SecurityEventsApiV1) SecurityEventsWithContext added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) SecurityEventsWithContext(ctx context.Context, securityEventsOptions *SecurityEventsOptions) (result *SecurityEvents, response *core.DetailedResponse, err error)

SecurityEventsWithContext is an alternate form of the SecurityEvents method which supports a Context parameter

func (*SecurityEventsApiV1) SetDefaultHeaders added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*SecurityEventsApiV1) SetEnableGzipCompression added in v0.12.1

func (securityEventsApi *SecurityEventsApiV1) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*SecurityEventsApiV1) SetServiceURL

func (securityEventsApi *SecurityEventsApiV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

type SecurityEventsApiV1Options

type SecurityEventsApiV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator

	// Full url-encoded cloud resource name (CRN) of resource instance.
	Crn *string `validate:"required"`

	// zone identifier.
	ZoneID *string `validate:"required"`
}

SecurityEventsApiV1Options : Service options

type SecurityEventsOptions

type SecurityEventsOptions struct {
	// IP class is a map of client IP to visitor classification.
	IpClass *string `json:"ip_class,omitempty"`

	// The HTTP method of the request.
	Method *string `json:"method,omitempty"`

	// The scheme of the uri.
	Scheme *string `json:"scheme,omitempty"`

	// The IPv4 or IPv6 address from which the request originated.
	Ip *string `json:"ip,omitempty"`

	// The hostname the request attempted to access.
	Host *string `json:"host,omitempty"`

	// The protocol of the request.
	Proto *string `json:"proto,omitempty"`

	// The URI requested from the hostname.
	URI *string `json:"uri,omitempty"`

	// The client user agent that initiated the request.
	Ua *string `json:"ua,omitempty"`

	// The 3-letter CF PoP code.
	Colo *string `json:"colo,omitempty"`

	// Ray ID of the request.
	RayID *string `json:"ray_id,omitempty"`

	// Kind of events. Now it is only firewall.
	Kind *string `json:"kind,omitempty"`

	// What type of action was taken.
	Action *string `json:"action,omitempty"`

	// Cursor position and direction for requesting next set of records when amount of results was limited by the limit
	// parameter. A valid value for the cursor can be obtained from the cursors object in the result_info structure.
	Cursor *string `json:"cursor,omitempty"`

	// The 2-digit country code in which the request originated.
	Country *string `json:"country,omitempty"`

	// Start date and time of requesting data period in the ISO8601 format. Can't go back more than a year.
	Since *strfmt.DateTime `json:"since,omitempty"`

	// Source of the event.
	Source *string `json:"source,omitempty"`

	// The number of events to return.
	Limit *int64 `json:"limit,omitempty"`

	// The ID of the rule that triggered the event, should be considered in the context of source.
	RuleID *string `json:"rule_id,omitempty"`

	// End date and time of requesting data period in the ISO8601 format.
	Until *strfmt.DateTime `json:"until,omitempty"`

	// Allows users to set headers on API requests
	Headers map[string]string
}

SecurityEventsOptions : The SecurityEvents options.

func (*SecurityEventsOptions) SetAction

func (options *SecurityEventsOptions) SetAction(action string) *SecurityEventsOptions

SetAction : Allow user to set Action

func (*SecurityEventsOptions) SetColo

func (options *SecurityEventsOptions) SetColo(colo string) *SecurityEventsOptions

SetColo : Allow user to set Colo

func (*SecurityEventsOptions) SetCountry

func (options *SecurityEventsOptions) SetCountry(country string) *SecurityEventsOptions

SetCountry : Allow user to set Country

func (*SecurityEventsOptions) SetCursor

func (options *SecurityEventsOptions) SetCursor(cursor string) *SecurityEventsOptions

SetCursor : Allow user to set Cursor

func (*SecurityEventsOptions) SetHeaders

func (options *SecurityEventsOptions) SetHeaders(param map[string]string) *SecurityEventsOptions

SetHeaders : Allow user to set Headers

func (*SecurityEventsOptions) SetHost

func (options *SecurityEventsOptions) SetHost(host string) *SecurityEventsOptions

SetHost : Allow user to set Host

func (*SecurityEventsOptions) SetIp

SetIp : Allow user to set Ip

func (*SecurityEventsOptions) SetIpClass

func (options *SecurityEventsOptions) SetIpClass(ipClass string) *SecurityEventsOptions

SetIpClass : Allow user to set IpClass

func (*SecurityEventsOptions) SetKind

func (options *SecurityEventsOptions) SetKind(kind string) *SecurityEventsOptions

SetKind : Allow user to set Kind

func (*SecurityEventsOptions) SetLimit

func (options *SecurityEventsOptions) SetLimit(limit int64) *SecurityEventsOptions

SetLimit : Allow user to set Limit

func (*SecurityEventsOptions) SetMethod

func (options *SecurityEventsOptions) SetMethod(method string) *SecurityEventsOptions

SetMethod : Allow user to set Method

func (*SecurityEventsOptions) SetProto

func (options *SecurityEventsOptions) SetProto(proto string) *SecurityEventsOptions

SetProto : Allow user to set Proto

func (*SecurityEventsOptions) SetRayID

func (options *SecurityEventsOptions) SetRayID(rayID string) *SecurityEventsOptions

SetRayID : Allow user to set RayID

func (*SecurityEventsOptions) SetRuleID

func (options *SecurityEventsOptions) SetRuleID(ruleID string) *SecurityEventsOptions

SetRuleID : Allow user to set RuleID

func (*SecurityEventsOptions) SetScheme

func (options *SecurityEventsOptions) SetScheme(scheme string) *SecurityEventsOptions

SetScheme : Allow user to set Scheme

func (*SecurityEventsOptions) SetSince

func (options *SecurityEventsOptions) SetSince(since *strfmt.DateTime) *SecurityEventsOptions

SetSince : Allow user to set Since

func (*SecurityEventsOptions) SetSource

func (options *SecurityEventsOptions) SetSource(source string) *SecurityEventsOptions

SetSource : Allow user to set Source

func (*SecurityEventsOptions) SetURI

func (options *SecurityEventsOptions) SetURI(uri string) *SecurityEventsOptions

SetURI : Allow user to set URI

func (*SecurityEventsOptions) SetUa

SetUa : Allow user to set Ua

func (*SecurityEventsOptions) SetUntil

func (options *SecurityEventsOptions) SetUntil(until *strfmt.DateTime) *SecurityEventsOptions

SetUntil : Allow user to set Until

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL