VulnerabilityDetails

class oci.adm.models.VulnerabilityDetails(**kwargs)

Bases: object

A vulnerability details contains details for a vulnerability as reported by the source.

Attributes:

SEVERITY_CRITICAL

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

SEVERITY_HIGH

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

SEVERITY_LOW

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

SEVERITY_MEDIUM

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

SEVERITY_NONE

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

is_direct_vulnerability

Gets the is_direct_vulnerability of this VulnerabilityDetails.

metrics

Gets the metrics of this VulnerabilityDetails.

references

Gets the references of this VulnerabilityDetails.

related_vulnerabilities

Gets the related_vulnerabilities of this VulnerabilityDetails.

severity

Gets the severity of this VulnerabilityDetails.

source

[Required] Gets the source of this VulnerabilityDetails.

status

Gets the status of this VulnerabilityDetails.

time_created

Gets the time_created of this VulnerabilityDetails.

time_updated

Gets the time_updated of this VulnerabilityDetails.

vulnerability_description

Gets the vulnerability_description of this VulnerabilityDetails.

vulnerability_id

[Required] Gets the vulnerability_id of this VulnerabilityDetails.

vulnerability_summary

Gets the vulnerability_summary of this VulnerabilityDetails.

Methods:

__init__(**kwargs)

Initializes a new VulnerabilityDetails object with values from keyword arguments.

SEVERITY_CRITICAL = 'CRITICAL'

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

SEVERITY_HIGH = 'HIGH'

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

SEVERITY_LOW = 'LOW'

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

SEVERITY_MEDIUM = 'MEDIUM'

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

SEVERITY_NONE = 'NONE'

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

__init__(**kwargs)

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

Parameters
  • vulnerability_id (str) – The value to assign to the vulnerability_id property of this VulnerabilityDetails.

  • source (str) – The value to assign to the source property of this VulnerabilityDetails.

  • is_direct_vulnerability (bool) – The value to assign to the is_direct_vulnerability property of this VulnerabilityDetails.

  • related_vulnerabilities (list[oci.adm.models.RelatedVulnerabilityReference]) – The value to assign to the related_vulnerabilities property of this VulnerabilityDetails.

  • time_created (datetime) – The value to assign to the time_created property of this VulnerabilityDetails.

  • time_updated (datetime) – The value to assign to the time_updated property of this VulnerabilityDetails.

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

  • metrics (list[oci.adm.models.VulnerabilityMetric]) – The value to assign to the metrics property of this VulnerabilityDetails.

  • status (str) – The value to assign to the status property of this VulnerabilityDetails.

  • references (list[str]) – The value to assign to the references property of this VulnerabilityDetails.

  • vulnerability_summary (str) – The value to assign to the vulnerability_summary property of this VulnerabilityDetails.

  • vulnerability_description (str) – The value to assign to the vulnerability_description property of this VulnerabilityDetails.

property is_direct_vulnerability

Gets the is_direct_vulnerability of this VulnerabilityDetails. Indicates if the vulnerability is immediately affecting any artifact in an audit.

Returns

The is_direct_vulnerability of this VulnerabilityDetails.

Return type

bool

property metrics

Gets the metrics of this VulnerabilityDetails. List of reported metrics by the source.

Returns

The metrics of this VulnerabilityDetails.

Return type

list[oci.adm.models.VulnerabilityMetric]

property references

Gets the references of this VulnerabilityDetails. References of the vulnerability at source.

Returns

The references of this VulnerabilityDetails.

Return type

list[str]

property related_vulnerabilities

Gets the related_vulnerabilities of this VulnerabilityDetails. List of related vulnerabilities, as reported by the source, along with aliases, where aliases are the same vulnerability reported by different sources.

Returns

The related_vulnerabilities of this VulnerabilityDetails.

Return type

list[oci.adm.models.RelatedVulnerabilityReference]

property severity

Gets the severity of this VulnerabilityDetails. ADM qualitative severity score. Can be either NONE, LOW, MEDIUM, HIGH or CRITICAL.

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 VulnerabilityDetails.

Return type

str

property source

[Required] Gets the source of this VulnerabilityDetails. Source that published the vulnerability.

Returns

The source of this VulnerabilityDetails.

Return type

str

property status

Gets the status of this VulnerabilityDetails. The status of the vulnerability, may be one of Analyzed, Rejected, Modified, Awaiting Analysis, Undergoing Analysis, Published, Withdrawn, Received as reported by the source.

Returns

The status of this VulnerabilityDetails.

Return type

str

property time_created

Gets the time_created of this VulnerabilityDetails. Date when the vulnerability was published, at the source.

Returns

The time_created of this VulnerabilityDetails.

Return type

datetime

property time_updated

Gets the time_updated of this VulnerabilityDetails. Date when the vulnerability was last modified, at the source.

Returns

The time_updated of this VulnerabilityDetails.

Return type

datetime

property vulnerability_description

Gets the vulnerability_description of this VulnerabilityDetails. Detailed description of the vulnerability.

Returns

The vulnerability_description of this VulnerabilityDetails.

Return type

str

property vulnerability_id

[Required] Gets the vulnerability_id of this VulnerabilityDetails. Vulnerability identifier from source, e.g., CVE-1999-0067, GHSA-9vjp-v76f-g363.

Returns

The vulnerability_id of this VulnerabilityDetails.

Return type

str

property vulnerability_summary

Gets the vulnerability_summary of this VulnerabilityDetails. Summary of the vulnerability.

Returns

The vulnerability_summary of this VulnerabilityDetails.

Return type

str