HostVulnerability

class oci.vulnerability_scanning.models.HostVulnerability(**kwargs)

Bases: object

A vulnerability found in one or more host scans in a compartment

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a HostVulnerability.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a HostVulnerability.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a HostVulnerability.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a HostVulnerability.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a HostVulnerability.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a HostVulnerability.
SEVERITY_CRITICAL A constant which can be used with the severity property of a HostVulnerability.
SEVERITY_HIGH A constant which can be used with the severity property of a HostVulnerability.
SEVERITY_LOW A constant which can be used with the severity property of a HostVulnerability.
SEVERITY_MEDIUM A constant which can be used with the severity property of a HostVulnerability.
SEVERITY_NONE A constant which can be used with the severity property of a HostVulnerability.
STATE_FIXED A constant which can be used with the state property of a HostVulnerability.
STATE_NOT_APPLICABLE A constant which can be used with the state property of a HostVulnerability.
STATE_OPEN A constant which can be used with the state property of a HostVulnerability.
VULNERABILITY_TYPE_CVE A constant which can be used with the vulnerability_type property of a HostVulnerability.
VULNERABILITY_TYPE_PROBLEM A constant which can be used with the vulnerability_type property of a HostVulnerability.
authentication Gets the authentication of this HostVulnerability.
compartment_id [Required] Gets the compartment_id of this HostVulnerability.
cve_details Gets the cve_details of this HostVulnerability.
cve_reference Gets the cve_reference of this HostVulnerability.
host_count [Required] Gets the host_count of this HostVulnerability.
id [Required] Gets the id of this HostVulnerability.
lifecycle_state Gets the lifecycle_state of this HostVulnerability.
name [Required] Gets the name of this HostVulnerability.
severity [Required] Gets the severity of this HostVulnerability.
state Gets the state of this HostVulnerability.
time_first_detected [Required] Gets the time_first_detected of this HostVulnerability.
time_last_detected [Required] Gets the time_last_detected of this HostVulnerability.
vulnerability_type [Required] Gets the vulnerability_type of this HostVulnerability.

Methods

__init__(**kwargs) Initializes a new HostVulnerability object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a HostVulnerability. This constant has a value of “UPDATING”

SEVERITY_CRITICAL = 'CRITICAL'

A constant which can be used with the severity property of a HostVulnerability. This constant has a value of “CRITICAL”

SEVERITY_HIGH = 'HIGH'

A constant which can be used with the severity property of a HostVulnerability. This constant has a value of “HIGH”

SEVERITY_LOW = 'LOW'

A constant which can be used with the severity property of a HostVulnerability. This constant has a value of “LOW”

SEVERITY_MEDIUM = 'MEDIUM'

A constant which can be used with the severity property of a HostVulnerability. This constant has a value of “MEDIUM”

SEVERITY_NONE = 'NONE'

A constant which can be used with the severity property of a HostVulnerability. This constant has a value of “NONE”

STATE_FIXED = 'FIXED'

A constant which can be used with the state property of a HostVulnerability. This constant has a value of “FIXED”

STATE_NOT_APPLICABLE = 'NOT_APPLICABLE'

A constant which can be used with the state property of a HostVulnerability. This constant has a value of “NOT_APPLICABLE”

STATE_OPEN = 'OPEN'

A constant which can be used with the state property of a HostVulnerability. This constant has a value of “OPEN”

VULNERABILITY_TYPE_CVE = 'CVE'

A constant which can be used with the vulnerability_type property of a HostVulnerability. This constant has a value of “CVE”

VULNERABILITY_TYPE_PROBLEM = 'PROBLEM'

A constant which can be used with the vulnerability_type property of a HostVulnerability. This constant has a value of “PROBLEM”

__init__(**kwargs)

Initializes a new HostVulnerability object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this HostVulnerability.
  • compartment_id (str) – The value to assign to the compartment_id property of this HostVulnerability.
  • authentication (str) – The value to assign to the authentication property of this HostVulnerability.
  • cve_reference (str) – The value to assign to the cve_reference property of this HostVulnerability.
  • cve_details (oci.vulnerability_scanning.models.CveDetails) – The value to assign to the cve_details property of this HostVulnerability.
  • severity (str) – The value to assign to the severity property of this HostVulnerability. Allowed values for this property are: “NONE”, “LOW”, “MEDIUM”, “HIGH”, “CRITICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • state (str) – The value to assign to the state property of this HostVulnerability. Allowed values for this property are: “OPEN”, “FIXED”, “NOT_APPLICABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • name (str) – The value to assign to the name property of this HostVulnerability.
  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this HostVulnerability.
  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this HostVulnerability.
  • host_count (int) – The value to assign to the host_count property of this HostVulnerability.
  • vulnerability_type (str) – The value to assign to the vulnerability_type property of this HostVulnerability. Allowed values for this property are: “CVE”, “PROBLEM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this HostVulnerability. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
authentication

Gets the authentication of this HostVulnerability. Mechanism used for scan authentication

Returns:The authentication of this HostVulnerability.
Return type:str
compartment_id

[Required] Gets the compartment_id of this HostVulnerability. Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location

Returns:The compartment_id of this HostVulnerability.
Return type:str
cve_details

Gets the cve_details of this HostVulnerability.

Returns:The cve_details of this HostVulnerability.
Return type:oci.vulnerability_scanning.models.CveDetails
cve_reference

Gets the cve_reference of this HostVulnerability. Reference to MITRE CVE ID

Returns:The cve_reference of this HostVulnerability.
Return type:str
host_count

[Required] Gets the host_count of this HostVulnerability. Number of scanned hosts in this compartment whose scan results currently report this vulnerability

Returns:The host_count of this HostVulnerability.
Return type:int
id

[Required] Gets the id of this HostVulnerability. ID of the vulnerability

Returns:The id of this HostVulnerability.
Return type:str
lifecycle_state

Gets the lifecycle_state of this HostVulnerability. The current state of the resource.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this HostVulnerability.
Return type:str
name

[Required] Gets the name of this HostVulnerability. Vulnerability name

Returns:The name of this HostVulnerability.
Return type:str
severity

[Required] Gets the severity of this HostVulnerability. Severity of the vulnerability

Allowed values for this property are: “NONE”, “LOW”, “MEDIUM”, “HIGH”, “CRITICAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The severity of this HostVulnerability.
Return type:str
state

Gets the state of this HostVulnerability. State of the vulnerability

Allowed values for this property are: “OPEN”, “FIXED”, “NOT_APPLICABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The state of this HostVulnerability.
Return type:str
time_first_detected

[Required] Gets the time_first_detected of this HostVulnerability. Date of scan result that first reported the vulnerability

Returns:The time_first_detected of this HostVulnerability.
Return type:datetime
time_last_detected

[Required] Gets the time_last_detected of this HostVulnerability. Date of scan result that most recently reported the vulnerability

Returns:The time_last_detected of this HostVulnerability.
Return type:datetime
vulnerability_type

[Required] Gets the vulnerability_type of this HostVulnerability. Specifies the type of Vulnerability

Allowed values for this property are: “CVE”, “PROBLEM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The vulnerability_type of this HostVulnerability.
Return type:str