import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVulnerabilityAudit = oci.adm.getVulnerabilityAudit({ * vulnerabilityAuditId: testVulnerabilityAuditOciAdmVulnerabilityAudit.id, * }); * ``` */ export declare function getVulnerabilityAudit(args: GetVulnerabilityAuditArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVulnerabilityAudit. */ export interface GetVulnerabilityAuditArgs { /** * Unique Vulnerability Audit identifier path parameter. */ vulnerabilityAuditId: string; } /** * A collection of values returned by getVulnerabilityAudit. */ export interface GetVulnerabilityAuditResult { readonly applicationDependencies: outputs.Adm.GetVulnerabilityAuditApplicationDependency[]; /** * The type of the build tool is restricted to only two values MAVEN or UNSET. Use UNSET when the list of application dependencies is not Maven-related or is a mix of Maven and other ecosystems. This option is soon to be deprecated. */ readonly buildType: string; /** * The compartment Oracle Cloud identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the vulnerability audit. */ readonly compartmentId: string; /** * Configuration for a vulnerability audit. A vulnerable application dependency is ignored if its name does match any of the items in `exclusions`, or all of the associated Vulnerabilies have a CVSS v2 score below `maxPermissibleCvssV2Score` and a CVSS v3 score below `maxPermissibleCvssV3Score`. type: object */ readonly configurations: outputs.Adm.GetVulnerabilityAuditConfiguration[]; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: { [key: string]: string; }; /** * The name of the vulnerability audit. */ readonly displayName: string; /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: { [key: string]: string; }; /** * Unique vulnerability identifier, e.g. CVE-1999-0067. */ readonly id: string; /** * Indicates if an audit succeeded according to the configuration. The value is `null` if the audit is in the `CREATING` state. */ readonly isSuccess: boolean; /** * The Oracle Cloud identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the knowledge base. */ readonly knowledgeBaseId: string; /** * Details on the lifecycle state. */ readonly lifecycleDetails: string; /** * Maximum Common Vulnerability Scoring System Version 2 score observed for non-ignored vulnerable application dependencies. */ readonly maxObservedCvssV2score: number; /** * Maximum Common Vulnerability Scoring System Version 2 score observed for vulnerable application dependencies including ignored ones. */ readonly maxObservedCvssV2scoreWithIgnored: number; /** * Maximum Common Vulnerability Scoring System Version 3 score observed for non-ignored vulnerable application dependencies. */ readonly maxObservedCvssV3score: number; /** * Maximum Common Vulnerability Scoring System Version 3 score observed for vulnerable application dependencies including ignored ones. */ readonly maxObservedCvssV3scoreWithIgnored: number; /** * Maximum ADM Severity observed for non-ignored vulnerable application dependencies. */ readonly maxObservedSeverity: string; /** * Maximum ADM Severity observed for vulnerable application dependencies including ignored ones. */ readonly maxObservedSeverityWithIgnored: string; /** * Source that published the vulnerability */ readonly sources: outputs.Adm.GetVulnerabilityAuditSource[]; /** * The current lifecycle state of the vulnerability audit. */ readonly state: string; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: { [key: string]: string; }; /** * The creation date and time of the vulnerability audit (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeCreated: string; /** * The update date and time of the vulnerability audit (formatted according to [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339)). */ readonly timeUpdated: string; /** * The source details of the usage data in object storage. The usage data file uploaded to object storage must be a gzip archive of the JSON usage data returned from the GraalVM native-image-inspect tool after a native-image build. Set `sourceType` to `objectStorageTuple` and use [UsageDataViaObjectStorageTupleDetails](https://docs.cloud.oracle.com/iaas/api/#/en/adm/latest/requests/UsageDataViaObjectStorageTupleDetails) when specifying the namespace, bucket name, and object name. */ readonly usageDatas: outputs.Adm.GetVulnerabilityAuditUsageData[]; /** * List of vulnerabilities found in the vulnerability audit. If a vulnerability affects multiple dependencies, the metadata returned here consists of audit-wide aggregates. */ readonly vulnerabilities: outputs.Adm.GetVulnerabilityAuditVulnerability[]; readonly vulnerabilityAuditId: string; /** * Count of non-ignored vulnerable application dependencies. */ readonly vulnerableArtifactsCount: number; /** * Count of all vulnerable application dependencies. */ readonly vulnerableArtifactsCountWithIgnored: number; } /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVulnerabilityAudit = oci.adm.getVulnerabilityAudit({ * vulnerabilityAuditId: testVulnerabilityAuditOciAdmVulnerabilityAudit.id, * }); * ``` */ export declare function getVulnerabilityAuditOutput(args: GetVulnerabilityAuditOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVulnerabilityAudit. */ export interface GetVulnerabilityAuditOutputArgs { /** * Unique Vulnerability Audit identifier path parameter. */ vulnerabilityAuditId: pulumi.Input; } //# sourceMappingURL=getVulnerabilityAudit.d.ts.map