VulnerabilitySummary

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

Bases: object

Summary of a scan vulnerability

Attributes

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

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

SEVERITY_CRITICAL = 'CRITICAL'

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

SEVERITY_HIGH = 'HIGH'

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

SEVERITY_LOW = 'LOW'

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

SEVERITY_MEDIUM = 'MEDIUM'

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

SEVERITY_NONE = 'NONE'

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

STATE_FIXED = 'FIXED'

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

STATE_NOT_APPLICABLE = 'NOT_APPLICABLE'

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

STATE_OPEN = 'OPEN'

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

VULNERABILITY_TYPE_CVE = 'CVE'

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

VULNERABILITY_TYPE_PROBLEM = 'PROBLEM'

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

__init__(**kwargs)

Initializes a new VulnerabilitySummary 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 VulnerabilitySummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this VulnerabilitySummary.
  • vulnerability_reference (str) – The value to assign to the vulnerability_reference property of this VulnerabilitySummary.
  • severity (str) – The value to assign to the severity property of this VulnerabilitySummary. 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 VulnerabilitySummary. 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’.
  • cve_description (str) – The value to assign to the cve_description property of this VulnerabilitySummary.
  • name (str) – The value to assign to the name property of this VulnerabilitySummary.
  • time_last_detected (datetime) – The value to assign to the time_last_detected property of this VulnerabilitySummary.
  • time_first_detected (datetime) – The value to assign to the time_first_detected property of this VulnerabilitySummary.
  • impacted_resources_count (oci.vulnerability_scanning.models.ImpactedResourcesCount) – The value to assign to the impacted_resources_count property of this VulnerabilitySummary.
  • vulnerability_type (str) – The value to assign to the vulnerability_type property of this VulnerabilitySummary. 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 VulnerabilitySummary. 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’.
compartment_id

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

Returns:The compartment_id of this VulnerabilitySummary.
Return type:str
cve_description

Gets the cve_description of this VulnerabilitySummary. The description of CVE vulnerability

Returns:The cve_description of this VulnerabilitySummary.
Return type:str
id

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

Returns:The id of this VulnerabilitySummary.
Return type:str
impacted_resources_count

[Required] Gets the impacted_resources_count of this VulnerabilitySummary.

Returns:The impacted_resources_count of this VulnerabilitySummary.
Return type:oci.vulnerability_scanning.models.ImpactedResourcesCount
lifecycle_state

Gets the lifecycle_state of this VulnerabilitySummary. 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 VulnerabilitySummary.
Return type:str
name

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

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

[Required] Gets the severity of this VulnerabilitySummary. 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 VulnerabilitySummary.
Return type:str
state

Gets the state of this VulnerabilitySummary. 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 VulnerabilitySummary.
Return type:str
time_first_detected

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

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

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

Returns:The time_last_detected of this VulnerabilitySummary.
Return type:datetime
vulnerability_reference

Gets the vulnerability_reference of this VulnerabilitySummary. Reference to the vulnerability type’s unique identifier. For CVE, this is the MITRE CVE ID

Returns:The vulnerability_reference of this VulnerabilitySummary.
Return type:str
vulnerability_type

[Required] Gets the vulnerability_type of this VulnerabilitySummary. 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 VulnerabilitySummary.
Return type:str