Class Vulnerability
A vulnerability found from scans in a compartment
Inherited Members
Namespace: Oci.VulnerabilityscanningService.Models
Assembly: OCI.DotNetSDK.Vulnerabilityscanning.dll
Syntax
public class Vulnerability
Properties
Authentication
Declaration
[JsonProperty(PropertyName = "authentication")]
public string Authentication { get; set; }
Property Value
Type | Description |
---|---|
string | Mechanism used for scan authentication |
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | Compartment ID of the vulnerability. Vulnerabilities with identical CVEs can exist in different compartments, based on scan target location |
Remarks
Required
CveDescription
Declaration
[JsonProperty(PropertyName = "cveDescription")]
public string CveDescription { get; set; }
Property Value
Type | Description |
---|---|
string | The description of CVE vulnerability |
CveDetails
Declaration
[JsonProperty(PropertyName = "cveDetails")]
public CveDetails CveDetails { get; set; }
Property Value
Type | Description |
---|---|
CveDetails |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the vulnerability |
Remarks
Required
ImpactedResourcesCount
Declaration
[Required(ErrorMessage = "ImpactedResourcesCount is required.")]
[JsonProperty(PropertyName = "impactedResourcesCount")]
public ImpactedResourcesCount ImpactedResourcesCount { get; set; }
Property Value
Type | Description |
---|---|
ImpactedResourcesCount |
Remarks
Required
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
LifecycleState? | The current state of the resource. |
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | Vulnerability name |
Remarks
Required
Severity
Declaration
[Required(ErrorMessage = "Severity is required.")]
[JsonProperty(PropertyName = "severity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScanResultProblemSeverity? Severity { get; set; }
Property Value
Type | Description |
---|---|
ScanResultProblemSeverity? | Severity of the vulnerability |
Remarks
Required
State
Declaration
[JsonProperty(PropertyName = "state")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScanResultVulnerabilityState? State { get; set; }
Property Value
Type | Description |
---|---|
ScanResultVulnerabilityState? | State of the vulnerability |
TimeFirstDetected
Declaration
[Required(ErrorMessage = "TimeFirstDetected is required.")]
[JsonProperty(PropertyName = "timeFirstDetected")]
public DateTime? TimeFirstDetected { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Date of scan result that first reported the vulnerability |
Remarks
Required
TimeLastDetected
Declaration
[Required(ErrorMessage = "TimeLastDetected is required.")]
[JsonProperty(PropertyName = "timeLastDetected")]
public DateTime? TimeLastDetected { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Date of scan result that most recently reported the vulnerability |
Remarks
Required
VulnerabilityReference
Declaration
[JsonProperty(PropertyName = "vulnerabilityReference")]
public string VulnerabilityReference { get; set; }
Property Value
Type | Description |
---|---|
string | Reference to the vulnerability type's unique identifier. For CVE, this is the MITRE CVE ID |
VulnerabilityType
Declaration
[Required(ErrorMessage = "VulnerabilityType is required.")]
[JsonProperty(PropertyName = "vulnerabilityType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public VulnerabilityType? VulnerabilityType { get; set; }
Property Value
Type | Description |
---|---|
VulnerabilityType? | Specifies the type of Vulnerability |
Remarks
Required