1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dblm
  5. getVulnerabilityScan
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.Dblm.getVulnerabilityScan

Start a Neo task
Explain and create an oci.Dblm.getVulnerabilityScan resource
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides details about a specific Vulnerability Scan resource in Oracle Cloud Infrastructure Dblm service.

    Gets information about a VulnerabilityScan.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVulnerabilityScan = oci.Dblm.getVulnerabilityScan({
        vulnerabilityScanId: testVulnerabilityScanOciDblmVulnerabilityScan.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vulnerability_scan = oci.Dblm.get_vulnerability_scan(vulnerability_scan_id=test_vulnerability_scan_oci_dblm_vulnerability_scan["id"])
    
    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.GetVulnerabilityScan(ctx, &dblm.GetVulnerabilityScanArgs{
    			VulnerabilityScanId: testVulnerabilityScanOciDblmVulnerabilityScan.Id,
    		}, 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 testVulnerabilityScan = Oci.Dblm.GetVulnerabilityScan.Invoke(new()
        {
            VulnerabilityScanId = testVulnerabilityScanOciDblmVulnerabilityScan.Id,
        });
    
    });
    
    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.GetVulnerabilityScanArgs;
    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 testVulnerabilityScan = DblmFunctions.getVulnerabilityScan(GetVulnerabilityScanArgs.builder()
                .vulnerabilityScanId(testVulnerabilityScanOciDblmVulnerabilityScan.id())
                .build());
    
        }
    }
    
    variables:
      testVulnerabilityScan:
        fn::invoke:
          function: oci:Dblm:getVulnerabilityScan
          arguments:
            vulnerabilityScanId: ${testVulnerabilityScanOciDblmVulnerabilityScan.id}
    

    Using getVulnerabilityScan

    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 getVulnerabilityScan(args: GetVulnerabilityScanArgs, opts?: InvokeOptions): Promise<GetVulnerabilityScanResult>
    function getVulnerabilityScanOutput(args: GetVulnerabilityScanOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityScanResult>
    def get_vulnerability_scan(vulnerability_scan_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVulnerabilityScanResult
    def get_vulnerability_scan_output(vulnerability_scan_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityScanResult]
    func LookupVulnerabilityScan(ctx *Context, args *LookupVulnerabilityScanArgs, opts ...InvokeOption) (*LookupVulnerabilityScanResult, error)
    func LookupVulnerabilityScanOutput(ctx *Context, args *LookupVulnerabilityScanOutputArgs, opts ...InvokeOption) LookupVulnerabilityScanResultOutput

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

    public static class GetVulnerabilityScan 
    {
        public static Task<GetVulnerabilityScanResult> InvokeAsync(GetVulnerabilityScanArgs args, InvokeOptions? opts = null)
        public static Output<GetVulnerabilityScanResult> Invoke(GetVulnerabilityScanInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVulnerabilityScanResult> getVulnerabilityScan(GetVulnerabilityScanArgs args, InvokeOptions options)
    public static Output<GetVulnerabilityScanResult> getVulnerabilityScan(GetVulnerabilityScanArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Dblm/getVulnerabilityScan:getVulnerabilityScan
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VulnerabilityScanId string
    The OCID of the VulnerabilityScan.
    VulnerabilityScanId string
    The OCID of the VulnerabilityScan.
    vulnerabilityScanId String
    The OCID of the VulnerabilityScan.
    vulnerabilityScanId string
    The OCID of the VulnerabilityScan.
    vulnerability_scan_id str
    The OCID of the VulnerabilityScan.
    vulnerabilityScanId String
    The OCID of the VulnerabilityScan.

    getVulnerabilityScan Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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 user-friendly name. It does not have to be unique, and it is changeable.
    FreeformTags 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.
    SystemTags 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
    VulnerabilityScanId string
    VulnerabilityScanMessage string
    The message of the vulnerability scan status.
    VulnerabilityScanStatus string
    The status of the vulnerability scan.
    VulnerabilityScanType string
    Scan type is CVE, PATCH or IMAGE_PATCH
    CompartmentId string
    The OCID of the compartment.
    DefinedTags 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 user-friendly name. It does not have to be unique, and it is changeable.
    FreeformTags 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.
    SystemTags 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
    VulnerabilityScanId string
    VulnerabilityScanMessage string
    The message of the vulnerability scan status.
    VulnerabilityScanStatus string
    The status of the vulnerability scan.
    VulnerabilityScanType string
    Scan type is CVE, PATCH or IMAGE_PATCH
    compartmentId String
    The OCID of the compartment.
    definedTags 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 user-friendly name. It does not have to be unique, and it is changeable.
    freeformTags 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.
    systemTags 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
    vulnerabilityScanId String
    vulnerabilityScanMessage String
    The message of the vulnerability scan status.
    vulnerabilityScanStatus String
    The status of the vulnerability scan.
    vulnerabilityScanType String
    Scan type is CVE, PATCH or IMAGE_PATCH
    compartmentId string
    The OCID of the compartment.
    definedTags {[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 user-friendly name. It does not have to be unique, and it is changeable.
    freeformTags {[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.
    systemTags {[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
    vulnerabilityScanId string
    vulnerabilityScanMessage string
    The message of the vulnerability scan status.
    vulnerabilityScanStatus string
    The status of the vulnerability scan.
    vulnerabilityScanType string
    Scan type is CVE, PATCH or IMAGE_PATCH
    compartment_id str
    The OCID of the compartment.
    defined_tags 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 user-friendly name. It does not have to be unique, and it is changeable.
    freeform_tags 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.
    system_tags 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_id str
    vulnerability_scan_message str
    The message of the vulnerability scan status.
    vulnerability_scan_status str
    The status of the vulnerability scan.
    vulnerability_scan_type str
    Scan type is CVE, PATCH or IMAGE_PATCH
    compartmentId String
    The OCID of the compartment.
    definedTags 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 user-friendly name. It does not have to be unique, and it is changeable.
    freeformTags 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.
    systemTags 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
    vulnerabilityScanId String
    vulnerabilityScanMessage String
    The message of the vulnerability scan status.
    vulnerabilityScanStatus String
    The status of the vulnerability scan.
    vulnerabilityScanType String
    Scan type 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate