oci_ons_subscription

This resource provides the Subscription resource in Oracle Cloud Infrastructure Notifications service.

Creates a subscription for the specified topic and sends a subscription confirmation URL to the endpoint. The subscription remains in “Pending” status until it has been confirmed. For information about confirming subscriptions, see To confirm a subscription.

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

Example Usage

resource "oci_ons_subscription" "test_subscription" {
	#Required
	compartment_id = var.compartment_id
	endpoint = var.subscription_endpoint
	protocol = var.subscription_protocol
	topic_id = oci_ons_notification_topic.test_notification_topic.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Subscription * update - (Defaults to 20 minutes), when updating the Subscription * delete - (Defaults to 20 minutes), when destroying the Subscription

Import

Subscriptions can be imported using the id, e.g.

$ terraform import oci_ons_subscription.test_subscription "id"