Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Dblm.getVulnerabilityScan
Explore with Pulumi AI
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/v2/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 dictionaryThe following arguments are supported:
- VulnerabilityScan stringId 
- The OCID of the VulnerabilityScan.
- VulnerabilityScan stringId 
- The OCID of the VulnerabilityScan.
- vulnerabilityScan StringId 
- The OCID of the VulnerabilityScan.
- vulnerabilityScan stringId 
- The OCID of the VulnerabilityScan.
- vulnerability_scan_ strid 
- The OCID of the VulnerabilityScan.
- vulnerabilityScan StringId 
- The OCID of the VulnerabilityScan.
getVulnerabilityScan Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- 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.
- 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 stringId 
- VulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- VulnerabilityScan stringStatus 
- The status of the vulnerability scan.
- VulnerabilityScan stringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- CompartmentId string
- The OCID of the compartment.
- 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.
- 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 stringId 
- VulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- VulnerabilityScan stringStatus 
- The status of the vulnerability scan.
- VulnerabilityScan stringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- compartmentId String
- The OCID of the compartment.
- 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.
- 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 StringId 
- vulnerabilityScan StringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan StringStatus 
- The status of the vulnerability scan.
- vulnerabilityScan StringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- compartmentId string
- The OCID of the compartment.
- {[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.
- {[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 stringId 
- vulnerabilityScan stringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan stringStatus 
- The status of the vulnerability scan.
- vulnerabilityScan stringType 
- Scan type is CVE, PATCH or IMAGE_PATCH
- compartment_id str
- The OCID of the compartment.
- 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.
- 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_ strid 
- vulnerability_scan_ strmessage 
- The message of the vulnerability scan status.
- vulnerability_scan_ strstatus 
- The status of the vulnerability scan.
- vulnerability_scan_ strtype 
- Scan type is CVE, PATCH or IMAGE_PATCH
- compartmentId String
- The OCID of the compartment.
- 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.
- 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 StringId 
- vulnerabilityScan StringMessage 
- The message of the vulnerability scan status.
- vulnerabilityScan StringStatus 
- The status of the vulnerability scan.
- vulnerabilityScan StringType 
- 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 ociTerraform Provider.