1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dblm
  5. getVulnerabilityNotifications
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Dblm.getVulnerabilityNotifications

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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

List of notifications

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testVulnerabilityNotifications = oci.Dblm.getVulnerabilityNotifications({
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_vulnerability_notifications = oci.Dblm.get_vulnerability_notifications(compartment_id=compartment_id)
Copy
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.GetVulnerabilityNotifications(ctx, &dblm.GetVulnerabilityNotificationsArgs{
			CompartmentId: compartmentId,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testVulnerabilityNotifications = Oci.Dblm.GetVulnerabilityNotifications.Invoke(new()
    {
        CompartmentId = compartmentId,
    });

});
Copy
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.GetVulnerabilityNotificationsArgs;
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 testVulnerabilityNotifications = DblmFunctions.getVulnerabilityNotifications(GetVulnerabilityNotificationsArgs.builder()
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testVulnerabilityNotifications:
    fn::invoke:
      function: oci:Dblm:getVulnerabilityNotifications
      arguments:
        compartmentId: ${compartmentId}
Copy

Using getVulnerabilityNotifications

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 getVulnerabilityNotifications(args: GetVulnerabilityNotificationsArgs, opts?: InvokeOptions): Promise<GetVulnerabilityNotificationsResult>
function getVulnerabilityNotificationsOutput(args: GetVulnerabilityNotificationsOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityNotificationsResult>
Copy
def get_vulnerability_notifications(compartment_id: Optional[str] = None,
                                    filters: Optional[Sequence[_dblm.GetVulnerabilityNotificationsFilter]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetVulnerabilityNotificationsResult
def get_vulnerability_notifications_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dblm.GetVulnerabilityNotificationsFilterArgs]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityNotificationsResult]
Copy
func GetVulnerabilityNotifications(ctx *Context, args *GetVulnerabilityNotificationsArgs, opts ...InvokeOption) (*GetVulnerabilityNotificationsResult, error)
func GetVulnerabilityNotificationsOutput(ctx *Context, args *GetVulnerabilityNotificationsOutputArgs, opts ...InvokeOption) GetVulnerabilityNotificationsResultOutput
Copy

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

public static class GetVulnerabilityNotifications 
{
    public static Task<GetVulnerabilityNotificationsResult> InvokeAsync(GetVulnerabilityNotificationsArgs args, InvokeOptions? opts = null)
    public static Output<GetVulnerabilityNotificationsResult> Invoke(GetVulnerabilityNotificationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVulnerabilityNotificationsResult> getVulnerabilityNotifications(GetVulnerabilityNotificationsArgs args, InvokeOptions options)
public static Output<GetVulnerabilityNotificationsResult> getVulnerabilityNotifications(GetVulnerabilityNotificationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Dblm/getVulnerabilityNotifications:getVulnerabilityNotifications
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The required ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. List<GetVulnerabilityNotificationsFilter>
CompartmentId This property is required. string
The required ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. []GetVulnerabilityNotificationsFilter
compartmentId This property is required. String
The required ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<GetVulnerabilityNotificationsFilter>
compartmentId This property is required. string
The required ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. GetVulnerabilityNotificationsFilter[]
compartment_id This property is required. str
The required ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[dblm.GetVulnerabilityNotificationsFilter]
compartmentId This property is required. String
The required ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<Property Map>

getVulnerabilityNotifications Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
NotificationCollections List<GetVulnerabilityNotificationsNotificationCollection>
The list of notification_collection.
Filters List<GetVulnerabilityNotificationsFilter>
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
NotificationCollections []GetVulnerabilityNotificationsNotificationCollection
The list of notification_collection.
Filters []GetVulnerabilityNotificationsFilter
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
notificationCollections List<GetVulnerabilityNotificationsNotificationCollection>
The list of notification_collection.
filters List<GetVulnerabilityNotificationsFilter>
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
notificationCollections GetVulnerabilityNotificationsNotificationCollection[]
The list of notification_collection.
filters GetVulnerabilityNotificationsFilter[]
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
notificationCollections List<Property Map>
The list of notification_collection.
filters List<Property Map>

Supporting Types

GetVulnerabilityNotificationsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetVulnerabilityNotificationsNotificationCollection

Items This property is required. List<GetVulnerabilityNotificationsNotificationCollectionItem>
Items for notifications.
Items This property is required. []GetVulnerabilityNotificationsNotificationCollectionItem
Items for notifications.
items This property is required. List<GetVulnerabilityNotificationsNotificationCollectionItem>
Items for notifications.
items This property is required. GetVulnerabilityNotificationsNotificationCollectionItem[]
Items for notifications.
items This property is required. Sequence[dblm.GetVulnerabilityNotificationsNotificationCollectionItem]
Items for notifications.
items This property is required. List<Property Map>
Items for notifications.

GetVulnerabilityNotificationsNotificationCollectionItem

Id This property is required. string
Notification identifier.
NotificationText This property is required. string
Notification text
NotificationType This property is required. string
Notification type
TimePublished This property is required. string
Published date
Id This property is required. string
Notification identifier.
NotificationText This property is required. string
Notification text
NotificationType This property is required. string
Notification type
TimePublished This property is required. string
Published date
id This property is required. String
Notification identifier.
notificationText This property is required. String
Notification text
notificationType This property is required. String
Notification type
timePublished This property is required. String
Published date
id This property is required. string
Notification identifier.
notificationText This property is required. string
Notification text
notificationType This property is required. string
Notification type
timePublished This property is required. string
Published date
id This property is required. str
Notification identifier.
notification_text This property is required. str
Notification text
notification_type This property is required. str
Notification type
time_published This property is required. str
Published date
id This property is required. String
Notification identifier.
notificationText This property is required. String
Notification text
notificationType This property is required. String
Notification type
timePublished This property is required. String
Published date

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi