ResourceVulnerability

class oci.cloud_guard.models.ResourceVulnerability(**kwargs)

Bases: object

CG vulnerability object

Attributes:

RISK_LEVEL_CRITICAL

A constant which can be used with the risk_level property of a ResourceVulnerability.

RISK_LEVEL_HIGH

A constant which can be used with the risk_level property of a ResourceVulnerability.

RISK_LEVEL_LOW

A constant which can be used with the risk_level property of a ResourceVulnerability.

RISK_LEVEL_MEDIUM

A constant which can be used with the risk_level property of a ResourceVulnerability.

RISK_LEVEL_MINOR

A constant which can be used with the risk_level property of a ResourceVulnerability.

RISK_LEVEL_NONE

A constant which can be used with the risk_level property of a ResourceVulnerability.

cvss_score

Gets the cvss_score of this ResourceVulnerability.

defined_tags

Gets the defined_tags of this ResourceVulnerability.

description

[Required] Gets the description of this ResourceVulnerability.

freeform_tags

Gets the freeform_tags of this ResourceVulnerability.

id

[Required] Gets the id of this ResourceVulnerability.

package_details

Gets the package_details of this ResourceVulnerability.

risk_level

[Required] Gets the risk_level of this ResourceVulnerability.

system_tags

Gets the system_tags of this ResourceVulnerability.

time_first_detected

Gets the time_first_detected of this ResourceVulnerability.

time_last_detected

Gets the time_last_detected of this ResourceVulnerability.

time_last_modified

Gets the time_last_modified of this ResourceVulnerability.

time_published

Gets the time_published of this ResourceVulnerability.

url

Gets the url of this ResourceVulnerability.

Methods:

__init__(**kwargs)

Initializes a new ResourceVulnerability object with values from keyword arguments.

RISK_LEVEL_CRITICAL = 'CRITICAL'

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

RISK_LEVEL_HIGH = 'HIGH'

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

RISK_LEVEL_LOW = 'LOW'

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

RISK_LEVEL_MEDIUM = 'MEDIUM'

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

RISK_LEVEL_MINOR = 'MINOR'

A constant which can be used with the risk_level property of a ResourceVulnerability. This constant has a value of “MINOR”

RISK_LEVEL_NONE = 'NONE'

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

__init__(**kwargs)

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

  • description (str) – The value to assign to the description property of this ResourceVulnerability.

  • risk_level (str) – The value to assign to the risk_level property of this ResourceVulnerability. Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, “MINOR”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • url (str) – The value to assign to the url property of this ResourceVulnerability.

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

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

  • time_published (datetime) – The value to assign to the time_published property of this ResourceVulnerability.

  • time_last_modified (datetime) – The value to assign to the time_last_modified property of this ResourceVulnerability.

  • cvss_score (str) – The value to assign to the cvss_score property of this ResourceVulnerability.

  • package_details (list[oci.cloud_guard.models.PackageDetail]) – The value to assign to the package_details property of this ResourceVulnerability.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ResourceVulnerability.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ResourceVulnerability.

  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this ResourceVulnerability.

property cvss_score

Gets the cvss_score of this ResourceVulnerability. cvssScore of CVE

Returns

The cvss_score of this ResourceVulnerability.

Return type

str

property defined_tags

Gets the defined_tags of this ResourceVulnerability. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns

The defined_tags of this ResourceVulnerability.

Return type

dict(str, dict(str, object))

property description

[Required] Gets the description of this ResourceVulnerability. The description of the vulnerability

Returns

The description of this ResourceVulnerability.

Return type

str

property freeform_tags

Gets the freeform_tags of this ResourceVulnerability. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Avoid entering confidential information.

Returns

The freeform_tags of this ResourceVulnerability.

Return type

dict(str, str)

property id

[Required] Gets the id of this ResourceVulnerability. The cve id of the vulnerability

Returns

The id of this ResourceVulnerability.

Return type

str

property package_details

Gets the package_details of this ResourceVulnerability. list for packages causing vulnerability

Returns

The package_details of this ResourceVulnerability.

Return type

list[oci.cloud_guard.models.PackageDetail]

property risk_level

[Required] Gets the risk_level of this ResourceVulnerability. The Risk Level

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

Returns

The risk_level of this ResourceVulnerability.

Return type

str

property system_tags

Gets the system_tags of this ResourceVulnerability. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.

Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns

The system_tags of this ResourceVulnerability.

Return type

dict(str, dict(str, object))

property time_first_detected

Gets the time_first_detected of this ResourceVulnerability. First detected time

Returns

The time_first_detected of this ResourceVulnerability.

Return type

datetime

property time_last_detected

Gets the time_last_detected of this ResourceVulnerability. First detected time

Returns

The time_last_detected of this ResourceVulnerability.

Return type

datetime

property time_last_modified

Gets the time_last_modified of this ResourceVulnerability. Time the vulnerability was last modified

Returns

The time_last_modified of this ResourceVulnerability.

Return type

datetime

property time_published

Gets the time_published of this ResourceVulnerability. Time the vulnerability was published

Returns

The time_published of this ResourceVulnerability.

Return type

datetime

property url

Gets the url of this ResourceVulnerability. URL of the CVE

Returns

The url of this ResourceVulnerability.

Return type

str