CreateHostScanTargetDetails

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

Bases: object

The information for a new host scan target

Methods

__init__(**kwargs) Initializes a new CreateHostScanTargetDetails object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this CreateHostScanTargetDetails.
defined_tags Gets the defined_tags of this CreateHostScanTargetDetails.
description Gets the description of this CreateHostScanTargetDetails.
display_name Gets the display_name of this CreateHostScanTargetDetails.
freeform_tags Gets the freeform_tags of this CreateHostScanTargetDetails.
host_scan_recipe_id [Required] Gets the host_scan_recipe_id of this CreateHostScanTargetDetails.
instance_ids Gets the instance_ids of this CreateHostScanTargetDetails.
target_compartment_id [Required] Gets the target_compartment_id of this CreateHostScanTargetDetails.
__init__(**kwargs)

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

Parameters:
  • display_name (str) – The value to assign to the display_name property of this CreateHostScanTargetDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateHostScanTargetDetails.
  • description (str) – The value to assign to the description property of this CreateHostScanTargetDetails.
  • target_compartment_id (str) – The value to assign to the target_compartment_id property of this CreateHostScanTargetDetails.
  • instance_ids (list[str]) – The value to assign to the instance_ids property of this CreateHostScanTargetDetails.
  • host_scan_recipe_id (str) – The value to assign to the host_scan_recipe_id property of this CreateHostScanTargetDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateHostScanTargetDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateHostScanTargetDetails.
compartment_id

[Required] Gets the compartment_id of this CreateHostScanTargetDetails. Compartment ID of the object (this).

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

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

Gets the description of this CreateHostScanTargetDetails. Target description.

Returns:The description of this CreateHostScanTargetDetails.
Return type:str
display_name

Gets the display_name of this CreateHostScanTargetDetails. Target identifier, which can be renamed. If not present, it will be auto-generated. Avoid entering confidential information.

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

Gets the freeform_tags of this CreateHostScanTargetDetails. 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 CreateHostScanTargetDetails.
Return type:dict(str, str)
host_scan_recipe_id

[Required] Gets the host_scan_recipe_id of this CreateHostScanTargetDetails. ID of the host scan recipe this target applies.

Returns:The host_scan_recipe_id of this CreateHostScanTargetDetails.
Return type:str
instance_ids

Gets the instance_ids of this CreateHostScanTargetDetails. List of compute instance IDs to target (optional). If empty, targets the entire targetCompartmentId.

Returns:The instance_ids of this CreateHostScanTargetDetails.
Return type:list[str]
target_compartment_id

[Required] Gets the target_compartment_id of this CreateHostScanTargetDetails. Compartment ID to target. If a list of hosts is provided, all hosts must be in this compartment.

Returns:The target_compartment_id of this CreateHostScanTargetDetails.
Return type:str