1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dblm
  5. getVulnerabilityVulnerabilities
Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi

oci.Dblm.getVulnerabilityVulnerabilities

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi

    This data source provides the list of Vulnerability Vulnerabilities in Oracle Cloud Infrastructure Dblm service.

    Gets the vulnerabilities summary list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVulnerabilityVulnerabilities = oci.Dblm.getVulnerabilityVulnerabilities({
        compartmentId: compartmentId,
        databaseRelease: vulnerabilityVulnerabilityDatabaseRelease,
        displayName: vulnerabilityVulnerabilityDisplayName,
        resourceId: testResource.id,
        searchBy: vulnerabilityVulnerabilitySearchBy,
        severityTypes: vulnerabilityVulnerabilitySeverityType,
        state: vulnerabilityVulnerabilityState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vulnerability_vulnerabilities = oci.Dblm.get_vulnerability_vulnerabilities(compartment_id=compartment_id,
        database_release=vulnerability_vulnerability_database_release,
        display_name=vulnerability_vulnerability_display_name,
        resource_id=test_resource["id"],
        search_by=vulnerability_vulnerability_search_by,
        severity_types=vulnerability_vulnerability_severity_type,
        state=vulnerability_vulnerability_state)
    
    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.GetVulnerabilityVulnerabilities(ctx, &dblm.GetVulnerabilityVulnerabilitiesArgs{
    			CompartmentId:   compartmentId,
    			DatabaseRelease: pulumi.StringRef(vulnerabilityVulnerabilityDatabaseRelease),
    			DisplayName:     pulumi.StringRef(vulnerabilityVulnerabilityDisplayName),
    			ResourceId:      pulumi.StringRef(testResource.Id),
    			SearchBy:        pulumi.StringRef(vulnerabilityVulnerabilitySearchBy),
    			SeverityTypes:   vulnerabilityVulnerabilitySeverityType,
    			State:           pulumi.StringRef(vulnerabilityVulnerabilityState),
    		}, 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 testVulnerabilityVulnerabilities = Oci.Dblm.GetVulnerabilityVulnerabilities.Invoke(new()
        {
            CompartmentId = compartmentId,
            DatabaseRelease = vulnerabilityVulnerabilityDatabaseRelease,
            DisplayName = vulnerabilityVulnerabilityDisplayName,
            ResourceId = testResource.Id,
            SearchBy = vulnerabilityVulnerabilitySearchBy,
            SeverityTypes = vulnerabilityVulnerabilitySeverityType,
            State = vulnerabilityVulnerabilityState,
        });
    
    });
    
    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.GetVulnerabilityVulnerabilitiesArgs;
    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 testVulnerabilityVulnerabilities = DblmFunctions.getVulnerabilityVulnerabilities(GetVulnerabilityVulnerabilitiesArgs.builder()
                .compartmentId(compartmentId)
                .databaseRelease(vulnerabilityVulnerabilityDatabaseRelease)
                .displayName(vulnerabilityVulnerabilityDisplayName)
                .resourceId(testResource.id())
                .searchBy(vulnerabilityVulnerabilitySearchBy)
                .severityTypes(vulnerabilityVulnerabilitySeverityType)
                .state(vulnerabilityVulnerabilityState)
                .build());
    
        }
    }
    
    variables:
      testVulnerabilityVulnerabilities:
        fn::invoke:
          function: oci:Dblm:getVulnerabilityVulnerabilities
          arguments:
            compartmentId: ${compartmentId}
            databaseRelease: ${vulnerabilityVulnerabilityDatabaseRelease}
            displayName: ${vulnerabilityVulnerabilityDisplayName}
            resourceId: ${testResource.id}
            searchBy: ${vulnerabilityVulnerabilitySearchBy}
            severityTypes: ${vulnerabilityVulnerabilitySeverityType}
            state: ${vulnerabilityVulnerabilityState}
    

    Using getVulnerabilityVulnerabilities

    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 getVulnerabilityVulnerabilities(args: GetVulnerabilityVulnerabilitiesArgs, opts?: InvokeOptions): Promise<GetVulnerabilityVulnerabilitiesResult>
    function getVulnerabilityVulnerabilitiesOutput(args: GetVulnerabilityVulnerabilitiesOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityVulnerabilitiesResult>
    def get_vulnerability_vulnerabilities(compartment_id: Optional[str] = None,
                                          database_release: Optional[str] = None,
                                          display_name: Optional[str] = None,
                                          filters: Optional[Sequence[_dblm.GetVulnerabilityVulnerabilitiesFilter]] = None,
                                          resource_id: Optional[str] = None,
                                          search_by: Optional[str] = None,
                                          severity_types: Optional[Sequence[str]] = None,
                                          state: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetVulnerabilityVulnerabilitiesResult
    def get_vulnerability_vulnerabilities_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                          database_release: Optional[pulumi.Input[str]] = None,
                                          display_name: Optional[pulumi.Input[str]] = None,
                                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dblm.GetVulnerabilityVulnerabilitiesFilterArgs]]]] = None,
                                          resource_id: Optional[pulumi.Input[str]] = None,
                                          search_by: Optional[pulumi.Input[str]] = None,
                                          severity_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                          state: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityVulnerabilitiesResult]
    func GetVulnerabilityVulnerabilities(ctx *Context, args *GetVulnerabilityVulnerabilitiesArgs, opts ...InvokeOption) (*GetVulnerabilityVulnerabilitiesResult, error)
    func GetVulnerabilityVulnerabilitiesOutput(ctx *Context, args *GetVulnerabilityVulnerabilitiesOutputArgs, opts ...InvokeOption) GetVulnerabilityVulnerabilitiesResultOutput

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

    public static class GetVulnerabilityVulnerabilities 
    {
        public static Task<GetVulnerabilityVulnerabilitiesResult> InvokeAsync(GetVulnerabilityVulnerabilitiesArgs args, InvokeOptions? opts = null)
        public static Output<GetVulnerabilityVulnerabilitiesResult> Invoke(GetVulnerabilityVulnerabilitiesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVulnerabilityVulnerabilitiesResult> getVulnerabilityVulnerabilities(GetVulnerabilityVulnerabilitiesArgs args, InvokeOptions options)
    public static Output<GetVulnerabilityVulnerabilitiesResult> getVulnerabilityVulnerabilities(GetVulnerabilityVulnerabilitiesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Dblm/getVulnerabilityVulnerabilities:getVulnerabilityVulnerabilities
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DatabaseRelease string
    A filter to return only database that match the given release version.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetVulnerabilityVulnerabilitiesFilter>
    ResourceId string
    A filter to return only resources that match the given resource id.
    SearchBy string
    The search input for filter cve id and cve description.
    SeverityTypes List<string>
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DatabaseRelease string
    A filter to return only database that match the given release version.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetVulnerabilityVulnerabilitiesFilter
    ResourceId string
    A filter to return only resources that match the given resource id.
    SearchBy string
    The search input for filter cve id and cve description.
    SeverityTypes []string
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId String
    The ID of the compartment in which to list resources.
    databaseRelease String
    A filter to return only database that match the given release version.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetVulnerabilityVulnerabilitiesFilter>
    resourceId String
    A filter to return only resources that match the given resource id.
    searchBy String
    The search input for filter cve id and cve description.
    severityTypes List<String>
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId string
    The ID of the compartment in which to list resources.
    databaseRelease string
    A filter to return only database that match the given release version.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetVulnerabilityVulnerabilitiesFilter[]
    resourceId string
    A filter to return only resources that match the given resource id.
    searchBy string
    The search input for filter cve id and cve description.
    severityTypes string[]
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartment_id str
    The ID of the compartment in which to list resources.
    database_release str
    A filter to return only database that match the given release version.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[dblm.GetVulnerabilityVulnerabilitiesFilter]
    resource_id str
    A filter to return only resources that match the given resource id.
    search_by str
    The search input for filter cve id and cve description.
    severity_types Sequence[str]
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId String
    The ID of the compartment in which to list resources.
    databaseRelease String
    A filter to return only database that match the given release version.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    resourceId String
    A filter to return only resources that match the given resource id.
    searchBy String
    The search input for filter cve id and cve description.
    severityTypes List<String>
    Filter by one or more severity types. Possible values are critical, high, medium, low, info.
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.

    getVulnerabilityVulnerabilities Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    VulnerabilityCollections List<GetVulnerabilityVulnerabilitiesVulnerabilityCollection>
    The list of vulnerability_collection.
    DatabaseRelease string
    DisplayName string
    Filters List<GetVulnerabilityVulnerabilitiesFilter>
    ResourceId string
    SearchBy string
    SeverityTypes List<string>
    State string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    VulnerabilityCollections []GetVulnerabilityVulnerabilitiesVulnerabilityCollection
    The list of vulnerability_collection.
    DatabaseRelease string
    DisplayName string
    Filters []GetVulnerabilityVulnerabilitiesFilter
    ResourceId string
    SearchBy string
    SeverityTypes []string
    State string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    vulnerabilityCollections List<GetVulnerabilityVulnerabilitiesVulnerabilityCollection>
    The list of vulnerability_collection.
    databaseRelease String
    displayName String
    filters List<GetVulnerabilityVulnerabilitiesFilter>
    resourceId String
    searchBy String
    severityTypes List<String>
    state String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    vulnerabilityCollections GetVulnerabilityVulnerabilitiesVulnerabilityCollection[]
    The list of vulnerability_collection.
    databaseRelease string
    displayName string
    filters GetVulnerabilityVulnerabilitiesFilter[]
    resourceId string
    searchBy string
    severityTypes string[]
    state string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    vulnerabilityCollections List<Property Map>
    The list of vulnerability_collection.
    databaseRelease String
    displayName String
    filters List<Property Map>
    resourceId String
    searchBy String
    severityTypes List<String>
    state String

    Supporting Types

    GetVulnerabilityVulnerabilitiesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetVulnerabilityVulnerabilitiesVulnerabilityCollection

    items List<Property Map>
    Collection of vulnerability summary items.

    GetVulnerabilityVulnerabilitiesVulnerabilityCollectionItem

    CveId string
    CVE vulnerability ID
    Description string
    Vulnerability description
    RiskLevel string
    Risk level enumeration
    Score string
    Vulnerability score
    VulnerableResourcesCount int
    Number of vulnerable resources
    CveId string
    CVE vulnerability ID
    Description string
    Vulnerability description
    RiskLevel string
    Risk level enumeration
    Score string
    Vulnerability score
    VulnerableResourcesCount int
    Number of vulnerable resources
    cveId String
    CVE vulnerability ID
    description String
    Vulnerability description
    riskLevel String
    Risk level enumeration
    score String
    Vulnerability score
    vulnerableResourcesCount Integer
    Number of vulnerable resources
    cveId string
    CVE vulnerability ID
    description string
    Vulnerability description
    riskLevel string
    Risk level enumeration
    score string
    Vulnerability score
    vulnerableResourcesCount number
    Number of vulnerable resources
    cve_id str
    CVE vulnerability ID
    description str
    Vulnerability description
    risk_level str
    Risk level enumeration
    score str
    Vulnerability score
    vulnerable_resources_count int
    Number of vulnerable resources
    cveId String
    CVE vulnerability ID
    description String
    Vulnerability description
    riskLevel String
    Risk level enumeration
    score String
    Vulnerability score
    vulnerableResourcesCount Number
    Number of vulnerable resources

    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 v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi