Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Dblm.getVulnerabilityScans
Explore with Pulumi AI
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/v2/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:
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetVulnerability Scans Filter> 
- TimeCreated stringGreater Than 
- The created greater than.
- TimeEnded stringLess Than 
- The time ended less than.
- VulnerabilityScan stringId 
- The ID of the vulnerability scan.
- VulnerabilityScan List<string>Statuses 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- VulnerabilityScan stringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- CompartmentId string
- The ID of the compartment in which to list resources.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetVulnerability Scans Filter 
- TimeCreated stringGreater Than 
- The created greater than.
- TimeEnded stringLess Than 
- The time ended less than.
- VulnerabilityScan stringId 
- The ID of the vulnerability scan.
- VulnerabilityScan []stringStatuses 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- VulnerabilityScan stringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetVulnerability Scans Filter> 
- timeCreated StringGreater Than 
- The created greater than.
- timeEnded StringLess Than 
- The time ended less than.
- vulnerabilityScan StringId 
- The ID of the vulnerability scan.
- vulnerabilityScan List<String>Statuses 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan StringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartmentId string
- The ID of the compartment in which to list resources.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetVulnerability Scans Filter[] 
- timeCreated stringGreater Than 
- The created greater than.
- timeEnded stringLess Than 
- The time ended less than.
- vulnerabilityScan stringId 
- The ID of the vulnerability scan.
- vulnerabilityScan string[]Statuses 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan 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[GetVulnerability 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'.
- compartmentId String
- The ID of the compartment in which to list resources.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- timeCreated StringGreater Than 
- The created greater than.
- timeEnded StringLess Than 
- The time ended less than.
- vulnerabilityScan StringId 
- The ID of the vulnerability scan.
- vulnerabilityScan List<String>Statuses 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan 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.
- VulnerabilityScan List<GetCollections Vulnerability Scans Vulnerability Scan Collection> 
- The list of vulnerability_scan_collection.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable.
- Filters
List<GetVulnerability Scans Filter> 
- TimeCreated stringGreater Than 
- TimeEnded stringLess Than 
- VulnerabilityScan stringId 
- VulnerabilityScan List<string>Statuses 
- The status of the vulnerability scan.
- VulnerabilityScan stringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- Id string
- The provider-assigned unique ID for this managed resource.
- VulnerabilityScan []GetCollections Vulnerability Scans Vulnerability Scan Collection 
- The list of vulnerability_scan_collection.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable.
- Filters
[]GetVulnerability Scans Filter 
- TimeCreated stringGreater Than 
- TimeEnded stringLess Than 
- VulnerabilityScan stringId 
- VulnerabilityScan []stringStatuses 
- The status of the vulnerability scan.
- VulnerabilityScan stringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- id String
- The provider-assigned unique ID for this managed resource.
- vulnerabilityScan List<GetCollections Vulnerability Scans Vulnerability Scan Collection> 
- The list of vulnerability_scan_collection.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable.
- filters
List<GetVulnerability Scans Filter> 
- timeCreated StringGreater Than 
- timeEnded StringLess Than 
- vulnerabilityScan StringId 
- vulnerabilityScan List<String>Statuses 
- The status of the vulnerability scan.
- vulnerabilityScan StringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- id string
- The provider-assigned unique ID for this managed resource.
- vulnerabilityScan GetCollections Vulnerability Scans Vulnerability Scan Collection[] 
- The list of vulnerability_scan_collection.
- compartmentId string
- The OCID of the compartment.
- displayName string
- A user-friendly name. It does not have to be unique, and it is changeable.
- filters
GetVulnerability Scans Filter[] 
- timeCreated stringGreater Than 
- timeEnded stringLess Than 
- vulnerabilityScan stringId 
- vulnerabilityScan string[]Statuses 
- The status of the vulnerability scan.
- vulnerabilityScan 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[GetVulnerability 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.
- vulnerabilityScan List<Property Map>Collections 
- The list of vulnerability_scan_collection.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable.
- filters List<Property Map>
- timeCreated StringGreater Than 
- timeEnded StringLess Than 
- vulnerabilityScan StringId 
- vulnerabilityScan List<String>Statuses 
- The status of the vulnerability scan.
- vulnerabilityScan StringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
Supporting Types
GetVulnerabilityScansFilter   
GetVulnerabilityScansVulnerabilityScanCollection     
GetVulnerabilityScansVulnerabilityScanCollectionItem      
- CompartmentId 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"}
- DisplayName 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"}
- TimeCreated string
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- TimeEnded string
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- VulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- VulnerabilityScan stringStatus 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- VulnerabilityScan stringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- CompartmentId 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"}
- DisplayName 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"}
- TimeCreated string
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- TimeEnded string
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- VulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- VulnerabilityScan stringStatus 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- VulnerabilityScan stringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartmentId 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"}
- displayName 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"}
- timeCreated String
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- timeEnded String
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- vulnerabilityScan StringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan StringStatus 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan StringType 
- The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'.
- compartmentId 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"}
- displayName 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"}
- timeCreated string
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- timeEnded string
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- vulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan stringStatus 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan 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'.
- compartmentId 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"}
- displayName 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"}
- timeCreated String
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- timeEnded String
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
- vulnerabilityScan StringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan StringStatus 
- Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.
- vulnerabilityScan 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.