HostVulnerabilitySummary

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

Bases: object

Summary of a host scan vulnerability

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a HostVulnerabilitySummary.

SEVERITY_CRITICAL

A constant which can be used with the severity property of a HostVulnerabilitySummary.

SEVERITY_HIGH

A constant which can be used with the severity property of a HostVulnerabilitySummary.

SEVERITY_LOW

A constant which can be used with the severity property of a HostVulnerabilitySummary.

SEVERITY_MEDIUM

A constant which can be used with the severity property of a HostVulnerabilitySummary.

SEVERITY_NONE

A constant which can be used with the severity property of a HostVulnerabilitySummary.

STATE_FIXED

A constant which can be used with the state property of a HostVulnerabilitySummary.

STATE_NOT_APPLICABLE

A constant which can be used with the state property of a HostVulnerabilitySummary.

STATE_OPEN

A constant which can be used with the state property of a HostVulnerabilitySummary.

VULNERABILITY_TYPE_CVE

A constant which can be used with the vulnerability_type property of a HostVulnerabilitySummary.

VULNERABILITY_TYPE_PROBLEM

A constant which can be used with the vulnerability_type property of a HostVulnerabilitySummary.

compartment_id

[Required] Gets the compartment_id of this HostVulnerabilitySummary.

cve_reference

Gets the cve_reference of this HostVulnerabilitySummary.

host_count

[Required] Gets the host_count of this HostVulnerabilitySummary.

id

[Required] Gets the id of this HostVulnerabilitySummary.

lifecycle_state

Gets the lifecycle_state of this HostVulnerabilitySummary.

name

[Required] Gets the name of this HostVulnerabilitySummary.

severity

[Required] Gets the severity of this HostVulnerabilitySummary.

state

Gets the state of this HostVulnerabilitySummary.

time_first_detected

[Required] Gets the time_first_detected of this HostVulnerabilitySummary.

time_last_detected

[Required] Gets the time_last_detected of this HostVulnerabilitySummary.

vulnerability_type

[Required] Gets the vulnerability_type of this HostVulnerabilitySummary.

Methods:

__init__(**kwargs)

Initializes a new HostVulnerabilitySummary object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

SEVERITY_CRITICAL = 'CRITICAL'

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

SEVERITY_HIGH = 'HIGH'

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

SEVERITY_LOW = 'LOW'

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

SEVERITY_MEDIUM = 'MEDIUM'

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

SEVERITY_NONE = 'NONE'

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

STATE_FIXED = 'FIXED'

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

STATE_NOT_APPLICABLE = 'NOT_APPLICABLE'

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

STATE_OPEN = 'OPEN'

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

VULNERABILITY_TYPE_CVE = 'CVE'

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

VULNERABILITY_TYPE_PROBLEM = 'PROBLEM'

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

__init__(**kwargs)

Initializes a new HostVulnerabilitySummary 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 HostVulnerabilitySummary.

  • compartment_id (str) – The value to assign to the compartment_id property of this HostVulnerabilitySummary.

  • cve_reference (str) – The value to assign to the cve_reference property of this HostVulnerabilitySummary.

  • severity (str) – The value to assign to the severity property of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary. 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 HostVulnerabilitySummary.

  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this HostVulnerabilitySummary.

  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this HostVulnerabilitySummary.

  • host_count (int) – The value to assign to the host_count property of this HostVulnerabilitySummary.

  • vulnerability_type (str) – The value to assign to the vulnerability_type property of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary. 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’.

property compartment_id

[Required] Gets the compartment_id of this HostVulnerabilitySummary. Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments.

Returns

The compartment_id of this HostVulnerabilitySummary.

Return type

str

property cve_reference

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

Returns

The cve_reference of this HostVulnerabilitySummary.

Return type

str

property host_count

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

Returns

The host_count of this HostVulnerabilitySummary.

Return type

int

property id

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

Returns

The id of this HostVulnerabilitySummary.

Return type

str

property lifecycle_state

Gets the lifecycle_state of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary.

Return type

str

property name

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

Returns

The name of this HostVulnerabilitySummary.

Return type

str

property severity

[Required] Gets the severity of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary.

Return type

str

property state

Gets the state of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary.

Return type

str

property time_first_detected

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

Returns

The time_first_detected of this HostVulnerabilitySummary.

Return type

datetime

property time_last_detected

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

Returns

The time_last_detected of this HostVulnerabilitySummary.

Return type

datetime

property vulnerability_type

[Required] Gets the vulnerability_type of this HostVulnerabilitySummary. 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 HostVulnerabilitySummary.

Return type

str