Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Dblm.getVulnerabilityScans
This data source provides the list of Vulnerability Scans in Oracle Cloud Infrastructure Dblm service.
Gets a list of VulnerabilityScans.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVulnerabilityScans = oci.Dblm.getVulnerabilityScans({
compartmentId: compartmentId,
displayName: vulnerabilityScanDisplayName,
timeCreatedGreaterThan: vulnerabilityScanTimeCreatedGreaterThan,
timeEndedLessThan: vulnerabilityScanTimeEndedLessThan,
vulnerabilityScanId: testVulnerabilityScan.id,
vulnerabilityScanStatuses: vulnerabilityScanVulnerabilityScanStatus,
vulnerabilityScanType: vulnerabilityScanVulnerabilityScanType,
});
import pulumi
import pulumi_oci as oci
test_vulnerability_scans = oci.Dblm.get_vulnerability_scans(compartment_id=compartment_id,
display_name=vulnerability_scan_display_name,
time_created_greater_than=vulnerability_scan_time_created_greater_than,
time_ended_less_than=vulnerability_scan_time_ended_less_than,
vulnerability_scan_id=test_vulnerability_scan["id"],
vulnerability_scan_statuses=vulnerability_scan_vulnerability_scan_status,
vulnerability_scan_type=vulnerability_scan_vulnerability_scan_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/dblm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dblm.GetVulnerabilityScans(ctx, &dblm.GetVulnerabilityScansArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(vulnerabilityScanDisplayName),
TimeCreatedGreaterThan: pulumi.StringRef(vulnerabilityScanTimeCreatedGreaterThan),
TimeEndedLessThan: pulumi.StringRef(vulnerabilityScanTimeEndedLessThan),
VulnerabilityScanId: pulumi.StringRef(testVulnerabilityScan.Id),
VulnerabilityScanStatuses: vulnerabilityScanVulnerabilityScanStatus,
VulnerabilityScanType: pulumi.StringRef(vulnerabilityScanVulnerabilityScanType),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testVulnerabilityScans = Oci.Dblm.GetVulnerabilityScans.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = vulnerabilityScanDisplayName,
TimeCreatedGreaterThan = vulnerabilityScanTimeCreatedGreaterThan,
TimeEndedLessThan = vulnerabilityScanTimeEndedLessThan,
VulnerabilityScanId = testVulnerabilityScan.Id,
VulnerabilityScanStatuses = vulnerabilityScanVulnerabilityScanStatus,
VulnerabilityScanType = vulnerabilityScanVulnerabilityScanType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dblm.DblmFunctions;
import com.pulumi.oci.Dblm.inputs.GetVulnerabilityScansArgs;
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 testVulnerabilityScans = DblmFunctions.getVulnerabilityScans(GetVulnerabilityScansArgs.builder()
.compartmentId(compartmentId)
.displayName(vulnerabilityScanDisplayName)
.timeCreatedGreaterThan(vulnerabilityScanTimeCreatedGreaterThan)
.timeEndedLessThan(vulnerabilityScanTimeEndedLessThan)
.vulnerabilityScanId(testVulnerabilityScan.id())
.vulnerabilityScanStatuses(vulnerabilityScanVulnerabilityScanStatus)
.vulnerabilityScanType(vulnerabilityScanVulnerabilityScanType)
.build());
}
}
variables:
testVulnerabilityScans:
fn::invoke:
function: oci:Dblm:getVulnerabilityScans
arguments:
compartmentId: ${compartmentId}
displayName: ${vulnerabilityScanDisplayName}
timeCreatedGreaterThan: ${vulnerabilityScanTimeCreatedGreaterThan}
timeEndedLessThan: ${vulnerabilityScanTimeEndedLessThan}
vulnerabilityScanId: ${testVulnerabilityScan.id}
vulnerabilityScanStatuses: ${vulnerabilityScanVulnerabilityScanStatus}
vulnerabilityScanType: ${vulnerabilityScanVulnerabilityScanType}
Using getVulnerabilityScans
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 getVulnerabilityScans(args: GetVulnerabilityScansArgs, opts?: InvokeOptions): Promise<GetVulnerabilityScansResult>
function getVulnerabilityScansOutput(args: GetVulnerabilityScansOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityScansResult>def get_vulnerability_scans(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetVulnerabilityScansFilter]] = None,
time_created_greater_than: Optional[str] = None,
time_ended_less_than: Optional[str] = None,
vulnerability_scan_id: Optional[str] = None,
vulnerability_scan_statuses: Optional[Sequence[str]] = None,
vulnerability_scan_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVulnerabilityScansResult
def get_vulnerability_scans_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVulnerabilityScansFilterArgs]]]] = None,
time_created_greater_than: Optional[pulumi.Input[str]] = None,
time_ended_less_than: Optional[pulumi.Input[str]] = None,
vulnerability_scan_id: Optional[pulumi.Input[str]] = None,
vulnerability_scan_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
vulnerability_scan_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityScansResult]func GetVulnerabilityScans(ctx *Context, args *GetVulnerabilityScansArgs, opts ...InvokeOption) (*GetVulnerabilityScansResult, error)
func GetVulnerabilityScansOutput(ctx *Context, args *GetVulnerabilityScansOutputArgs, opts ...InvokeOption) GetVulnerabilityScansResultOutput> Note: This function is named GetVulnerabilityScans in the Go SDK.
public static class GetVulnerabilityScans
{
public static Task<GetVulnerabilityScansResult> InvokeAsync(GetVulnerabilityScansArgs args, InvokeOptions? opts = null)
public static Output<GetVulnerabilityScansResult> Invoke(GetVulnerabilityScansInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVulnerabilityScansResult> getVulnerabilityScans(GetVulnerabilityScansArgs args, InvokeOptions options)
public static Output<GetVulnerabilityScansResult> getVulnerabilityScans(GetVulnerabilityScansArgs args, InvokeOptions options)
fn::invoke:
function: oci:Dblm/getVulnerabilityScans:getVulnerabilityScans
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Vulnerability Scans Filter> - Time
Created stringGreater Than - The created greater than.
- Time
Ended stringLess Than - The time ended less than.
- Vulnerability
Scan stringId - The ID of the vulnerability scan.
- Vulnerability
Scan List<string>Statuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- Vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Vulnerability Scans Filter - Time
Created stringGreater Than - The created greater than.
- Time
Ended stringLess Than - The time ended less than.
- Vulnerability
Scan stringId - The ID of the vulnerability scan.
- Vulnerability
Scan []stringStatuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- Vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Vulnerability Scans Filter> - time
Created StringGreater Than - The created greater than.
- time
Ended StringLess Than - The time ended less than.
- vulnerability
Scan StringId - The ID of the vulnerability scan.
- vulnerability
Scan List<String>Statuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan StringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Vulnerability Scans Filter[] - time
Created stringGreater Than - The created greater than.
- time
Ended stringLess Than - The time ended less than.
- vulnerability
Scan stringId - The ID of the vulnerability scan.
- vulnerability
Scan string[]Statuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Vulnerability Scans Filter] - time_
created_ strgreater_ than - The created greater than.
- time_
ended_ strless_ than - The time ended less than.
- vulnerability_
scan_ strid - The ID of the vulnerability scan.
- vulnerability_
scan_ Sequence[str]statuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability_
scan_ strtype - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- time
Created StringGreater Than - The created greater than.
- time
Ended StringLess Than - The time ended less than.
- vulnerability
Scan StringId - The ID of the vulnerability scan.
- vulnerability
Scan List<String>Statuses - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan StringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
getVulnerabilityScans Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vulnerability
Scan List<GetCollections Vulnerability Scans Vulnerability Scan Collection> - The list of vulnerability_scan_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. It does not have to be unique, and it is changeable.
- Filters
List<Get
Vulnerability Scans Filter> - Time
Created stringGreater Than - Time
Ended stringLess Than - Vulnerability
Scan stringId - Vulnerability
Scan List<string>Statuses - The status of the vulnerability scan.
- Vulnerability
Scan stringType - Scan type is CVE, PATCH or IMAGE_PATCH
- Id string
- The provider-assigned unique ID for this managed resource.
- Vulnerability
Scan []GetCollections Vulnerability Scans Vulnerability Scan Collection - The list of vulnerability_scan_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. It does not have to be unique, and it is changeable.
- Filters
[]Get
Vulnerability Scans Filter - Time
Created stringGreater Than - Time
Ended stringLess Than - Vulnerability
Scan stringId - Vulnerability
Scan []stringStatuses - The status of the vulnerability scan.
- Vulnerability
Scan stringType - Scan type is CVE, PATCH or IMAGE_PATCH
- id String
- The provider-assigned unique ID for this managed resource.
- vulnerability
Scan List<GetCollections Vulnerability Scans Vulnerability Scan Collection> - The list of vulnerability_scan_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. It does not have to be unique, and it is changeable.
- filters
List<Get
Vulnerability Scans Filter> - time
Created StringGreater Than - time
Ended StringLess Than - vulnerability
Scan StringId - vulnerability
Scan List<String>Statuses - The status of the vulnerability scan.
- vulnerability
Scan StringType - Scan type is CVE, PATCH or IMAGE_PATCH
- id string
- The provider-assigned unique ID for this managed resource.
- vulnerability
Scan GetCollections Vulnerability Scans Vulnerability Scan Collection[] - The list of vulnerability_scan_collection.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A user-friendly name. It does not have to be unique, and it is changeable.
- filters
Get
Vulnerability Scans Filter[] - time
Created stringGreater Than - time
Ended stringLess Than - vulnerability
Scan stringId - vulnerability
Scan string[]Statuses - The status of the vulnerability scan.
- vulnerability
Scan stringType - Scan type is CVE, PATCH or IMAGE_PATCH
- id str
- The provider-assigned unique ID for this managed resource.
- vulnerability_
scan_ Sequence[Getcollections Vulnerability Scans Vulnerability Scan Collection] - The list of vulnerability_scan_collection.
- compartment_
id str - The OCID of the compartment.
- display_
name str - A user-friendly name. It does not have to be unique, and it is changeable.
- filters
Sequence[Get
Vulnerability Scans Filter] - time_
created_ strgreater_ than - time_
ended_ strless_ than - vulnerability_
scan_ strid - vulnerability_
scan_ Sequence[str]statuses - The status of the vulnerability scan.
- vulnerability_
scan_ strtype - Scan type is CVE, PATCH or IMAGE_PATCH
- id String
- The provider-assigned unique ID for this managed resource.
- vulnerability
Scan List<Property Map>Collections - The list of vulnerability_scan_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. It does not have to be unique, and it is changeable.
- filters List<Property Map>
- time
Created StringGreater Than - time
Ended StringLess Than - vulnerability
Scan StringId - vulnerability
Scan List<String>Statuses - The status of the vulnerability scan.
- vulnerability
Scan StringType - Scan type is CVE, PATCH or IMAGE_PATCH
Supporting Types
GetVulnerabilityScansFilter
GetVulnerabilityScansVulnerabilityScanCollection
GetVulnerabilityScansVulnerabilityScanCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A filter to return only resources that match the entire display name given.
- Dictionary<string, string>
- 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
- The OCID of the VulnerabilityScan.
- State string
- The current state of the VulnerabilityScan.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Ended string - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Vulnerability
Scan stringMessage - The message of the vulnerability scan status.
- Vulnerability
Scan stringStatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- Vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Display
Name string - A filter to return only resources that match the entire display name given.
- map[string]string
- 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
- The OCID of the VulnerabilityScan.
- State string
- The current state of the VulnerabilityScan.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Ended string - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Vulnerability
Scan stringMessage - The message of the vulnerability scan status.
- Vulnerability
Scan stringStatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- Vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A filter to return only resources that match the entire display name given.
- Map<String,String>
- 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
- The OCID of the VulnerabilityScan.
- state String
- The current state of the VulnerabilityScan.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ended String - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vulnerability
Scan StringMessage - The message of the vulnerability scan status.
- vulnerability
Scan StringStatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan StringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name string - A filter to return only resources that match the entire display name given.
- {[key: string]: string}
- 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
- The OCID of the VulnerabilityScan.
- state string
- The current state of the VulnerabilityScan.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ended string - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vulnerability
Scan stringMessage - The message of the vulnerability scan status.
- vulnerability
Scan stringStatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan stringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment_
id str - The ID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display_
name str - A filter to return only resources that match the entire display name given.
- Mapping[str, str]
- 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
- The OCID of the VulnerabilityScan.
- state str
- The current state of the VulnerabilityScan.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
ended str - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vulnerability_
scan_ strmessage - The message of the vulnerability scan status.
- vulnerability_
scan_ strstatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability_
scan_ strtype - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - display
Name String - A filter to return only resources that match the entire display name given.
- Map<String>
- 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
- The OCID of the VulnerabilityScan.
- state String
- The current state of the VulnerabilityScan.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ended String - The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - vulnerability
Scan StringMessage - The message of the vulnerability scan status.
- vulnerability
Scan StringStatus - Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerability
Scan StringType - The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
