import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Vulnerability Audits in Oracle Cloud Infrastructure ADM service. * * Returns a list of Vulnerability Audits based on the specified query parameters. * At least one of id, compartmentId query parameter must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVulnerabilityAudits = oci.adm.getVulnerabilityAudits({ * compartmentId: compartmentId, * displayName: vulnerabilityAuditDisplayName, * id: vulnerabilityAuditId, * isSuccess: vulnerabilityAuditIsSuccess === "true", * knowledgeBaseId: testKnowledgeBase.id, * maxObservedSeverityGreaterThanOrEqualTo: vulnerabilityAuditMaxObservedSeverityGreaterThanOrEqualTo, * state: vulnerabilityAuditState, * timeCreatedGreaterThanOrEqualTo: vulnerabilityAuditTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThanOrEqualTo: vulnerabilityAuditTimeCreatedLessThanOrEqualTo, * }); * ``` */ export declare function getVulnerabilityAudits(args?: GetVulnerabilityAuditsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVulnerabilityAudits. */ export interface GetVulnerabilityAuditsArgs { /** * A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified. */ compartmentId?: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.Adm.GetVulnerabilityAuditsFilter[]; /** * A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified. */ id?: string; /** * A filter to return only successful or failed Vulnerability Audits. */ isSuccess?: boolean; /** * A filter to return only Audits that were created against the specified knowledge base. */ knowledgeBaseId?: string; /** * A filter that returns only Vulnerability Audits that have a maximum observed Severity greater than or equal to the specified value. */ maxObservedSeverityGreaterThanOrEqualTo?: string; /** * A filter to return only Vulnerability Audits that match the specified lifecycleState. */ state?: string; /** * A filter to return only Vulnerability Audits with timeCreated greater or equal to the specified value. */ timeCreatedGreaterThanOrEqualTo?: string; /** * A filter to return only Vulnerability Audits with timeCreated less or equal to the specified value. */ timeCreatedLessThanOrEqualTo?: string; } /** * A collection of values returned by getVulnerabilityAudits. */ export interface GetVulnerabilityAuditsResult { /** * The compartment Oracle Cloud identifier ([OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) of the vulnerability audit. */ readonly compartmentId?: string; /** * The name of the vulnerability audit. */ readonly displayName?: string; readonly filters?: outputs.Adm.GetVulnerabilityAuditsFilter[]; /** * 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; readonly maxObservedSeverityGreaterThanOrEqualTo?: string; /** * The current lifecycle state of the vulnerability audit. */ readonly state?: string; readonly timeCreatedGreaterThanOrEqualTo?: string; readonly timeCreatedLessThanOrEqualTo?: string; /** * The list of vulnerability_audit_collection. */ readonly vulnerabilityAuditCollections: outputs.Adm.GetVulnerabilityAuditsVulnerabilityAuditCollection[]; } /** * This data source provides the list of Vulnerability Audits in Oracle Cloud Infrastructure ADM service. * * Returns a list of Vulnerability Audits based on the specified query parameters. * At least one of id, compartmentId query parameter must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testVulnerabilityAudits = oci.adm.getVulnerabilityAudits({ * compartmentId: compartmentId, * displayName: vulnerabilityAuditDisplayName, * id: vulnerabilityAuditId, * isSuccess: vulnerabilityAuditIsSuccess === "true", * knowledgeBaseId: testKnowledgeBase.id, * maxObservedSeverityGreaterThanOrEqualTo: vulnerabilityAuditMaxObservedSeverityGreaterThanOrEqualTo, * state: vulnerabilityAuditState, * timeCreatedGreaterThanOrEqualTo: vulnerabilityAuditTimeCreatedGreaterThanOrEqualTo, * timeCreatedLessThanOrEqualTo: vulnerabilityAuditTimeCreatedLessThanOrEqualTo, * }); * ``` */ export declare function getVulnerabilityAuditsOutput(args?: GetVulnerabilityAuditsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVulnerabilityAudits. */ export interface GetVulnerabilityAuditsOutputArgs { /** * A filter to return only resources that belong to the specified compartment identifier. Required only if the id query param is not specified. */ compartmentId?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only resources that match the specified identifier. Required only if the compartmentId query parameter is not specified. */ id?: pulumi.Input; /** * A filter to return only successful or failed Vulnerability Audits. */ isSuccess?: pulumi.Input; /** * A filter to return only Audits that were created against the specified knowledge base. */ knowledgeBaseId?: pulumi.Input; /** * A filter that returns only Vulnerability Audits that have a maximum observed Severity greater than or equal to the specified value. */ maxObservedSeverityGreaterThanOrEqualTo?: pulumi.Input; /** * A filter to return only Vulnerability Audits that match the specified lifecycleState. */ state?: pulumi.Input; /** * A filter to return only Vulnerability Audits with timeCreated greater or equal to the specified value. */ timeCreatedGreaterThanOrEqualTo?: pulumi.Input; /** * A filter to return only Vulnerability Audits with timeCreated less or equal to the specified value. */ timeCreatedLessThanOrEqualTo?: pulumi.Input; } //# sourceMappingURL=getVulnerabilityAudits.d.ts.map