» Data Source: oci_ons_subscription

This data source provides details about a specific Subscription resource in Oracle Cloud Infrastructure Notifications service.

Gets the specified subscription's configuration information.

Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.

» Example Usage

data "oci_ons_subscription" "test_subscription" {
    #Required
    subscription_id = "${oci_ons_subscription.test_subscription.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment for the subscription.
  • created_time - The time when this suscription was created.
  • 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"}
  • delivery_policy - The delivery policy of the subscription. Stored as a JSON string.
  • endpoint - A locator that corresponds to the subscription protocol. For example, an email address for a subscription that uses the EMAIL protocol, or a URL for a subscription that uses an HTTP-based protocol.
  • etag - For optimistic concurrency control. See if-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"}
  • id - The OCID of the subscription.
  • protocol - The protocol used for the subscription. For information about subscription protocols, see To create a subscription.
  • state - The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
  • topic_id - The OCID of the associated topic.