Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.FleetAppsManagement.getAnnouncements
This data source provides the list of Announcements in Oracle Cloud Infrastructure Fleet Apps Management service.
Return a list of Announcement Summary items in a tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnnouncements = oci.FleetAppsManagement.getAnnouncements({
compartmentId: compartmentId,
displayName: announcementDisplayName,
summaryContains: announcementSummaryContains,
});
import pulumi
import pulumi_oci as oci
test_announcements = oci.FleetAppsManagement.get_announcements(compartment_id=compartment_id,
display_name=announcement_display_name,
summary_contains=announcement_summary_contains)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.GetAnnouncements(ctx, &fleetappsmanagement.GetAnnouncementsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(announcementDisplayName),
SummaryContains: pulumi.StringRef(announcementSummaryContains),
}, 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 testAnnouncements = Oci.FleetAppsManagement.GetAnnouncements.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = announcementDisplayName,
SummaryContains = announcementSummaryContains,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetAnnouncementsArgs;
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 testAnnouncements = FleetAppsManagementFunctions.getAnnouncements(GetAnnouncementsArgs.builder()
.compartmentId(compartmentId)
.displayName(announcementDisplayName)
.summaryContains(announcementSummaryContains)
.build());
}
}
variables:
testAnnouncements:
fn::invoke:
function: oci:FleetAppsManagement:getAnnouncements
arguments:
compartmentId: ${compartmentId}
displayName: ${announcementDisplayName}
summaryContains: ${announcementSummaryContains}
Using getAnnouncements
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 getAnnouncements(args: GetAnnouncementsArgs, opts?: InvokeOptions): Promise<GetAnnouncementsResult>
function getAnnouncementsOutput(args: GetAnnouncementsOutputArgs, opts?: InvokeOptions): Output<GetAnnouncementsResult>def get_announcements(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetAnnouncementsFilter]] = None,
summary_contains: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAnnouncementsResult
def get_announcements_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAnnouncementsFilterArgs]]]] = None,
summary_contains: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAnnouncementsResult]func GetAnnouncements(ctx *Context, args *GetAnnouncementsArgs, opts ...InvokeOption) (*GetAnnouncementsResult, error)
func GetAnnouncementsOutput(ctx *Context, args *GetAnnouncementsOutputArgs, opts ...InvokeOption) GetAnnouncementsResultOutput> Note: This function is named GetAnnouncements in the Go SDK.
public static class GetAnnouncements
{
public static Task<GetAnnouncementsResult> InvokeAsync(GetAnnouncementsArgs args, InvokeOptions? opts = null)
public static Output<GetAnnouncementsResult> Invoke(GetAnnouncementsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAnnouncementsResult> getAnnouncements(GetAnnouncementsArgs args, InvokeOptions options)
public static Output<GetAnnouncementsResult> getAnnouncements(GetAnnouncementsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getAnnouncements:getAnnouncements
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Announcements Filter> - Summary
Contains string - Filter the list of announcements that contains the given summary value.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Announcements Filter - Summary
Contains string - Filter the list of announcements that contains the given summary value.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Announcements Filter> - summary
Contains String - Filter the list of announcements that contains the given summary value.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Announcements Filter[] - summary
Contains string - Filter the list of announcements that contains the given summary value.
- compartment_
id str - The ID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Announcements Filter] - summary_
contains str - Filter the list of announcements that contains the given summary value.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- summary
Contains String - Filter the list of announcements that contains the given summary value.
getAnnouncements Result
The following output properties are available:
- Announcement
Collections List<GetAnnouncements Announcement Collection> - The list of announcement_collection.
- Compartment
Id string - Tenancy OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Filters
List<Get
Announcements Filter> - Summary
Contains string
- Announcement
Collections []GetAnnouncements Announcement Collection - The list of announcement_collection.
- Compartment
Id string - Tenancy OCID
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Filters
[]Get
Announcements Filter - Summary
Contains string
- announcement
Collections List<GetAnnouncements Announcement Collection> - The list of announcement_collection.
- compartment
Id String - Tenancy OCID
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
List<Get
Announcements Filter> - summary
Contains String
- announcement
Collections GetAnnouncements Announcement Collection[] - The list of announcement_collection.
- compartment
Id string - Tenancy OCID
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
Get
Announcements Filter[] - summary
Contains string
- announcement_
collections Sequence[GetAnnouncements Announcement Collection] - The list of announcement_collection.
- compartment_
id str - Tenancy OCID
- id str
- The provider-assigned unique ID for this managed resource.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
Sequence[Get
Announcements Filter] - summary_
contains str
- announcement
Collections List<Property Map> - The list of announcement_collection.
- compartment
Id String - Tenancy OCID
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters List<Property Map>
- summary
Contains String
Supporting Types
GetAnnouncementsAnnouncementCollection
- Items
List<Get
Announcements Announcement Collection Item> - List of AnnouncementSummary items.
- Items
[]Get
Announcements Announcement Collection Item - List of AnnouncementSummary items.
- items
List<Get
Announcements Announcement Collection Item> - List of AnnouncementSummary items.
- items
Get
Announcements Announcement Collection Item[] - List of AnnouncementSummary items.
- items
Sequence[Get
Announcements Announcement Collection Item] - List of AnnouncementSummary items.
- items List<Property Map>
- List of AnnouncementSummary items.
GetAnnouncementsAnnouncementCollectionItem
- Announcement
End string - Announcement end date.
- Announcement
Start string - Announcement start date.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Details string
- Announcement details.
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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 resource.
- Resource
Region string - Associated region
- State string
- The lifecycle state of the announcement.
- Summary string
- Summary of the announcement.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Type of announcement.
- Url string
- URL to the announcement.
- Announcement
End string - Announcement end date.
- Announcement
Start string - Announcement start date.
- Compartment
Id string - The ID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- Details string
- Announcement details.
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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 resource.
- Resource
Region string - Associated region
- State string
- The lifecycle state of the announcement.
- Summary string
- Summary of the announcement.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Type of announcement.
- Url string
- URL to the announcement.
- announcement
End String - Announcement end date.
- announcement
Start String - Announcement start date.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- details String
- Announcement details.
- display
Name String - A filter to return only resources that match the entire display name given.
- 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 resource.
- resource
Region String - Associated region
- state String
- The lifecycle state of the announcement.
- summary String
- Summary of the announcement.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- Type of announcement.
- url String
- URL to the announcement.
- announcement
End string - Announcement end date.
- announcement
Start string - Announcement start date.
- compartment
Id string - The ID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- details string
- Announcement details.
- display
Name string - A filter to return only resources that match the entire display name given.
- {[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 resource.
- resource
Region string - Associated region
- state string
- The lifecycle state of the announcement.
- summary string
- Summary of the announcement.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- type string
- Type of announcement.
- url string
- URL to the announcement.
- announcement_
end str - Announcement end date.
- announcement_
start str - Announcement start date.
- compartment_
id str - The ID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- details str
- Announcement details.
- display_
name str - A filter to return only resources that match the entire display name given.
- 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 resource.
- resource_
region str - Associated region
- state str
- The lifecycle state of the announcement.
- summary str
- Summary of the announcement.
- 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 time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- type str
- Type of announcement.
- url str
- URL to the announcement.
- announcement
End String - Announcement end date.
- announcement
Start String - Announcement start date.
- compartment
Id String - The ID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- details String
- Announcement details.
- display
Name String - A filter to return only resources that match the entire display name given.
- 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 resource.
- resource
Region String - Associated region
- state String
- The lifecycle state of the announcement.
- summary String
- Summary of the announcement.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- Type of announcement.
- url String
- URL to the announcement.
GetAnnouncementsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
