CreateTargetDetails

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

Bases: object

Parameters used to create a new target.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a CreateTargetDetails.
TARGET_RESOURCE_TYPE_COMPARTMENT A constant which can be used with the target_resource_type property of a CreateTargetDetails.
TARGET_RESOURCE_TYPE_ERPCLOUD A constant which can be used with the target_resource_type property of a CreateTargetDetails.
TARGET_RESOURCE_TYPE_HCMCLOUD A constant which can be used with the target_resource_type property of a CreateTargetDetails.
TARGET_RESOURCE_TYPE_SECURITY_ZONE A constant which can be used with the target_resource_type property of a CreateTargetDetails.
compartment_id [Required] Gets the compartment_id of this CreateTargetDetails.
defined_tags Gets the defined_tags of this CreateTargetDetails.
description Gets the description of this CreateTargetDetails.
display_name [Required] Gets the display_name of this CreateTargetDetails.
freeform_tags Gets the freeform_tags of this CreateTargetDetails.
lifecycle_state Gets the lifecycle_state of this CreateTargetDetails.
target_detector_recipes Gets the target_detector_recipes of this CreateTargetDetails.
target_resource_id [Required] Gets the target_resource_id of this CreateTargetDetails.
target_resource_type [Required] Gets the target_resource_type of this CreateTargetDetails.
target_responder_recipes Gets the target_responder_recipes of this CreateTargetDetails.

Methods

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

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

TARGET_RESOURCE_TYPE_COMPARTMENT = 'COMPARTMENT'

A constant which can be used with the target_resource_type property of a CreateTargetDetails. This constant has a value of “COMPARTMENT”

TARGET_RESOURCE_TYPE_ERPCLOUD = 'ERPCLOUD'

A constant which can be used with the target_resource_type property of a CreateTargetDetails. This constant has a value of “ERPCLOUD”

TARGET_RESOURCE_TYPE_HCMCLOUD = 'HCMCLOUD'

A constant which can be used with the target_resource_type property of a CreateTargetDetails. This constant has a value of “HCMCLOUD”

TARGET_RESOURCE_TYPE_SECURITY_ZONE = 'SECURITY_ZONE'

A constant which can be used with the target_resource_type property of a CreateTargetDetails. This constant has a value of “SECURITY_ZONE”

__init__(**kwargs)

Initializes a new CreateTargetDetails 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 CreateTargetDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateTargetDetails.
  • description (str) – The value to assign to the description property of this CreateTargetDetails.
  • target_resource_type (str) – The value to assign to the target_resource_type property of this CreateTargetDetails. Allowed values for this property are: “COMPARTMENT”, “ERPCLOUD”, “HCMCLOUD”, “SECURITY_ZONE”
  • target_resource_id (str) – The value to assign to the target_resource_id property of this CreateTargetDetails.
  • target_detector_recipes (list[oci.cloud_guard.models.CreateTargetDetectorRecipeDetails]) – The value to assign to the target_detector_recipes property of this CreateTargetDetails.
  • target_responder_recipes (list[oci.cloud_guard.models.CreateTargetResponderRecipeDetails]) – The value to assign to the target_responder_recipes property of this CreateTargetDetails.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this CreateTargetDetails. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateTargetDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateTargetDetails.
compartment_id

[Required] Gets the compartment_id of this CreateTargetDetails. Compartment OCID where the resource is created

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

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

Gets the description of this CreateTargetDetails. The target description.

Avoid entering confidential information.

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

[Required] Gets the display_name of this CreateTargetDetails. Display name for the target.

Avoid entering confidential information.

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

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

Gets the lifecycle_state of this CreateTargetDetails. The enablement state of the detector rule

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”

Returns:The lifecycle_state of this CreateTargetDetails.
Return type:str
target_detector_recipes

Gets the target_detector_recipes of this CreateTargetDetails. List of detector recipes to attach to target

Returns:The target_detector_recipes of this CreateTargetDetails.
Return type:list[oci.cloud_guard.models.CreateTargetDetectorRecipeDetails]
target_resource_id

[Required] Gets the target_resource_id of this CreateTargetDetails. Resource ID which the target uses to monitor

Returns:The target_resource_id of this CreateTargetDetails.
Return type:str
target_resource_type

[Required] Gets the target_resource_type of this CreateTargetDetails. Type of resource that target support (COMPARTMENT/FACLOUD)

Allowed values for this property are: “COMPARTMENT”, “ERPCLOUD”, “HCMCLOUD”, “SECURITY_ZONE”

Returns:The target_resource_type of this CreateTargetDetails.
Return type:str
target_responder_recipes

Gets the target_responder_recipes of this CreateTargetDetails. List of responder recipes to attach to target

Returns:The target_responder_recipes of this CreateTargetDetails.
Return type:list[oci.cloud_guard.models.CreateTargetResponderRecipeDetails]