Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Dblm.getVulnerabilityVulnerabilities
Explore with Pulumi AI
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:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Database
Release string - A filter to return only database that match the given release version.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Vulnerability Vulnerabilities Filter> - Resource
Id string - A filter to return only resources that match the given resource id.
- Search
By string - The search input for filter cve id and cve description.
- Severity
Types 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.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Database
Release string - A filter to return only database that match the given release version.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Vulnerability Vulnerabilities Filter - Resource
Id string - A filter to return only resources that match the given resource id.
- Search
By string - The search input for filter cve id and cve description.
- Severity
Types []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 String - The ID of the compartment in which to list resources.
- database
Release String - A filter to return only database that match the given release version.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Vulnerability Vulnerabilities Filter> - resource
Id String - A filter to return only resources that match the given resource id.
- search
By String - The search input for filter cve id and cve description.
- severity
Types 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.
- compartment
Id string - The ID of the compartment in which to list resources.
- database
Release string - A filter to return only database that match the given release version.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Vulnerability Vulnerabilities Filter[] - resource
Id string - A filter to return only resources that match the given resource id.
- search
By string - The search input for filter cve id and cve description.
- severity
Types 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.
Get Vulnerability Vulnerabilities Filter] - 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.
- compartment
Id String - The ID of the compartment in which to list resources.
- database
Release String - A filter to return only database that match the given release version.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- resource
Id String - A filter to return only resources that match the given resource id.
- search
By String - The search input for filter cve id and cve description.
- severity
Types 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:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Vulnerability
Collections List<GetVulnerability Vulnerabilities Vulnerability Collection> - The list of vulnerability_collection.
- Database
Release string - Display
Name string - Filters
List<Get
Vulnerability Vulnerabilities Filter> - Resource
Id string - Search
By string - Severity
Types List<string> - State string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Vulnerability
Collections []GetVulnerability Vulnerabilities Vulnerability Collection - The list of vulnerability_collection.
- Database
Release string - Display
Name string - Filters
[]Get
Vulnerability Vulnerabilities Filter - Resource
Id string - Search
By string - Severity
Types []string - State string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- vulnerability
Collections List<GetVulnerability Vulnerabilities Vulnerability Collection> - The list of vulnerability_collection.
- database
Release String - display
Name String - filters
List<Get
Vulnerability Vulnerabilities Filter> - resource
Id String - search
By String - severity
Types List<String> - state String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- vulnerability
Collections GetVulnerability Vulnerabilities Vulnerability Collection[] - The list of vulnerability_collection.
- database
Release string - display
Name string - filters
Get
Vulnerability Vulnerabilities Filter[] - resource
Id string - search
By string - severity
Types string[] - state string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- vulnerability_
collections Sequence[dblm.Get Vulnerability Vulnerabilities Vulnerability Collection] - The list of vulnerability_collection.
- database_
release str - display_
name str - filters
Sequence[dblm.
Get Vulnerability Vulnerabilities Filter] - resource_
id str - search_
by str - severity_
types Sequence[str] - state str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- vulnerability
Collections List<Property Map> - The list of vulnerability_collection.
- database
Release String - display
Name String - filters List<Property Map>
- resource
Id String - search
By String - severity
Types List<String> - state String
Supporting Types
GetVulnerabilityVulnerabilitiesFilter
GetVulnerabilityVulnerabilitiesVulnerabilityCollection
- Items
List<Get
Vulnerability Vulnerabilities Vulnerability Collection Item> - Collection of vulnerability summary items.
- Items
[]Get
Vulnerability Vulnerabilities Vulnerability Collection Item - Collection of vulnerability summary items.
- items
List<Get
Vulnerability Vulnerabilities Vulnerability Collection Item> - Collection of vulnerability summary items.
- items
Get
Vulnerability Vulnerabilities Vulnerability Collection Item[] - Collection of vulnerability summary items.
- items
Sequence[dblm.
Get Vulnerability Vulnerabilities Vulnerability Collection Item] - Collection of vulnerability summary items.
- items List<Property Map>
- Collection of vulnerability summary items.
GetVulnerabilityVulnerabilitiesVulnerabilityCollectionItem
- Cve
Id string - CVE vulnerability ID
- Description string
- Vulnerability description
- Risk
Level string - Risk level enumeration
- Score string
- Vulnerability score
- Vulnerable
Resources intCount - Number of vulnerable resources
- Cve
Id string - CVE vulnerability ID
- Description string
- Vulnerability description
- Risk
Level string - Risk level enumeration
- Score string
- Vulnerability score
- Vulnerable
Resources intCount - Number of vulnerable resources
- cve
Id String - CVE vulnerability ID
- description String
- Vulnerability description
- risk
Level String - Risk level enumeration
- score String
- Vulnerability score
- vulnerable
Resources IntegerCount - Number of vulnerable resources
- cve
Id string - CVE vulnerability ID
- description string
- Vulnerability description
- risk
Level string - Risk level enumeration
- score string
- Vulnerability score
- vulnerable
Resources numberCount - 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_ intcount - Number of vulnerable resources
- cve
Id String - CVE vulnerability ID
- description String
- Vulnerability description
- risk
Level String - Risk level enumeration
- score String
- Vulnerability score
- vulnerable
Resources NumberCount - 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.