Class ContainerScanResult
A scan result for a container scan
Inherited Members
Namespace: Oci.VulnerabilityscanningService.Models
Assembly: OCI.DotNetSDK.Vulnerabilityscanning.dll
Syntax
public class ContainerScanResult
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the container scan result's compartment. This is set to the same as the compartmentId of the container scan target |
Remarks
Required
ContainerScanTargetId
Declaration
[JsonProperty(PropertyName = "containerScanTargetId")]
public string ContainerScanTargetId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of container scan target. |
HighestProblemSeverity
Declaration
[Required(ErrorMessage = "HighestProblemSeverity is required.")]
[JsonProperty(PropertyName = "highestProblemSeverity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScanResultProblemSeverity? HighestProblemSeverity { get; set; }
Property Value
Type | Description |
---|---|
ScanResultProblemSeverity? | Highest problem severity in this report |
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of container scan result. Immutable and generated on creation. |
Remarks
Required
Image
Declaration
[Required(ErrorMessage = "Image is required.")]
[JsonProperty(PropertyName = "image")]
public string Image { get; set; }
Property Value
Type | Description |
---|---|
string | Image name |
Remarks
Required
ProblemCount
Declaration
[JsonProperty(PropertyName = "problemCount")]
public int? ProblemCount { get; set; }
Property Value
Type | Description |
---|---|
int? | Total number of problems found in this scan |
Problems
Declaration
[Required(ErrorMessage = "Problems is required.")]
[JsonProperty(PropertyName = "problems")]
public List<ContainerScanResultProblem> Problems { get; set; }
Property Value
Type | Description |
---|---|
List<ContainerScanResultProblem> | List of problems found in this scan |
Remarks
Required
RegistryUrl
Declaration
[JsonProperty(PropertyName = "registryUrl")]
public string RegistryUrl { get; set; }
Property Value
Type | Description |
---|---|
string | The URL of the docker registry the repository is located in. |
Repository
Declaration
[Required(ErrorMessage = "Repository is required.")]
[JsonProperty(PropertyName = "repository")]
public string Repository { get; set; }
Property Value
Type | Description |
---|---|
string | Repository in which the container image scanned is located |
Remarks
Required
TargetCompartmentId
Declaration
[JsonProperty(PropertyName = "targetCompartmentId")]
public string TargetCompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment to where scan was performed. |
TimeFinished
Declaration
[Required(ErrorMessage = "TimeFinished is required.")]
[JsonProperty(PropertyName = "timeFinished")]
public DateTime? TimeFinished { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Date and time the scan was completed, as described in RFC 3339 |
Remarks
Required
TimeStarted
Declaration
[Required(ErrorMessage = "TimeStarted is required.")]
[JsonProperty(PropertyName = "timeStarted")]
public DateTime? TimeStarted { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Date and time the scan was started, as described in RFC 3339 |
Remarks
Required