TargetDetectorRecipeDetectorRule¶
-
class
oci.cloud_guard.models.TargetDetectorRecipeDetectorRule(**kwargs)¶ Bases:
objectA TargetDetectorRecipeDetectorRule resource contains a specific instance of a single detector rule in one of the supported detector types (for example, activity, configuration, or threat).
A TargetDetectorRecipeDetectorRule resource: * Is effectively a copy of a DetectorRecipeRule resource (made when a detector recipe is attached to a target) in which users can make certain changes if it’s Oracle-managed, and other changes if it’s user-managed. * Is visible on the Cloud Guard Targets, Target Details page. * Is effectively located in a specific OCI compartment, through the ThreatDetectorRecipe resource to which it belongs. * Can be modified by users, programmatically or through the UI. * Changes that can be made here apply locally, to resources in OCI compartments mapped to the target that attaches the associated detector recipe (in a TargetDetectorRecipe resource), and override any changes made in rules associated with the corresponding DetectorRecipe resource.
Attributes
DETECTOR_IAAS_ACTIVITY_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. DETECTOR_IAAS_CONFIGURATION_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. DETECTOR_IAAS_CONTAINER_SECURITY_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. DETECTOR_IAAS_INSTANCE_SECURITY_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. DETECTOR_IAAS_LOG_INSIGHT_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. DETECTOR_IAAS_THREAT_DETECTORA constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_INACTIVEA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_CIDR_BLOCKA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_CITYA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_COUNTRYA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_FUSION_APPS_PERMISSIONA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_FUSION_APPS_ROLEA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_GENERICA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_GROUPSA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_IPV4_ADDRESSA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_IPV6_ADDRESSA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_NAMESPACE_SELECTORA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_POD_RESOURCE_SELECTORA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_REGIONA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_RESOURCE_OCIDA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_STATEA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_TAGSA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. MANAGED_LIST_TYPES_USERSA constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. data_source_idGets the data_source_id of this TargetDetectorRecipeDetectorRule. descriptionGets the description of this TargetDetectorRecipeDetectorRule. detailsGets the details of this TargetDetectorRecipeDetectorRule. detector[Required] Gets the detector of this TargetDetectorRecipeDetectorRule. detector_rule_id[Required] Gets the detector_rule_id of this TargetDetectorRecipeDetectorRule. display_nameGets the display_name of this TargetDetectorRecipeDetectorRule. entities_mappingsGets the entities_mappings of this TargetDetectorRecipeDetectorRule. is_cloneableGets the is_cloneable of this TargetDetectorRecipeDetectorRule. lifecycle_detailsGets the lifecycle_details of this TargetDetectorRecipeDetectorRule. lifecycle_stateGets the lifecycle_state of this TargetDetectorRecipeDetectorRule. locksGets the locks of this TargetDetectorRecipeDetectorRule. managed_list_typesGets the managed_list_types of this TargetDetectorRecipeDetectorRule. recommendationGets the recommendation of this TargetDetectorRecipeDetectorRule. resource_type[Required] Gets the resource_type of this TargetDetectorRecipeDetectorRule. rule_typeGets the rule_type of this TargetDetectorRecipeDetectorRule. service_type[Required] Gets the service_type of this TargetDetectorRecipeDetectorRule. time_createdGets the time_created of this TargetDetectorRecipeDetectorRule. time_updatedGets the time_updated of this TargetDetectorRecipeDetectorRule. Methods
__init__(**kwargs)Initializes a new TargetDetectorRecipeDetectorRule object with values from keyword arguments. -
DETECTOR_IAAS_ACTIVITY_DETECTOR= 'IAAS_ACTIVITY_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_ACTIVITY_DETECTOR”
-
DETECTOR_IAAS_CONFIGURATION_DETECTOR= 'IAAS_CONFIGURATION_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_CONFIGURATION_DETECTOR”
-
DETECTOR_IAAS_CONTAINER_SECURITY_DETECTOR= 'IAAS_CONTAINER_SECURITY_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_CONTAINER_SECURITY_DETECTOR”
-
DETECTOR_IAAS_INSTANCE_SECURITY_DETECTOR= 'IAAS_INSTANCE_SECURITY_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_INSTANCE_SECURITY_DETECTOR”
-
DETECTOR_IAAS_LOG_INSIGHT_DETECTOR= 'IAAS_LOG_INSIGHT_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_LOG_INSIGHT_DETECTOR”
-
DETECTOR_IAAS_THREAT_DETECTOR= 'IAAS_THREAT_DETECTOR'¶ A constant which can be used with the detector property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IAAS_THREAT_DETECTOR”
-
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “INACTIVE”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a TargetDetectorRecipeDetectorRule. This constant has a value of “UPDATING”
-
MANAGED_LIST_TYPES_CIDR_BLOCK= 'CIDR_BLOCK'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “CIDR_BLOCK”
-
MANAGED_LIST_TYPES_CITY= 'CITY'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “CITY”
-
MANAGED_LIST_TYPES_COUNTRY= 'COUNTRY'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “COUNTRY”
-
MANAGED_LIST_TYPES_FUSION_APPS_PERMISSION= 'FUSION_APPS_PERMISSION'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “FUSION_APPS_PERMISSION”
-
MANAGED_LIST_TYPES_FUSION_APPS_ROLE= 'FUSION_APPS_ROLE'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “FUSION_APPS_ROLE”
-
MANAGED_LIST_TYPES_GENERIC= 'GENERIC'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “GENERIC”
-
MANAGED_LIST_TYPES_GROUPS= 'GROUPS'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “GROUPS”
-
MANAGED_LIST_TYPES_IPV4_ADDRESS= 'IPV4ADDRESS'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IPV4ADDRESS”
-
MANAGED_LIST_TYPES_IPV6_ADDRESS= 'IPV6ADDRESS'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “IPV6ADDRESS”
-
MANAGED_LIST_TYPES_NAMESPACE_SELECTOR= 'NAMESPACE_SELECTOR'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “NAMESPACE_SELECTOR”
-
MANAGED_LIST_TYPES_POD_RESOURCE_SELECTOR= 'POD_RESOURCE_SELECTOR'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “POD_RESOURCE_SELECTOR”
-
MANAGED_LIST_TYPES_REGION= 'REGION'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “REGION”
-
MANAGED_LIST_TYPES_RESOURCE_OCID= 'RESOURCE_OCID'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “RESOURCE_OCID”
-
MANAGED_LIST_TYPES_STATE= 'STATE'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “STATE”
-
MANAGED_LIST_TYPES_TAGS= 'TAGS'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “TAGS”
-
MANAGED_LIST_TYPES_USERS= 'USERS'¶ A constant which can be used with the managed_list_types property of a TargetDetectorRecipeDetectorRule. This constant has a value of “USERS”
-
__init__(**kwargs)¶ Initializes a new TargetDetectorRecipeDetectorRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - detector_rule_id (str) – The value to assign to the detector_rule_id property of this TargetDetectorRecipeDetectorRule.
- display_name (str) – The value to assign to the display_name property of this TargetDetectorRecipeDetectorRule.
- description (str) – The value to assign to the description property of this TargetDetectorRecipeDetectorRule.
- recommendation (str) – The value to assign to the recommendation property of this TargetDetectorRecipeDetectorRule.
- detector (str) – The value to assign to the detector property of this TargetDetectorRecipeDetectorRule. Allowed values for this property are: “IAAS_ACTIVITY_DETECTOR”, “IAAS_CONFIGURATION_DETECTOR”, “IAAS_THREAT_DETECTOR”, “IAAS_LOG_INSIGHT_DETECTOR”, “IAAS_INSTANCE_SECURITY_DETECTOR”, “IAAS_CONTAINER_SECURITY_DETECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- service_type (str) – The value to assign to the service_type property of this TargetDetectorRecipeDetectorRule.
- resource_type (str) – The value to assign to the resource_type property of this TargetDetectorRecipeDetectorRule.
- rule_type (list[oci.cloud_guard.models.RuleType]) – The value to assign to the rule_type property of this TargetDetectorRecipeDetectorRule.
- is_cloneable (bool) – The value to assign to the is_cloneable property of this TargetDetectorRecipeDetectorRule.
- details (oci.cloud_guard.models.TargetDetectorDetails) – The value to assign to the details property of this TargetDetectorRecipeDetectorRule.
- managed_list_types (list[str]) – The value to assign to the managed_list_types property of this TargetDetectorRecipeDetectorRule. Allowed values for items in this list are: “CIDR_BLOCK”, “USERS”, “GROUPS”, “IPV4ADDRESS”, “IPV6ADDRESS”, “RESOURCE_OCID”, “REGION”, “COUNTRY”, “STATE”, “CITY”, “TAGS”, “GENERIC”, “FUSION_APPS_ROLE”, “FUSION_APPS_PERMISSION”, “NAMESPACE_SELECTOR”, “POD_RESOURCE_SELECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this TargetDetectorRecipeDetectorRule.
- time_updated (datetime) – The value to assign to the time_updated property of this TargetDetectorRecipeDetectorRule.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this TargetDetectorRecipeDetectorRule. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- lifecycle_details (str) – The value to assign to the lifecycle_details property of this TargetDetectorRecipeDetectorRule.
- data_source_id (str) – The value to assign to the data_source_id property of this TargetDetectorRecipeDetectorRule.
- entities_mappings (list[oci.cloud_guard.models.EntitiesMapping]) – The value to assign to the entities_mappings property of this TargetDetectorRecipeDetectorRule.
- locks (list[oci.cloud_guard.models.ResourceLock]) – The value to assign to the locks property of this TargetDetectorRecipeDetectorRule.
-
data_source_id¶ Gets the data_source_id of this TargetDetectorRecipeDetectorRule. The ID of the attached data source
Returns: The data_source_id of this TargetDetectorRecipeDetectorRule. Return type: str
-
description¶ Gets the description of this TargetDetectorRecipeDetectorRule. Description for TargetDetectorRecipeDetectorRule resource
Returns: The description of this TargetDetectorRecipeDetectorRule. Return type: str
-
details¶ Gets the details of this TargetDetectorRecipeDetectorRule.
Returns: The details of this TargetDetectorRecipeDetectorRule. Return type: oci.cloud_guard.models.TargetDetectorDetails
-
detector¶ [Required] Gets the detector of this TargetDetectorRecipeDetectorRule. Detector type for the rule
Allowed values for this property are: “IAAS_ACTIVITY_DETECTOR”, “IAAS_CONFIGURATION_DETECTOR”, “IAAS_THREAT_DETECTOR”, “IAAS_LOG_INSIGHT_DETECTOR”, “IAAS_INSTANCE_SECURITY_DETECTOR”, “IAAS_CONTAINER_SECURITY_DETECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The detector of this TargetDetectorRecipeDetectorRule. Return type: str
-
detector_rule_id¶ [Required] Gets the detector_rule_id of this TargetDetectorRecipeDetectorRule. The unique identifier of the detector rule
Returns: The detector_rule_id of this TargetDetectorRecipeDetectorRule. Return type: str
-
display_name¶ Gets the display_name of this TargetDetectorRecipeDetectorRule. Display name for TargetDetectorRecipeDetectorRule resource
Returns: The display_name of this TargetDetectorRecipeDetectorRule. Return type: str
-
entities_mappings¶ Gets the entities_mappings of this TargetDetectorRecipeDetectorRule. Data source entities mapping for a detector rule
Returns: The entities_mappings of this TargetDetectorRecipeDetectorRule. Return type: list[oci.cloud_guard.models.EntitiesMapping]
-
is_cloneable¶ Gets the is_cloneable of this TargetDetectorRecipeDetectorRule. Is the rule cloneable?
Returns: The is_cloneable of this TargetDetectorRecipeDetectorRule. Return type: bool
-
lifecycle_details¶ Gets the lifecycle_details of this TargetDetectorRecipeDetectorRule. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
Returns: The lifecycle_details of this TargetDetectorRecipeDetectorRule. Return type: str
-
lifecycle_state¶ Gets the lifecycle_state of this TargetDetectorRecipeDetectorRule. The current lifecycle state of the detector rule
Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “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 TargetDetectorRecipeDetectorRule. Return type: str
-
locks¶ Gets the locks of this TargetDetectorRecipeDetectorRule. Locks associated with this resource.
Returns: The locks of this TargetDetectorRecipeDetectorRule. Return type: list[oci.cloud_guard.models.ResourceLock]
-
managed_list_types¶ Gets the managed_list_types of this TargetDetectorRecipeDetectorRule. List of managed list types related to this rule
Allowed values for items in this list are: “CIDR_BLOCK”, “USERS”, “GROUPS”, “IPV4ADDRESS”, “IPV6ADDRESS”, “RESOURCE_OCID”, “REGION”, “COUNTRY”, “STATE”, “CITY”, “TAGS”, “GENERIC”, “FUSION_APPS_ROLE”, “FUSION_APPS_PERMISSION”, “NAMESPACE_SELECTOR”, “POD_RESOURCE_SELECTOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The managed_list_types of this TargetDetectorRecipeDetectorRule. Return type: list[str]
-
recommendation¶ Gets the recommendation of this TargetDetectorRecipeDetectorRule. Recommendation for TargetDetectorRecipeDetectorRule resource
Returns: The recommendation of this TargetDetectorRecipeDetectorRule. Return type: str
-
resource_type¶ [Required] Gets the resource_type of this TargetDetectorRecipeDetectorRule. The type of resource which is monitored by the detector rule. For example, Instance, Database, VCN, Policy. To find the resource type for a particular rule, see [Detector Recipe Reference] (/iaas/cloud-guard/using/detect-recipes.htm#detect-recipes-reference).
Or try [Detector Recipe Reference] (/cloud-guard/using/detect-recipes.htm#detect-recipes-reference).
Returns: The resource_type of this TargetDetectorRecipeDetectorRule. Return type: str
-
rule_type¶ Gets the rule_type of this TargetDetectorRecipeDetectorRule. Rule category type
Returns: The rule_type of this TargetDetectorRecipeDetectorRule. Return type: list[oci.cloud_guard.models.RuleType]
-
service_type¶ [Required] Gets the service_type of this TargetDetectorRecipeDetectorRule. Service type of the configuration to which the rule is applied
Returns: The service_type of this TargetDetectorRecipeDetectorRule. Return type: str
-
time_created¶ Gets the time_created of this TargetDetectorRecipeDetectorRule. The date and time the target detector recipe rule was created. Format defined by RFC3339.
Returns: The time_created of this TargetDetectorRecipeDetectorRule. Return type: datetime
-
time_updated¶ Gets the time_updated of this TargetDetectorRecipeDetectorRule. The date and time the target detector recipe rule was last updated. Format defined by RFC3339.
Returns: The time_updated of this TargetDetectorRecipeDetectorRule. Return type: datetime
-