oci_apigateway_subscriber

This resource provides the Subscriber resource in Oracle Cloud Infrastructure API Gateway service.

Creates a new subscriber.

Example Usage

resource "oci_apigateway_subscriber" "test_subscriber" {
	#Required
	clients {
		#Required
		name = var.subscriber_clients_name
		token = var.subscriber_clients_token
	}
	compartment_id = var.compartment_id
	usage_plans = var.subscriber_usage_plans

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.subscriber_display_name
	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 Subscriber * update - (Defaults to 20 minutes), when updating the Subscriber * delete - (Defaults to 20 minutes), when destroying the Subscriber

Import

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

$ terraform import oci_apigateway_subscriber.test_subscriber "id"