ContainerScanResult

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

Bases: object

A scan result for a container scan

Attributes

HIGHEST_PROBLEM_SEVERITY_CRITICAL A constant which can be used with the highest_problem_severity property of a ContainerScanResult.
HIGHEST_PROBLEM_SEVERITY_HIGH A constant which can be used with the highest_problem_severity property of a ContainerScanResult.
HIGHEST_PROBLEM_SEVERITY_LOW A constant which can be used with the highest_problem_severity property of a ContainerScanResult.
HIGHEST_PROBLEM_SEVERITY_MEDIUM A constant which can be used with the highest_problem_severity property of a ContainerScanResult.
HIGHEST_PROBLEM_SEVERITY_NONE A constant which can be used with the highest_problem_severity property of a ContainerScanResult.
compartment_id [Required] Gets the compartment_id of this ContainerScanResult.
container_scan_target_id Gets the container_scan_target_id of this ContainerScanResult.
highest_problem_severity [Required] Gets the highest_problem_severity of this ContainerScanResult.
id [Required] Gets the id of this ContainerScanResult.
image [Required] Gets the image of this ContainerScanResult.
problem_count Gets the problem_count of this ContainerScanResult.
problems [Required] Gets the problems of this ContainerScanResult.
registry_url Gets the registry_url of this ContainerScanResult.
repository [Required] Gets the repository of this ContainerScanResult.
target_compartment_id Gets the target_compartment_id of this ContainerScanResult.
time_finished [Required] Gets the time_finished of this ContainerScanResult.
time_started [Required] Gets the time_started of this ContainerScanResult.

Methods

__init__(**kwargs) Initializes a new ContainerScanResult object with values from keyword arguments.
HIGHEST_PROBLEM_SEVERITY_CRITICAL = 'CRITICAL'

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

HIGHEST_PROBLEM_SEVERITY_HIGH = 'HIGH'

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

HIGHEST_PROBLEM_SEVERITY_LOW = 'LOW'

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

HIGHEST_PROBLEM_SEVERITY_MEDIUM = 'MEDIUM'

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

HIGHEST_PROBLEM_SEVERITY_NONE = 'NONE'

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

__init__(**kwargs)

Initializes a new ContainerScanResult 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 ContainerScanResult.
  • registry_url (str) – The value to assign to the registry_url property of this ContainerScanResult.
  • repository (str) – The value to assign to the repository property of this ContainerScanResult.
  • image (str) – The value to assign to the image property of this ContainerScanResult.
  • compartment_id (str) – The value to assign to the compartment_id property of this ContainerScanResult.
  • target_compartment_id (str) – The value to assign to the target_compartment_id property of this ContainerScanResult.
  • container_scan_target_id (str) – The value to assign to the container_scan_target_id property of this ContainerScanResult.
  • highest_problem_severity (str) – The value to assign to the highest_problem_severity property of this ContainerScanResult. 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’.
  • problem_count (int) – The value to assign to the problem_count property of this ContainerScanResult.
  • time_started (datetime) – The value to assign to the time_started property of this ContainerScanResult.
  • time_finished (datetime) – The value to assign to the time_finished property of this ContainerScanResult.
  • problems (list[oci.vulnerability_scanning.models.ContainerScanResultProblem]) – The value to assign to the problems property of this ContainerScanResult.
compartment_id

[Required] Gets the compartment_id of this ContainerScanResult. The OCID of the container scan result’s compartment. This is set to the same as the compartmentId of the container scan target

Returns:The compartment_id of this ContainerScanResult.
Return type:str
container_scan_target_id

Gets the container_scan_target_id of this ContainerScanResult. The OCID of container scan target.

Returns:The container_scan_target_id of this ContainerScanResult.
Return type:str
highest_problem_severity

[Required] Gets the highest_problem_severity of this ContainerScanResult. Highest problem severity in this report

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 highest_problem_severity of this ContainerScanResult.
Return type:str
id

[Required] Gets the id of this ContainerScanResult. The OCID of container scan result. Immutable and generated on creation.

Returns:The id of this ContainerScanResult.
Return type:str
image

[Required] Gets the image of this ContainerScanResult. Image name

Returns:The image of this ContainerScanResult.
Return type:str
problem_count

Gets the problem_count of this ContainerScanResult. Total number of problems found in this scan

Returns:The problem_count of this ContainerScanResult.
Return type:int
problems

[Required] Gets the problems of this ContainerScanResult. List of problems found in this scan

Returns:The problems of this ContainerScanResult.
Return type:list[oci.vulnerability_scanning.models.ContainerScanResultProblem]
registry_url

Gets the registry_url of this ContainerScanResult. The URL of the docker registry the repository is located in.

Returns:The registry_url of this ContainerScanResult.
Return type:str
repository

[Required] Gets the repository of this ContainerScanResult. Repository in which the container image scanned is located

Returns:The repository of this ContainerScanResult.
Return type:str
target_compartment_id

Gets the target_compartment_id of this ContainerScanResult. The OCID of the compartment to where scan was performed.

Returns:The target_compartment_id of this ContainerScanResult.
Return type:str
time_finished

[Required] Gets the time_finished of this ContainerScanResult. Date and time the scan was completed, as described in RFC 3339

Returns:The time_finished of this ContainerScanResult.
Return type:datetime
time_started

[Required] Gets the time_started of this ContainerScanResult. Date and time the scan was started, as described in RFC 3339

Returns:The time_started of this ContainerScanResult.
Return type:datetime