Show / Hide Table of Contents

Class TargetDetectorRecipeDetectorRule

A 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\u2019s Oracle-managed, and other changes if it\u2019s 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.
Inheritance
object
TargetDetectorRecipeDetectorRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CloudguardService.Models
Assembly: OCI.DotNetSDK.Cloudguard.dll
Syntax
public class TargetDetectorRecipeDetectorRule

Properties

DataSourceId

Declaration
[JsonProperty(PropertyName = "dataSourceId")]
public string DataSourceId { get; set; }
Property Value
Type Description
string

The ID of the attached data source

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

Description for TargetDetectorRecipeDetectorRule resource

Details

Declaration
[JsonProperty(PropertyName = "details")]
public TargetDetectorDetails Details { get; set; }
Property Value
Type Description
TargetDetectorDetails

Detector

Declaration
[Required(ErrorMessage = "Detector is required.")]
[JsonProperty(PropertyName = "detector")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DetectorEnum? Detector { get; set; }
Property Value
Type Description
DetectorEnum?

Detector type for the rule

Remarks

Required

DetectorRuleId

Declaration
[Required(ErrorMessage = "DetectorRuleId is required.")]
[JsonProperty(PropertyName = "detectorRuleId")]
public string DetectorRuleId { get; set; }
Property Value
Type Description
string

The unique identifier of the detector rule

Remarks

Required

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

Display name for TargetDetectorRecipeDetectorRule resource

EntitiesMappings

Declaration
[JsonProperty(PropertyName = "entitiesMappings")]
public List<EntitiesMapping> EntitiesMappings { get; set; }
Property Value
Type Description
List<EntitiesMapping>

Data source entities mapping for a detector rule

LifecycleDetails

Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
Type Description
string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

LifecycleState

Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type Description
LifecycleState?

The current lifecycle state of the detector rule

Locks

Declaration
[JsonProperty(PropertyName = "locks")]
public List<ResourceLock> Locks { get; set; }
Property Value
Type Description
List<ResourceLock>

Locks associated with this resource.

ManagedListTypes

Declaration
[JsonProperty(PropertyName = "managedListTypes", ItemConverterType = typeof(ResponseEnumConverter))]
public List<TargetDetectorRecipeDetectorRule.ManagedListTypesEnum> ManagedListTypes { get; set; }
Property Value
Type Description
List<TargetDetectorRecipeDetectorRule.ManagedListTypesEnum>

List of managed list types related to this rule

Recommendation

Declaration
[JsonProperty(PropertyName = "recommendation")]
public string Recommendation { get; set; }
Property Value
Type Description
string

Recommendation for TargetDetectorRecipeDetectorRule resource

ResourceType

Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type Description
string

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).

Remarks

Required

ServiceType

Declaration
[Required(ErrorMessage = "ServiceType is required.")]
[JsonProperty(PropertyName = "serviceType")]
public string ServiceType { get; set; }
Property Value
Type Description
string

Service type of the configuration to which the rule is applied

Remarks

Required

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the target detector recipe rule was created. Format defined by RFC3339.

TimeUpdated

Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time the target detector recipe rule was last updated. Format defined by RFC3339.

In this article
Back to top