1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getAnnouncements
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.getAnnouncements

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FleetAppsManagement/getAnnouncements:getAnnouncements
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetAnnouncementsFilter>
    SummaryContains string
    Filter the list with summary contains the given value.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetAnnouncementsFilter
    SummaryContains string
    Filter the list with summary contains the given value.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetAnnouncementsFilter>
    summaryContains String
    Filter the list with summary contains the given value.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetAnnouncementsFilter[]
    summaryContains string
    Filter the list with summary contains the given value.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[fleetappsmanagement.GetAnnouncementsFilter]
    summary_contains str
    Filter the list with summary contains the given 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 with summary contains the given value.

    getAnnouncements Result

    The following output properties are available:

    AnnouncementCollections List<GetAnnouncementsAnnouncementCollection>
    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<GetAnnouncementsFilter>
    SummaryContains string
    AnnouncementCollections []GetAnnouncementsAnnouncementCollection
    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 []GetAnnouncementsFilter
    SummaryContains string
    announcementCollections List<GetAnnouncementsAnnouncementCollection>
    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<GetAnnouncementsFilter>
    summaryContains String
    announcementCollections GetAnnouncementsAnnouncementCollection[]
    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 GetAnnouncementsFilter[]
    summaryContains string
    announcement_collections Sequence[fleetappsmanagement.GetAnnouncementsAnnouncementCollection]
    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.GetAnnouncementsFilter]
    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 []GetAnnouncementsAnnouncementCollectionItem
    List of AnnouncementSummary items
    items GetAnnouncementsAnnouncementCollectionItem[]
    List of AnnouncementSummary items
    items List<Property Map>
    List of AnnouncementSummary items

    GetAnnouncementsAnnouncementCollectionItem

    AnnouncementEnd string
    Date to end displaying annonucement to user
    AnnouncementStart string
    Date to start displaying announcement to user
    CompartmentId string
    Tenancy OCID
    DefinedTags 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
    Details of the announcement
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags 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
    SystemTags 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
    Date to end displaying annonucement to user
    AnnouncementStart string
    Date to start displaying announcement to user
    CompartmentId string
    Tenancy OCID
    DefinedTags 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
    Details of the announcement
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags 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
    SystemTags 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
    Date to end displaying annonucement to user
    announcementStart String
    Date to start displaying announcement to user
    compartmentId String
    Tenancy OCID
    definedTags 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
    Details of the announcement
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags 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
    systemTags 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
    Date to end displaying annonucement to user
    announcementStart string
    Date to start displaying announcement to user
    compartmentId string
    Tenancy OCID
    definedTags {[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
    Details of the announcement
    displayName string
    A filter to return only resources that match the entire display name given.
    freeformTags {[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
    systemTags {[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
    Date to end displaying annonucement to user
    announcement_start str
    Date to start displaying announcement to user
    compartment_id str
    Tenancy OCID
    defined_tags 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
    Details of the announcement
    display_name str
    A filter to return only resources that match the entire display name given.
    freeform_tags 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
    system_tags 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
    Date to end displaying annonucement to user
    announcementStart String
    Date to start displaying announcement to user
    compartmentId String
    Tenancy OCID
    definedTags 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
    Details of the announcement
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags 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
    systemTags 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

    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

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi