Oracle Cloud Infrastructure

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

getVulnerabilityAuditApplicationDependencyVulnerability

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

Returns a list of Application Dependencies with their associated vulnerabilities.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testVulnerabilityAuditApplicationDependencyVulnerability = Oci.Adm.GetVulnerabilityAuditApplicationDependencyVulnerability.Invoke(new()
    {
        VulnerabilityAuditId = oci_adm_vulnerability_audit.Test_vulnerability_audit.Id,
        CvssV2greaterThanOrEqual = @var.Vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal,
        CvssV3greaterThanOrEqual = @var.Vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal,
        Gav = @var.Vulnerability_audit_application_dependency_vulnerability_gav,
        VulnerabilityId = oci_adm_vulnerability.Test_vulnerability.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.GetVulnerabilityAuditApplicationDependencyVulnerability(ctx, &adm.GetVulnerabilityAuditApplicationDependencyVulnerabilityArgs{
			VulnerabilityAuditId:     oci_adm_vulnerability_audit.Test_vulnerability_audit.Id,
			CvssV2greaterThanOrEqual: pulumi.Float64Ref(_var.Vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal),
			CvssV3greaterThanOrEqual: pulumi.Float64Ref(_var.Vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal),
			Gav:                      pulumi.StringRef(_var.Vulnerability_audit_application_dependency_vulnerability_gav),
			VulnerabilityId:          pulumi.StringRef(oci_adm_vulnerability.Test_vulnerability.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.GetVulnerabilityAuditApplicationDependencyVulnerabilityArgs;
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 testVulnerabilityAuditApplicationDependencyVulnerability = AdmFunctions.getVulnerabilityAuditApplicationDependencyVulnerability(GetVulnerabilityAuditApplicationDependencyVulnerabilityArgs.builder()
            .vulnerabilityAuditId(oci_adm_vulnerability_audit.test_vulnerability_audit().id())
            .cvssV2greaterThanOrEqual(var_.vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal())
            .cvssV3greaterThanOrEqual(var_.vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal())
            .gav(var_.vulnerability_audit_application_dependency_vulnerability_gav())
            .vulnerabilityId(oci_adm_vulnerability.test_vulnerability().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_vulnerability_audit_application_dependency_vulnerability = oci.Adm.get_vulnerability_audit_application_dependency_vulnerability(vulnerability_audit_id=oci_adm_vulnerability_audit["test_vulnerability_audit"]["id"],
    cvss_v2greater_than_or_equal=var["vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal"],
    cvss_v3greater_than_or_equal=var["vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal"],
    gav=var["vulnerability_audit_application_dependency_vulnerability_gav"],
    vulnerability_id=oci_adm_vulnerability["test_vulnerability"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testVulnerabilityAuditApplicationDependencyVulnerability = oci.Adm.getVulnerabilityAuditApplicationDependencyVulnerability({
    vulnerabilityAuditId: oci_adm_vulnerability_audit.test_vulnerability_audit.id,
    cvssV2greaterThanOrEqual: _var.vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal,
    cvssV3greaterThanOrEqual: _var.vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal,
    gav: _var.vulnerability_audit_application_dependency_vulnerability_gav,
    vulnerabilityId: oci_adm_vulnerability.test_vulnerability.id,
});
variables:
  testVulnerabilityAuditApplicationDependencyVulnerability:
    Fn::Invoke:
      Function: oci:Adm:getVulnerabilityAuditApplicationDependencyVulnerability
      Arguments:
        vulnerabilityAuditId: ${oci_adm_vulnerability_audit.test_vulnerability_audit.id}
        cvssV2greaterThanOrEqual: ${var.vulnerability_audit_application_dependency_vulnerability_cvss_v2greater_than_or_equal}
        cvssV3greaterThanOrEqual: ${var.vulnerability_audit_application_dependency_vulnerability_cvss_v3greater_than_or_equal}
        gav: ${var.vulnerability_audit_application_dependency_vulnerability_gav}
        vulnerabilityId: ${oci_adm_vulnerability.test_vulnerability.id}

Using getVulnerabilityAuditApplicationDependencyVulnerability

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 getVulnerabilityAuditApplicationDependencyVulnerability(args: GetVulnerabilityAuditApplicationDependencyVulnerabilityArgs, opts?: InvokeOptions): Promise<GetVulnerabilityAuditApplicationDependencyVulnerabilityResult>
function getVulnerabilityAuditApplicationDependencyVulnerabilityOutput(args: GetVulnerabilityAuditApplicationDependencyVulnerabilityOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityAuditApplicationDependencyVulnerabilityResult>
def get_vulnerability_audit_application_dependency_vulnerability(cvss_v2greater_than_or_equal: Optional[float] = None,
                                                                 cvss_v3greater_than_or_equal: Optional[float] = None,
                                                                 gav: Optional[str] = None,
                                                                 vulnerability_audit_id: Optional[str] = None,
                                                                 vulnerability_id: Optional[str] = None,
                                                                 opts: Optional[InvokeOptions] = None) -> GetVulnerabilityAuditApplicationDependencyVulnerabilityResult
def get_vulnerability_audit_application_dependency_vulnerability_output(cvss_v2greater_than_or_equal: Optional[pulumi.Input[float]] = None,
                                                                 cvss_v3greater_than_or_equal: Optional[pulumi.Input[float]] = None,
                                                                 gav: Optional[pulumi.Input[str]] = None,
                                                                 vulnerability_audit_id: Optional[pulumi.Input[str]] = None,
                                                                 vulnerability_id: Optional[pulumi.Input[str]] = None,
                                                                 opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityAuditApplicationDependencyVulnerabilityResult]
func GetVulnerabilityAuditApplicationDependencyVulnerability(ctx *Context, args *GetVulnerabilityAuditApplicationDependencyVulnerabilityArgs, opts ...InvokeOption) (*GetVulnerabilityAuditApplicationDependencyVulnerabilityResult, error)
func GetVulnerabilityAuditApplicationDependencyVulnerabilityOutput(ctx *Context, args *GetVulnerabilityAuditApplicationDependencyVulnerabilityOutputArgs, opts ...InvokeOption) GetVulnerabilityAuditApplicationDependencyVulnerabilityResultOutput

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

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

The following arguments are supported:

VulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

CvssV2greaterThanOrEqual double

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

CvssV3greaterThanOrEqual double

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

Gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

VulnerabilityId string

A filter to return only Vulnerability Audits that match the specified id.

VulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

CvssV2greaterThanOrEqual float64

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

CvssV3greaterThanOrEqual float64

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

Gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

VulnerabilityId string

A filter to return only Vulnerability Audits that match the specified id.

vulnerabilityAuditId String

Unique Vulnerability Audit identifier path parameter.

cvssV2greaterThanOrEqual Double

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

cvssV3greaterThanOrEqual Double

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

gav String

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

vulnerabilityId String

A filter to return only Vulnerability Audits that match the specified id.

vulnerabilityAuditId string

Unique Vulnerability Audit identifier path parameter.

cvssV2greaterThanOrEqual number

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

cvssV3greaterThanOrEqual number

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

vulnerabilityId string

A filter to return only Vulnerability Audits that match the specified id.

vulnerability_audit_id str

Unique Vulnerability Audit identifier path parameter.

cvss_v2greater_than_or_equal float

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

cvss_v3greater_than_or_equal float

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

gav str

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

vulnerability_id str

A filter to return only Vulnerability Audits that match the specified id.

vulnerabilityAuditId String

Unique Vulnerability Audit identifier path parameter.

cvssV2greaterThanOrEqual Number

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 2 (CVSS V2) greater or equal than the specified value.

cvssV3greaterThanOrEqual Number

A filter that returns only Vulnerability Audits that have a Common Vulnerability Scoring System Version 3 (CVSS V3) greater or equal than the specified value.

gav String

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

vulnerabilityId String

A filter to return only Vulnerability Audits that match the specified id.

getVulnerabilityAuditApplicationDependencyVulnerability Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetVulnerabilityAuditApplicationDependencyVulnerabilityItem>

List of Vulnerability Audit summaries.

VulnerabilityAuditId string
CvssV2greaterThanOrEqual double
CvssV3greaterThanOrEqual double
Gav string

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

VulnerabilityId string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetVulnerabilityAuditApplicationDependencyVulnerabilityItem

List of Vulnerability Audit summaries.

VulnerabilityAuditId string
CvssV2greaterThanOrEqual float64
CvssV3greaterThanOrEqual float64
Gav string

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

VulnerabilityId string
id String

The provider-assigned unique ID for this managed resource.

items List<GetVulnerabilityAuditApplicationDependencyVulnerabilityItem>

List of Vulnerability Audit summaries.

vulnerabilityAuditId String
cvssV2greaterThanOrEqual Double
cvssV3greaterThanOrEqual Double
gav String

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

vulnerabilityId String
id string

The provider-assigned unique ID for this managed resource.

items GetVulnerabilityAuditApplicationDependencyVulnerabilityItem[]

List of Vulnerability Audit summaries.

vulnerabilityAuditId string
cvssV2greaterThanOrEqual number
cvssV3greaterThanOrEqual number
gav string

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

vulnerabilityId string
id str

The provider-assigned unique ID for this managed resource.

items GetVulnerabilityAuditApplicationDependencyVulnerabilityItem]

List of Vulnerability Audit summaries.

vulnerability_audit_id str
cvss_v2greater_than_or_equal float
cvss_v3greater_than_or_equal float
gav str

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

vulnerability_id str
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

List of Vulnerability Audit summaries.

vulnerabilityAuditId String
cvssV2greaterThanOrEqual Number
cvssV3greaterThanOrEqual Number
gav String

Unique Group Artifact Version (GAV) identifier (Group:Artifact:Version).

vulnerabilityId String

Supporting Types

GetVulnerabilityAuditApplicationDependencyVulnerabilityItem

ApplicationDependencyNodeIds List<string>

List of (Application Dependencies) node identifiers on which this node depends.

Gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

IsFoundInKnowledgeBase bool

Indicates if the artifact is found in the knowledge base.

NodeId string

Unique identifier of an Application Dependency node.

Vulnerabilities List<GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability>

List of vulnerabilities for the Application Dependency.

ApplicationDependencyNodeIds []string

List of (Application Dependencies) node identifiers on which this node depends.

Gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

IsFoundInKnowledgeBase bool

Indicates if the artifact is found in the knowledge base.

NodeId string

Unique identifier of an Application Dependency node.

Vulnerabilities []GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability

List of vulnerabilities for the Application Dependency.

applicationDependencyNodeIds List<String>

List of (Application Dependencies) node identifiers on which this node depends.

gav String

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

isFoundInKnowledgeBase Boolean

Indicates if the artifact is found in the knowledge base.

nodeId String

Unique identifier of an Application Dependency node.

vulnerabilities List<GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability>

List of vulnerabilities for the Application Dependency.

applicationDependencyNodeIds string[]

List of (Application Dependencies) node identifiers on which this node depends.

gav string

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

isFoundInKnowledgeBase boolean

Indicates if the artifact is found in the knowledge base.

nodeId string

Unique identifier of an Application Dependency node.

vulnerabilities GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability[]

List of vulnerabilities for the Application Dependency.

application_dependency_node_ids Sequence[str]

List of (Application Dependencies) node identifiers on which this node depends.

gav str

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

is_found_in_knowledge_base bool

Indicates if the artifact is found in the knowledge base.

node_id str

Unique identifier of an Application Dependency node.

vulnerabilities GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability]

List of vulnerabilities for the Application Dependency.

applicationDependencyNodeIds List<String>

List of (Application Dependencies) node identifiers on which this node depends.

gav String

A filter to return only resources that match the entire GAV (Group Artifact Version) identifier given.

isFoundInKnowledgeBase Boolean

Indicates if the artifact is found in the knowledge base.

nodeId String

Unique identifier of an Application Dependency node.

vulnerabilities List<Property Map>

List of vulnerabilities for the Application Dependency.

GetVulnerabilityAuditApplicationDependencyVulnerabilityItemVulnerability

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.