VulnerabilityScan

class oci.dblm.models.VulnerabilityScan(**kwargs)

Bases: object

A VulnerabilityScan is a description of a VulnerabilityScan.

To use any of the API operations, you must be authorized in an IAM policy. If you’re not authorized, talk to an administrator. If you’re an administrator who needs to write policies to give users access, see Getting Started with Policies.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a VulnerabilityScan.
VULNERABILITY_SCAN_STATUS_ABORTED A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan.
VULNERABILITY_SCAN_STATUS_COMPLETED A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan.
VULNERABILITY_SCAN_STATUS_ERROR A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan.
VULNERABILITY_SCAN_STATUS_RUNNING A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan.
VULNERABILITY_SCAN_TYPE_CVE A constant which can be used with the vulnerability_scan_type property of a VulnerabilityScan.
VULNERABILITY_SCAN_TYPE_IMAGE_PATCH A constant which can be used with the vulnerability_scan_type property of a VulnerabilityScan.
VULNERABILITY_SCAN_TYPE_PATCH A constant which can be used with the vulnerability_scan_type property of a VulnerabilityScan.
compartment_id [Required] Gets the compartment_id of this VulnerabilityScan.
defined_tags Gets the defined_tags of this VulnerabilityScan.
display_name Gets the display_name of this VulnerabilityScan.
freeform_tags Gets the freeform_tags of this VulnerabilityScan.
id [Required] Gets the id of this VulnerabilityScan.
lifecycle_state [Required] Gets the lifecycle_state of this VulnerabilityScan.
system_tags Gets the system_tags of this VulnerabilityScan.
time_created [Required] Gets the time_created of this VulnerabilityScan.
time_ended [Required] Gets the time_ended of this VulnerabilityScan.
vulnerability_scan_message [Required] Gets the vulnerability_scan_message of this VulnerabilityScan.
vulnerability_scan_status [Required] Gets the vulnerability_scan_status of this VulnerabilityScan.
vulnerability_scan_type [Required] Gets the vulnerability_scan_type of this VulnerabilityScan.

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

VULNERABILITY_SCAN_STATUS_ABORTED = 'ABORTED'

A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan. This constant has a value of “ABORTED”

VULNERABILITY_SCAN_STATUS_COMPLETED = 'COMPLETED'

A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan. This constant has a value of “COMPLETED”

VULNERABILITY_SCAN_STATUS_ERROR = 'ERROR'

A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan. This constant has a value of “ERROR”

VULNERABILITY_SCAN_STATUS_RUNNING = 'RUNNING'

A constant which can be used with the vulnerability_scan_status property of a VulnerabilityScan. This constant has a value of “RUNNING”

VULNERABILITY_SCAN_TYPE_CVE = 'CVE'

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

VULNERABILITY_SCAN_TYPE_IMAGE_PATCH = 'IMAGE_PATCH'

A constant which can be used with the vulnerability_scan_type property of a VulnerabilityScan. This constant has a value of “IMAGE_PATCH”

VULNERABILITY_SCAN_TYPE_PATCH = 'PATCH'

A constant which can be used with the vulnerability_scan_type property of a VulnerabilityScan. This constant has a value of “PATCH”

__init__(**kwargs)

Initializes a new VulnerabilityScan 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 VulnerabilityScan.
  • display_name (str) – The value to assign to the display_name property of this VulnerabilityScan.
  • compartment_id (str) – The value to assign to the compartment_id property of this VulnerabilityScan.
  • vulnerability_scan_type (str) – The value to assign to the vulnerability_scan_type property of this VulnerabilityScan. Allowed values for this property are: “CVE”, “PATCH”, “IMAGE_PATCH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • vulnerability_scan_status (str) – The value to assign to the vulnerability_scan_status property of this VulnerabilityScan. Allowed values for this property are: “COMPLETED”, “ERROR”, “RUNNING”, “ABORTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • vulnerability_scan_message (str) – The value to assign to the vulnerability_scan_message property of this VulnerabilityScan.
  • time_created (datetime) – The value to assign to the time_created property of this VulnerabilityScan.
  • time_ended (datetime) – The value to assign to the time_ended property of this VulnerabilityScan.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this VulnerabilityScan. 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’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this VulnerabilityScan.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this VulnerabilityScan.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this VulnerabilityScan.
compartment_id

[Required] Gets the compartment_id of this VulnerabilityScan. The OCID of the compartment.

Returns:The compartment_id of this VulnerabilityScan.
Return type:str
defined_tags

Gets the defined_tags of this VulnerabilityScan. 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 VulnerabilityScan.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this VulnerabilityScan. A user-friendly name. It does not have to be unique, and it is changeable.

Returns:The display_name of this VulnerabilityScan.
Return type:str
freeform_tags

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

Returns:The freeform_tags of this VulnerabilityScan.
Return type:dict(str, str)
id

[Required] Gets the id of this VulnerabilityScan. The OCID of the VulnerabilityScan.

Returns:The id of this VulnerabilityScan.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this VulnerabilityScan. The current state of the VulnerabilityScan.

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 VulnerabilityScan.
Return type:str
system_tags

Gets the system_tags of this VulnerabilityScan. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this VulnerabilityScan.
Return type:dict(str, dict(str, object))
time_created

[Required] Gets the time_created of this VulnerabilityScan. The date and time the VulnerabilityScan was created, in the format defined by RFC 3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this VulnerabilityScan.
Return type:datetime
time_ended

[Required] Gets the time_ended of this VulnerabilityScan. The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_ended of this VulnerabilityScan.
Return type:datetime
vulnerability_scan_message

[Required] Gets the vulnerability_scan_message of this VulnerabilityScan. The message of the vulnerability scan status.

Returns:The vulnerability_scan_message of this VulnerabilityScan.
Return type:str
vulnerability_scan_status

[Required] Gets the vulnerability_scan_status of this VulnerabilityScan. The status of the vulnerability scan.

Allowed values for this property are: “COMPLETED”, “ERROR”, “RUNNING”, “ABORTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The vulnerability_scan_status of this VulnerabilityScan.
Return type:str
vulnerability_scan_type

[Required] Gets the vulnerability_scan_type of this VulnerabilityScan. Scan type is CVE, PATCH or IMAGE_PATCH

Allowed values for this property are: “CVE”, “PATCH”, “IMAGE_PATCH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The vulnerability_scan_type of this VulnerabilityScan.
Return type:str