Show / Hide Table of Contents

Class Resource

Details of cloud guard resource

Inheritance
object
Resource
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 Resource

Properties

AdditionalDetails

Declaration
[JsonProperty(PropertyName = "additionalDetails")]
public ResourceAdditionalDetails AdditionalDetails { get; set; }
Property Value
Type Description
ResourceAdditionalDetails

CompartmentId

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

CompartmentId of CG Resource

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"}}

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

Ocid for CG resource

Remarks

Required

OpenPortsCount

Declaration
[JsonProperty(PropertyName = "openPortsCount")]
public int? OpenPortsCount { get; set; }
Property Value
Type Description
int?

Number of open ports in a resource

ProblemCount

Declaration
[JsonProperty(PropertyName = "problemCount")]
public int? ProblemCount { get; set; }
Property Value
Type Description
int?

Count of existing problems for a resource

Region

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

region of CG Resource

Remarks

Required

ResourceName

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

Name for the CG resource

ResourceType

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

resource type of the CG resource

Remarks

Required

RiskLevel

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

The Risk Level

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.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}

TargetId

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

TargetId of CG Resource

Remarks

Required

TargetName

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

Target name for the CG Resource

TimeFirstMonitored

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

First monitored time

TimeLastMonitored

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

Last monitored time

VulnerabilityCount

Declaration
[JsonProperty(PropertyName = "vulnerabilityCount")]
public int? VulnerabilityCount { get; set; }
Property Value
Type Description
int?

Count of existing number of vulnerabilities in the resource

In this article
Back to top