Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:FleetAppsManagement/getAnnouncements:getAnnouncements
arguments:
# arguments dictionary
The following arguments are supported:
- 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 with summary contains the given value.
- 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 with summary contains the given value.
- 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 with summary contains the given value.
- 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 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.
Get Announcements Filter] - summary_
contains str - Filter the list with summary contains the given value.
- 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 with summary contains the given value.
getAnnouncements Result
The following output properties are available:
- Announcement
Collections List<GetAnnouncements Announcement Collection> - The list of announcement_collection.
- 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.
- 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.
- 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.
- 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[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
- announcement
Collections List<Property Map> - The list of announcement_collection.
- 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[fleetappsmanagement.
Get Announcements Announcement Collection Item] - List of AnnouncementSummary items
- items List<Property Map>
- List of AnnouncementSummary items
GetAnnouncementsAnnouncementCollectionItem
- Announcement
End string - Date to end displaying annonucement to user
- Announcement
Start string - Date to start displaying announcement to user
- Compartment
Id 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
- Details of the announcement
- 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 - Date to end displaying annonucement to user
- Announcement
Start string - Date to start displaying announcement to user
- Compartment
Id 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
- Details of the announcement
- 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 - Date to end displaying annonucement to user
- announcement
Start String - Date to start displaying announcement to user
- compartment
Id 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
- Details of the announcement
- 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 - Date to end displaying annonucement to user
- announcement
Start string - Date to start displaying announcement to user
- compartment
Id 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
- Details of the announcement
- 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 - Date to end displaying annonucement to user
- announcement_
start str - Date to start displaying announcement to user
- 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
- Details of the announcement
- 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 - Date to end displaying annonucement to user
- announcement
Start String - Date to start displaying announcement to user
- compartment
Id 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
- Details of the announcement
- 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
oci
Terraform Provider.