Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getVulnerabilityAudit

This data source provides details about a specific Vulnerability Audit resource in Oracle Cloud Infrastructure ADM service.

Returns the details of the specified Vulnerability Audit.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testVulnerabilityAudit = Oci.Adm.GetVulnerabilityAudit.Invoke(new()
    {
        VulnerabilityAuditId = oci_adm_vulnerability_audit.Test_vulnerability_audit.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Adm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Adm.GetVulnerabilityAudit(ctx, &adm.GetVulnerabilityAuditArgs{
			VulnerabilityAuditId: oci_adm_vulnerability_audit.Test_vulnerability_audit.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Adm.AdmFunctions;
import com.pulumi.oci.Adm.inputs.GetVulnerabilityAuditArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var testVulnerabilityAudit = AdmFunctions.getVulnerabilityAudit(GetVulnerabilityAuditArgs.builder()
            .vulnerabilityAuditId(oci_adm_vulnerability_audit.test_vulnerability_audit().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_vulnerability_audit = oci.Adm.get_vulnerability_audit(vulnerability_audit_id=oci_adm_vulnerability_audit["test_vulnerability_audit"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testVulnerabilityAudit = oci.Adm.getVulnerabilityAudit({
    vulnerabilityAuditId: oci_adm_vulnerability_audit.test_vulnerability_audit.id,
});
variables:
  testVulnerabilityAudit:
    Fn::Invoke:
      Function: oci:Adm:getVulnerabilityAudit
      Arguments:
        vulnerabilityAuditId: ${oci_adm_vulnerability_audit.test_vulnerability_audit.id}

Using getVulnerabilityAudit

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVulnerabilityAudit(args: GetVulnerabilityAuditArgs, opts?: InvokeOptions): Promise<GetVulnerabilityAuditResult>
function getVulnerabilityAuditOutput(args: GetVulnerabilityAuditOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityAuditResult>
def get_vulnerability_audit(vulnerability_audit_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetVulnerabilityAuditResult
def get_vulnerability_audit_output(vulnerability_audit_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityAuditResult]
func GetVulnerabilityAudit(ctx *Context, args *GetVulnerabilityAuditArgs, opts ...InvokeOption) (*GetVulnerabilityAuditResult, error)
func GetVulnerabilityAuditOutput(ctx *Context, args *GetVulnerabilityAuditOutputArgs, opts ...InvokeOption) GetVulnerabilityAuditResultOutput

> Note: This function is named GetVulnerabilityAudit in the Go SDK.

public static class GetVulnerabilityAudit 
{
    public static Task<GetVulnerabilityAuditResult> InvokeAsync(GetVulnerabilityAuditArgs args, InvokeOptions? opts = null)
    public static Output<GetVulnerabilityAuditResult> Invoke(GetVulnerabilityAuditInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVulnerabilityAuditResult> getVulnerabilityAudit(GetVulnerabilityAuditArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Adm/getVulnerabilityAudit:getVulnerabilityAudit
  arguments:
    # arguments dictionary

The following arguments are supported:

VulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

VulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

vulnerabilityAuditId String

Unique Vulnerability Audit identifier path parameter.

vulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

vulnerability_audit_id str

Unique Vulnerability Audit identifier path parameter.

vulnerabilityAuditId String

Unique Vulnerability Audit identifier path parameter.

getVulnerabilityAudit Result

The following output properties are available:

ApplicationDependencies List<GetVulnerabilityAuditApplicationDependency>
BuildType string

The type of the build tool.

CompartmentId string

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

Configurations List<GetVulnerabilityAuditConfiguration>

Configuration for a Vulnerability Audit type: object

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

The name of the Vulnerability Audit.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique vulnerability identifier.

IsSuccess bool

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

KnowledgeBaseId string

The Oracle Cloud identifier (OCID) of the Knowledge Base.

MaxObservedCvssV2score double

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

MaxObservedCvssV3score double

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

State string

The current lifecycle state of the Vulnerability Audit.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

TimeUpdated string

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

Vulnerabilities List<GetVulnerabilityAuditVulnerability>

List of vulnerabilities found in the Vulnerability Audit.

VulnerabilityAuditId string
VulnerableArtifactsCount int

Count of vulnerable artifacts.

ApplicationDependencies []GetVulnerabilityAuditApplicationDependency
BuildType string

The type of the build tool.

CompartmentId string

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

Configurations []GetVulnerabilityAuditConfiguration

Configuration for a Vulnerability Audit type: object

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

DisplayName string

The name of the Vulnerability Audit.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Unique vulnerability identifier.

IsSuccess bool

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

KnowledgeBaseId string

The Oracle Cloud identifier (OCID) of the Knowledge Base.

MaxObservedCvssV2score float64

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

MaxObservedCvssV3score float64

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

State string

The current lifecycle state of the Vulnerability Audit.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

TimeUpdated string

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

Vulnerabilities []GetVulnerabilityAuditVulnerability

List of vulnerabilities found in the Vulnerability Audit.

VulnerabilityAuditId string
VulnerableArtifactsCount int

Count of vulnerable artifacts.

applicationDependencies List<GetVulnerabilityAuditApplicationDependency>
buildType String

The type of the build tool.

compartmentId String

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

configurations List<GetVulnerabilityAuditConfiguration>

Configuration for a Vulnerability Audit type: object

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

The name of the Vulnerability Audit.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique vulnerability identifier.

isSuccess Boolean

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

knowledgeBaseId String

The Oracle Cloud identifier (OCID) of the Knowledge Base.

maxObservedCvssV2score Double

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

maxObservedCvssV3score Double

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

state String

The current lifecycle state of the Vulnerability Audit.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

timeUpdated String

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

vulnerabilities List<GetVulnerabilityAuditVulnerability>

List of vulnerabilities found in the Vulnerability Audit.

vulnerabilityAuditId String
vulnerableArtifactsCount Integer

Count of vulnerable artifacts.

applicationDependencies GetVulnerabilityAuditApplicationDependency[]
buildType string

The type of the build tool.

compartmentId string

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

configurations GetVulnerabilityAuditConfiguration[]

Configuration for a Vulnerability Audit type: object

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName string

The name of the Vulnerability Audit.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id string

Unique vulnerability identifier.

isSuccess boolean

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

knowledgeBaseId string

The Oracle Cloud identifier (OCID) of the Knowledge Base.

maxObservedCvssV2score number

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

maxObservedCvssV3score number

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

state string

The current lifecycle state of the Vulnerability Audit.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

timeUpdated string

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

vulnerabilities GetVulnerabilityAuditVulnerability[]

List of vulnerabilities found in the Vulnerability Audit.

vulnerabilityAuditId string
vulnerableArtifactsCount number

Count of vulnerable artifacts.

application_dependencies GetVulnerabilityAuditApplicationDependency]
build_type str

The type of the build tool.

compartment_id str

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

configurations GetVulnerabilityAuditConfiguration]

Configuration for a Vulnerability Audit type: object

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

display_name str

The name of the Vulnerability Audit.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id str

Unique vulnerability identifier.

is_success bool

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

knowledge_base_id str

The Oracle Cloud identifier (OCID) of the Knowledge Base.

max_observed_cvss_v2score float

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

max_observed_cvss_v3score float

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

state str

The current lifecycle state of the Vulnerability Audit.

system_tags Mapping[str, Any]

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

time_updated str

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

vulnerabilities GetVulnerabilityAuditVulnerability]

List of vulnerabilities found in the Vulnerability Audit.

vulnerability_audit_id str
vulnerable_artifacts_count int

Count of vulnerable artifacts.

applicationDependencies List<Property Map>
buildType String

The type of the build tool.

compartmentId String

The Oracle Cloud identifier (OCID) of the compartment associated with the Vulnerability Audit.

configurations List<Property Map>

Configuration for a Vulnerability Audit type: object

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

displayName String

The name of the Vulnerability Audit.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Unique vulnerability identifier.

isSuccess Boolean

Indicates if an audit succeeded according to the configuration. The value is null if the audit is in the CREATING state.

knowledgeBaseId String

The Oracle Cloud identifier (OCID) of the Knowledge Base.

maxObservedCvssV2score Number

Maximum Common Vulnerability Scoring System Version 2 score of vulnerabilities.

maxObservedCvssV3score Number

Maximum Common Vulnerability Scoring System Version 3 score of vulnerabilities.

state String

The current lifecycle state of the Vulnerability Audit.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The creation date and time of the Vulnerability Audit (formatted according to RFC3339).

timeUpdated String

The update date and time of the Vulnerability Audit (formatted according to RFC3339).

vulnerabilities List<Property Map>

List of vulnerabilities found in the Vulnerability Audit.

vulnerabilityAuditId String
vulnerableArtifactsCount Number

Count of vulnerable artifacts.

Supporting Types

GetVulnerabilityAuditApplicationDependency

ApplicationDependencyNodeIds List<string>
Gav string
NodeId string
applicationDependencyNodeIds List<String>
gav String
nodeId String
applicationDependencyNodeIds List<String>
gav String
nodeId String

GetVulnerabilityAuditConfiguration

Exclusions List<string>

Pattern to exclude artifacts from audit.

MaxPermissibleCvssV2score double

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

MaxPermissibleCvssV3score double

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

Exclusions []string

Pattern to exclude artifacts from audit.

MaxPermissibleCvssV2score float64

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

MaxPermissibleCvssV3score float64

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

exclusions List<String>

Pattern to exclude artifacts from audit.

maxPermissibleCvssV2score Double

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

maxPermissibleCvssV3score Double

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

exclusions string[]

Pattern to exclude artifacts from audit.

maxPermissibleCvssV2score number

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

maxPermissibleCvssV3score number

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

exclusions Sequence[str]

Pattern to exclude artifacts from audit.

max_permissible_cvss_v2score float

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

max_permissible_cvss_v3score float

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

exclusions List<String>

Pattern to exclude artifacts from audit.

maxPermissibleCvssV2score Number

The minimum CVSS V2 score for a vulnerability to be considered by the audit as failed.

maxPermissibleCvssV3score Number

The minimum CVSS V3 score for a vulnerability to be considered by the audit as failed.

GetVulnerabilityAuditVulnerability

CvssV2score double

Common Vulnerability Scoring System (CVSS) Version 2.

CvssV3score double

Common Vulnerability Scoring System (CVSS) Version 3.

Id string

Unique vulnerability identifier.

IsIgnored bool

Indicates if the vulnerability was ignored according to the audit configuration.

CvssV2score float64

Common Vulnerability Scoring System (CVSS) Version 2.

CvssV3score float64

Common Vulnerability Scoring System (CVSS) Version 3.

Id string

Unique vulnerability identifier.

IsIgnored bool

Indicates if the vulnerability was ignored according to the audit configuration.

cvssV2score Double

Common Vulnerability Scoring System (CVSS) Version 2.

cvssV3score Double

Common Vulnerability Scoring System (CVSS) Version 3.

id String

Unique vulnerability identifier.

isIgnored Boolean

Indicates if the vulnerability was ignored according to the audit configuration.

cvssV2score number

Common Vulnerability Scoring System (CVSS) Version 2.

cvssV3score number

Common Vulnerability Scoring System (CVSS) Version 3.

id string

Unique vulnerability identifier.

isIgnored boolean

Indicates if the vulnerability was ignored according to the audit configuration.

cvss_v2score float

Common Vulnerability Scoring System (CVSS) Version 2.

cvss_v3score float

Common Vulnerability Scoring System (CVSS) Version 3.

id str

Unique vulnerability identifier.

is_ignored bool

Indicates if the vulnerability was ignored according to the audit configuration.

cvssV2score Number

Common Vulnerability Scoring System (CVSS) Version 2.

cvssV3score Number

Common Vulnerability Scoring System (CVSS) Version 3.

id String

Unique vulnerability identifier.

isIgnored Boolean

Indicates if the vulnerability was ignored according to the audit configuration.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.