Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.FleetAppsManagement.getAnnouncements
Explore with Pulumi AI
This data source provides the list of Announcements in Oracle Cloud Infrastructure Fleet Apps Management service.
Return a list of AnnouncementSummary items.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnnouncements = oci.FleetAppsManagement.getAnnouncements({
    displayName: announcementDisplayName,
    summaryContains: announcementSummaryContains,
});
import pulumi
import pulumi_oci as oci
test_announcements = oci.FleetAppsManagement.get_announcements(display_name=announcement_display_name,
    summary_contains=announcement_summary_contains)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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{
			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()
    {
        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()
            .displayName(announcementDisplayName)
            .summaryContains(announcementSummaryContains)
            .build());
    }
}
variables:
  testAnnouncements:
    fn::invoke:
      function: oci:FleetAppsManagement:getAnnouncements
      arguments:
        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(display_name: Optional[str] = None,
                      filters: Optional[Sequence[_fleetappsmanagement.GetAnnouncementsFilter]] = None,
                      summary_contains: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetAnnouncementsResult
def get_announcements_output(display_name: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.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:
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
List<GetAnnouncements Filter> 
- SummaryContains string
- Filter the list of announcements that contains the given summary value.
- DisplayName string
- A filter to return only resources that match the entire display name given.
- Filters
[]GetAnnouncements Filter 
- SummaryContains string
- Filter the list of announcements that contains the given summary value.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters
List<GetAnnouncements Filter> 
- summaryContains String
- Filter the list of announcements that contains the given summary value.
- displayName string
- A filter to return only resources that match the entire display name given.
- filters
GetAnnouncements Filter[] 
- summaryContains string
- Filter the list of announcements that contains the given summary value.
- display_name str
- A filter to return only resources that match the entire display name given.
- filters
Sequence[fleetappsmanagement.Get Announcements Filter] 
- summary_contains str
- Filter the list of announcements that contains the given summary value.
- displayName String
- A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- summaryContains String
- Filter the list of announcements that contains the given summary value.
getAnnouncements Result
The following output properties are available:
- AnnouncementCollections List<GetAnnouncements Announcement Collection> 
- The list of announcement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName 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<GetAnnouncements Filter> 
- SummaryContains string
- AnnouncementCollections []GetAnnouncements Announcement Collection 
- The list of announcement_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Filters
[]GetAnnouncements Filter 
- SummaryContains string
- announcementCollections List<GetAnnouncements Announcement Collection> 
- The list of announcement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName 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<GetAnnouncements Filter> 
- summaryContains String
- announcementCollections GetAnnouncements Announcement Collection[] 
- The list of announcement_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- filters
GetAnnouncements Filter[] 
- summaryContains string
- announcement_collections Sequence[fleetappsmanagement.Get Announcements Announcement Collection] 
- The list of announcement_collection.
- 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[fleetappsmanagement.Get Announcements Filter] 
- summary_contains str
- announcementCollections List<Property Map>
- The list of announcement_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName 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>
- summaryContains String
Supporting Types
GetAnnouncementsAnnouncementCollection   
- Items
List<GetAnnouncements Announcement Collection Item> 
- List of AnnouncementSummary items
- Items
[]GetAnnouncements Announcement Collection Item 
- List of AnnouncementSummary items
- items
List<GetAnnouncements Announcement Collection Item> 
- List of AnnouncementSummary items
- items
GetAnnouncements Announcement Collection Item[] 
- List of AnnouncementSummary items
- items
Sequence[fleetappsmanagement.Get Announcements Announcement Collection Item] 
- List of AnnouncementSummary items
- items List<Property Map>
- List of AnnouncementSummary items
GetAnnouncementsAnnouncementCollectionItem    
- AnnouncementEnd string
- Announcement end date
- AnnouncementStart string
- Announcement start date.
- CompartmentId string
- Tenancy OCID
- 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.
- DisplayName 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.
- ResourceRegion 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"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Type of announcement.
- Url string
- URL to the announcement.
- AnnouncementEnd string
- Announcement end date
- AnnouncementStart string
- Announcement start date.
- CompartmentId string
- Tenancy OCID
- 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.
- DisplayName 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.
- ResourceRegion 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"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Type of announcement.
- Url string
- URL to the announcement.
- announcementEnd String
- Announcement end date
- announcementStart String
- Announcement start date.
- compartmentId String
- Tenancy OCID
- 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.
- displayName 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.
- resourceRegion 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"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- Type of announcement.
- url String
- URL to the announcement.
- announcementEnd string
- Announcement end date
- announcementStart string
- Announcement start date.
- compartmentId string
- Tenancy OCID
- {[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.
- displayName 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.
- resourceRegion 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"}
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated 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
- Tenancy OCID
- 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.
- announcementEnd String
- Announcement end date
- announcementStart String
- Announcement start date.
- compartmentId String
- Tenancy OCID
- 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.
- displayName 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.
- resourceRegion 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"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated 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.