Data Source: oci_ons_notification_topics
This data source provides the list of Notification Topics in Oracle Cloud Infrastructure Notifications service.
Lists topics in the specified compartment.
Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
Example Usage
data "oci_ons_notification_topics" "test_notification_topics" {
#Required
compartment_id = var.compartment_id
#Optional
id = var.notification_topic_id
name = var.notification_topic_name
state = var.notification_topic_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment.id
- (Optional) A filter to only return resources that match the given id exactly.name
- (Optional) A filter to only return resources that match the given name exactly.state
- (Optional) Filter returned list by specified lifecycle state. This parameter is case-insensitive.
Attributes Reference
The following attributes are exported:
notification_topics
- The list of notification_topics.
NotificationTopic Reference
The following attributes are exported:
api_endpoint
- The endpoint for managing subscriptions or publishing messages to the topic.compartment_id
- The OCID of the compartment for the topic.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
description
- The description of the topic.etag
- For optimistic concurrency control. Seeif-match
.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
name
- The name of the topic.short_topic_id
- A unique short topic Id. This is used only for SMS subscriptions.state
- The lifecycle state of the topic.time_created
- The time the topic was created.topic_id
- The OCID of the topic.