Class Target
A target defines the scope of resources that Cloud Guard monitors and the rules to be enforced in that monitoring. A Target resource contains the settings for a specific target.
Inherited Members
Namespace: Oci.CloudguardService.Models
Assembly: OCI.DotNetSDK.Cloudguard.dll
Syntax
public class Target
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | Compartment OCID where the resource is created |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | The target description |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | Target display name |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | 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. |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | Unique identifier that can't be changed after creation |
Remarks
Required
InheritedByCompartments
Declaration
[JsonProperty(PropertyName = "inheritedByCompartments")]
public List<string> InheritedByCompartments { get; set; }
Property Value
Type | Description |
---|---|
List<string> | List of inherited compartments |
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
LifecycleState? | The current lifecycle state of the target |
LifecyleDetails
Declaration
[JsonProperty(PropertyName = "lifecyleDetails")]
public string LifecyleDetails { get; set; }
Property Value
Type | Description |
---|---|
string | A message describing the current lifecycle state in more detail. For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE] |
RecipeCount
Declaration
[Required(ErrorMessage = "RecipeCount is required.")]
[JsonProperty(PropertyName = "recipeCount")]
public int? RecipeCount { get; set; }
Property Value
Type | Description |
---|---|
int? | Total number of recipes attached to target |
Remarks
Required
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | System tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see Resource Tags.
System tags can be viewed by users, but can only be created by the system.
|
TargetDetails
Declaration
[JsonProperty(PropertyName = "targetDetails")]
public TargetDetails TargetDetails { get; set; }
Property Value
Type | Description |
---|---|
TargetDetails |
TargetDetectorRecipes
Declaration
[JsonProperty(PropertyName = "targetDetectorRecipes")]
public List<TargetDetectorRecipe> TargetDetectorRecipes { get; set; }
Property Value
Type | Description |
---|---|
List<TargetDetectorRecipe> | List of detector recipes attached to target |
TargetResourceId
Declaration
[Required(ErrorMessage = "TargetResourceId is required.")]
[JsonProperty(PropertyName = "targetResourceId")]
public string TargetResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | Resource ID which the target uses to monitor |
Remarks
Required
TargetResourceType
Declaration
[Required(ErrorMessage = "TargetResourceType is required.")]
[JsonProperty(PropertyName = "targetResourceType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public TargetResourceType? TargetResourceType { get; set; }
Property Value
Type | Description |
---|---|
TargetResourceType? | Type of target |
Remarks
Required
TargetResponderRecipes
Declaration
[JsonProperty(PropertyName = "targetResponderRecipes")]
public List<TargetResponderRecipe> TargetResponderRecipes { get; set; }
Property Value
Type | Description |
---|---|
List<TargetResponderRecipe> | List of responder recipes attached to target |
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the target 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 was last updated. Format defined by RFC3339. |