oci.AnnouncementsService.getAnnouncementSubscriptions
Explore with Pulumi AI
This data source provides the list of Announcement Subscriptions in Oracle Cloud Infrastructure Announcements Service service.
Gets a list of all announcement subscriptions in the specified compartment.
This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnnouncementSubscriptions = oci.AnnouncementsService.getAnnouncementSubscriptions({
compartmentId: compartmentId,
displayName: announcementSubscriptionDisplayName,
id: announcementSubscriptionId,
state: announcementSubscriptionState,
});
import pulumi
import pulumi_oci as oci
test_announcement_subscriptions = oci.AnnouncementsService.get_announcement_subscriptions(compartment_id=compartment_id,
display_name=announcement_subscription_display_name,
id=announcement_subscription_id,
state=announcement_subscription_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/AnnouncementsService"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := AnnouncementsService.GetAnnouncementSubscriptions(ctx, &announcementsservice.GetAnnouncementSubscriptionsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(announcementSubscriptionDisplayName),
Id: pulumi.StringRef(announcementSubscriptionId),
State: pulumi.StringRef(announcementSubscriptionState),
}, 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 testAnnouncementSubscriptions = Oci.AnnouncementsService.GetAnnouncementSubscriptions.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = announcementSubscriptionDisplayName,
Id = announcementSubscriptionId,
State = announcementSubscriptionState,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AnnouncementsService.AnnouncementsServiceFunctions;
import com.pulumi.oci.AnnouncementsService.inputs.GetAnnouncementSubscriptionsArgs;
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 testAnnouncementSubscriptions = AnnouncementsServiceFunctions.getAnnouncementSubscriptions(GetAnnouncementSubscriptionsArgs.builder()
.compartmentId(compartmentId)
.displayName(announcementSubscriptionDisplayName)
.id(announcementSubscriptionId)
.state(announcementSubscriptionState)
.build());
}
}
variables:
testAnnouncementSubscriptions:
fn::invoke:
Function: oci:AnnouncementsService:getAnnouncementSubscriptions
Arguments:
compartmentId: ${compartmentId}
displayName: ${announcementSubscriptionDisplayName}
id: ${announcementSubscriptionId}
state: ${announcementSubscriptionState}
Using getAnnouncementSubscriptions
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 getAnnouncementSubscriptions(args: GetAnnouncementSubscriptionsArgs, opts?: InvokeOptions): Promise<GetAnnouncementSubscriptionsResult>
function getAnnouncementSubscriptionsOutput(args: GetAnnouncementSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetAnnouncementSubscriptionsResult>
def get_announcement_subscriptions(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_announcementsservice.GetAnnouncementSubscriptionsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAnnouncementSubscriptionsResult
def get_announcement_subscriptions_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_announcementsservice.GetAnnouncementSubscriptionsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAnnouncementSubscriptionsResult]
func GetAnnouncementSubscriptions(ctx *Context, args *GetAnnouncementSubscriptionsArgs, opts ...InvokeOption) (*GetAnnouncementSubscriptionsResult, error)
func GetAnnouncementSubscriptionsOutput(ctx *Context, args *GetAnnouncementSubscriptionsOutputArgs, opts ...InvokeOption) GetAnnouncementSubscriptionsResultOutput
> Note: This function is named GetAnnouncementSubscriptions
in the Go SDK.
public static class GetAnnouncementSubscriptions
{
public static Task<GetAnnouncementSubscriptionsResult> InvokeAsync(GetAnnouncementSubscriptionsArgs args, InvokeOptions? opts = null)
public static Output<GetAnnouncementSubscriptionsResult> Invoke(GetAnnouncementSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAnnouncementSubscriptionsResult> getAnnouncementSubscriptions(GetAnnouncementSubscriptionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:AnnouncementsService/getAnnouncementSubscriptions:getAnnouncementSubscriptions
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Announcement Subscriptions Filter> - Id string
- The OCID of the announcement subscription.
- State string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Announcement Subscriptions Filter - Id string
- The OCID of the announcement subscription.
- State string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Announcement Subscriptions Filter> - id String
- The OCID of the announcement subscription.
- state String
- A filter to return only announcement subscriptions that match the given lifecycle state.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Announcement Subscriptions Filter[] - id string
- The OCID of the announcement subscription.
- state string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- compartment_
id str - The OCID of the compartment.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[announcementsservice.
Get Announcement Subscriptions Filter] - id str
- The OCID of the announcement subscription.
- state str
- A filter to return only announcement subscriptions that match the given lifecycle state.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- id String
- The OCID of the announcement subscription.
- state String
- A filter to return only announcement subscriptions that match the given lifecycle state.
getAnnouncementSubscriptions Result
The following output properties are available:
- Announcement
Subscription List<GetCollections Announcement Subscriptions Announcement Subscription Collection> - The list of announcement_subscription_collection.
- Compartment
Id string - The OCID of the compartment that contains the announcement subscription.
- Display
Name string - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Announcement Subscriptions Filter> - Id string
- The OCID of the announcement subscription.
- State string
- The current lifecycle state of the announcement subscription.
- Announcement
Subscription []GetCollections Announcement Subscriptions Announcement Subscription Collection - The list of announcement_subscription_collection.
- Compartment
Id string - The OCID of the compartment that contains the announcement subscription.
- Display
Name string - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Announcement Subscriptions Filter - Id string
- The OCID of the announcement subscription.
- State string
- The current lifecycle state of the announcement subscription.
- announcement
Subscription List<GetCollections Announcement Subscriptions Announcement Subscription Collection> - The list of announcement_subscription_collection.
- compartment
Id String - The OCID of the compartment that contains the announcement subscription.
- display
Name String - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Announcement Subscriptions Filter> - id String
- The OCID of the announcement subscription.
- state String
- The current lifecycle state of the announcement subscription.
- announcement
Subscription GetCollections Announcement Subscriptions Announcement Subscription Collection[] - The list of announcement_subscription_collection.
- compartment
Id string - The OCID of the compartment that contains the announcement subscription.
- display
Name string - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Announcement Subscriptions Filter[] - id string
- The OCID of the announcement subscription.
- state string
- The current lifecycle state of the announcement subscription.
- announcement_
subscription_ Sequence[announcementsservice.collections Get Announcement Subscriptions Announcement Subscription Collection] - The list of announcement_subscription_collection.
- compartment_
id str - The OCID of the compartment that contains the announcement subscription.
- display_
name str - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[announcementsservice.
Get Announcement Subscriptions Filter] - id str
- The OCID of the announcement subscription.
- state str
- The current lifecycle state of the announcement subscription.
- announcement
Subscription List<Property Map>Collections - The list of announcement_subscription_collection.
- compartment
Id String - The OCID of the compartment that contains the announcement subscription.
- display
Name String - A user-friendly name for the announcement subscription. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- id String
- The OCID of the announcement subscription.
- state String
- The current lifecycle state of the announcement subscription.
Supporting Types
GetAnnouncementSubscriptionsAnnouncementSubscriptionCollection
GetAnnouncementSubscriptionsAnnouncementSubscriptionCollectionItem
- Compartment
Id string - The OCID of the compartment.
- 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 description of the announcement subscription. Avoid entering confidential information.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filter
Groups List<GetAnnouncement Subscriptions Announcement Subscription Collection Item Filter Group> - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- 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 announcement subscription.
- Lifecycle
Details string - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- Ons
Topic stringId - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- Preferred
Language string - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- Preferred
Time stringZone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- State string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
- Compartment
Id string - The OCID of the compartment.
- 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 description of the announcement subscription. Avoid entering confidential information.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filter
Groups []GetAnnouncement Subscriptions Announcement Subscription Collection Item Filter Group - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- 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 announcement subscription.
- Lifecycle
Details string - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- Ons
Topic stringId - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- Preferred
Language string - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- Preferred
Time stringZone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- State string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the compartment.
- 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 description of the announcement subscription. Avoid entering confidential information.
- display
Name String - A filter to return only resources that match the entire display name given.
- filter
Groups List<GetAnnouncement Subscriptions Announcement Subscription Collection Item Filter Group> - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- 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 announcement subscription.
- lifecycle
Details String - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- ons
Topic StringId - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- preferred
Language String - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- preferred
Time StringZone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- state String
- A filter to return only announcement subscriptions that match the given lifecycle state.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
- compartment
Id string - The OCID of the compartment.
- {[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 description of the announcement subscription. Avoid entering confidential information.
- display
Name string - A filter to return only resources that match the entire display name given.
- filter
Groups GetAnnouncement Subscriptions Announcement Subscription Collection Item Filter Group[] - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- {[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 announcement subscription.
- lifecycle
Details string - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- ons
Topic stringId - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- preferred
Language string - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- preferred
Time stringZone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- state string
- A filter to return only announcement subscriptions that match the given lifecycle state.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
- compartment_
id str - The OCID of the compartment.
- 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 description of the announcement subscription. Avoid entering confidential information.
- display_
name str - A filter to return only resources that match the entire display name given.
- filter_
groups Sequence[announcementsservice.Get Announcement Subscriptions Announcement Subscription Collection Item Filter Group] - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- 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 announcement subscription.
- lifecycle_
details str - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- ons_
topic_ strid - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- preferred_
language str - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- preferred_
time_ strzone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- state str
- A filter to return only announcement subscriptions that match the given lifecycle state.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
- compartment
Id String - The OCID of the compartment.
- 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 description of the announcement subscription. Avoid entering confidential information.
- display
Name String - A filter to return only resources that match the entire display name given.
- filter
Groups List<Property Map> - A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes.
- 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 announcement subscription.
- lifecycle
Details String - A message describing the current lifecycle state in more detail. For example, details might provide required or recommended actions for a resource in a Failed state.
- ons
Topic StringId - The OCID of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription.
- preferred
Language String - (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR.
- preferred
Time StringZone - The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
- state String
- A filter to return only announcement subscriptions that match the given lifecycle state.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time that the announcement subscription was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time that the announcement subscription was updated, expressed in RFC 3339 timestamp format.
GetAnnouncementSubscriptionsAnnouncementSubscriptionCollectionItemFilterGroup
- Filters
List<Get
Announcement Subscriptions Announcement Subscription Collection Item Filter Group Filter> - A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- Name string
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
- Filters
[]Get
Announcement Subscriptions Announcement Subscription Collection Item Filter Group Filter - A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- Name string
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
- filters
List<Get
Announcement Subscriptions Announcement Subscription Collection Item Filter Group Filter> - A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- name String
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
- filters
Get
Announcement Subscriptions Announcement Subscription Collection Item Filter Group Filter[] - A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- name string
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
- filters
Sequence[announcementsservice.
Get Announcement Subscriptions Announcement Subscription Collection Item Filter Group Filter] - A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- name str
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
- filters List<Property Map>
- A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually.
- name String
- The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information.
GetAnnouncementSubscriptionsAnnouncementSubscriptionCollectionItemFilterGroupFilter
GetAnnouncementSubscriptionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.