Vulnerability¶
-
class
oci.vulnerability_scanning.models.
Vulnerability
(**kwargs)¶ Bases:
object
A vulnerability found from scans in a compartment
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a Vulnerability. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a Vulnerability. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a Vulnerability. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a Vulnerability. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a Vulnerability. LIFECYCLE_STATE_UPDATING
A constant which can be used with the lifecycle_state property of a Vulnerability. SEVERITY_CRITICAL
A constant which can be used with the severity property of a Vulnerability. SEVERITY_HIGH
A constant which can be used with the severity property of a Vulnerability. SEVERITY_LOW
A constant which can be used with the severity property of a Vulnerability. SEVERITY_MEDIUM
A constant which can be used with the severity property of a Vulnerability. SEVERITY_NONE
A constant which can be used with the severity property of a Vulnerability. STATE_FIXED
A constant which can be used with the state property of a Vulnerability. STATE_NOT_APPLICABLE
A constant which can be used with the state property of a Vulnerability. STATE_OPEN
A constant which can be used with the state property of a Vulnerability. VULNERABILITY_TYPE_CVE
A constant which can be used with the vulnerability_type property of a Vulnerability. VULNERABILITY_TYPE_PROBLEM
A constant which can be used with the vulnerability_type property of a Vulnerability. authentication
Gets the authentication of this Vulnerability. compartment_id
[Required] Gets the compartment_id of this Vulnerability. cve_description
Gets the cve_description of this Vulnerability. cve_details
Gets the cve_details of this Vulnerability. id
[Required] Gets the id of this Vulnerability. impacted_resources_count
[Required] Gets the impacted_resources_count of this Vulnerability. lifecycle_state
Gets the lifecycle_state of this Vulnerability. name
[Required] Gets the name of this Vulnerability. severity
[Required] Gets the severity of this Vulnerability. state
Gets the state of this Vulnerability. time_first_detected
[Required] Gets the time_first_detected of this Vulnerability. time_last_detected
[Required] Gets the time_last_detected of this Vulnerability. vulnerability_reference
Gets the vulnerability_reference of this Vulnerability. vulnerability_type
[Required] Gets the vulnerability_type of this Vulnerability. Methods
__init__
(**kwargs)Initializes a new Vulnerability object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a Vulnerability. This constant has a value of “UPDATING”
-
SEVERITY_CRITICAL
= 'CRITICAL'¶ A constant which can be used with the severity property of a Vulnerability. This constant has a value of “CRITICAL”
-
SEVERITY_HIGH
= 'HIGH'¶ A constant which can be used with the severity property of a Vulnerability. This constant has a value of “HIGH”
-
SEVERITY_LOW
= 'LOW'¶ A constant which can be used with the severity property of a Vulnerability. This constant has a value of “LOW”
-
SEVERITY_MEDIUM
= 'MEDIUM'¶ A constant which can be used with the severity property of a Vulnerability. This constant has a value of “MEDIUM”
-
SEVERITY_NONE
= 'NONE'¶ A constant which can be used with the severity property of a Vulnerability. This constant has a value of “NONE”
-
STATE_FIXED
= 'FIXED'¶ A constant which can be used with the state property of a Vulnerability. This constant has a value of “FIXED”
-
STATE_NOT_APPLICABLE
= 'NOT_APPLICABLE'¶ A constant which can be used with the state property of a Vulnerability. This constant has a value of “NOT_APPLICABLE”
-
STATE_OPEN
= 'OPEN'¶ A constant which can be used with the state property of a Vulnerability. This constant has a value of “OPEN”
-
VULNERABILITY_TYPE_CVE
= 'CVE'¶ A constant which can be used with the vulnerability_type property of a Vulnerability. This constant has a value of “CVE”
-
VULNERABILITY_TYPE_PROBLEM
= 'PROBLEM'¶ A constant which can be used with the vulnerability_type property of a Vulnerability. This constant has a value of “PROBLEM”
-
__init__
(**kwargs)¶ Initializes a new Vulnerability 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 Vulnerability.
- compartment_id (str) – The value to assign to the compartment_id property of this Vulnerability.
- authentication (str) – The value to assign to the authentication property of this Vulnerability.
- vulnerability_reference (str) – The value to assign to the vulnerability_reference property of this Vulnerability.
- cve_details (oci.vulnerability_scanning.models.CveDetails) – The value to assign to the cve_details property of this Vulnerability.
- severity (str) – The value to assign to the severity property of this 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’.
- state (str) – The value to assign to the state property of this 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’.
- cve_description (str) – The value to assign to the cve_description property of this Vulnerability.
- name (str) – The value to assign to the name property of this Vulnerability.
- time_last_detected (datetime) – The value to assign to the time_last_detected property of this Vulnerability.
- time_first_detected (datetime) – The value to assign to the time_first_detected property of this Vulnerability.
- impacted_resources_count (oci.vulnerability_scanning.models.ImpactedResourcesCount) – The value to assign to the impacted_resources_count property of this Vulnerability.
- vulnerability_type (str) – The value to assign to the vulnerability_type property of this 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’.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Vulnerability. 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 Vulnerability. Mechanism used for scan authentication
Returns: The authentication of this Vulnerability. Return type: str
-
compartment_id
¶ [Required] Gets the compartment_id of this Vulnerability. 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 Vulnerability. Return type: str
-
cve_description
¶ Gets the cve_description of this Vulnerability. The description of CVE vulnerability
Returns: The cve_description of this Vulnerability. Return type: str
-
cve_details
¶ Gets the cve_details of this Vulnerability.
Returns: The cve_details of this Vulnerability. Return type: oci.vulnerability_scanning.models.CveDetails
-
id
¶ [Required] Gets the id of this Vulnerability. ID of the vulnerability
Returns: The id of this Vulnerability. Return type: str
-
impacted_resources_count
¶ [Required] Gets the impacted_resources_count of this Vulnerability.
Returns: The impacted_resources_count of this Vulnerability. Return type: oci.vulnerability_scanning.models.ImpactedResourcesCount
-
lifecycle_state
¶ Gets the lifecycle_state of this Vulnerability. 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 Vulnerability. Return type: str
-
name
¶ [Required] Gets the name of this Vulnerability. Vulnerability name
Returns: The name of this Vulnerability. Return type: str
-
severity
¶ [Required] Gets the severity of this Vulnerability. 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 Vulnerability. Return type: str
-
state
¶ Gets the state of this Vulnerability. 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 Vulnerability. Return type: str
-
time_first_detected
¶ [Required] Gets the time_first_detected of this Vulnerability. Date of scan result that first reported the vulnerability
Returns: The time_first_detected of this Vulnerability. Return type: datetime
-
time_last_detected
¶ [Required] Gets the time_last_detected of this Vulnerability. Date of scan result that most recently reported the vulnerability
Returns: The time_last_detected of this Vulnerability. Return type: datetime
-
vulnerability_reference
¶ Gets the vulnerability_reference of this Vulnerability. Reference to the vulnerability type’s unique identifier. For CVE, this is the MITRE CVE ID
Returns: The vulnerability_reference of this Vulnerability. Return type: str
-
vulnerability_type
¶ [Required] Gets the vulnerability_type of this Vulnerability. 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 Vulnerability. Return type: str
-