oci_file_storage_outbound_connector

This resource provides the Outbound Connector resource in Oracle Cloud Infrastructure File Storage service.

Creates a new outbound connector in the specified compartment. You can associate an outbound connector with a mount target only when they exist in the same availability domain.

For information about access control and compartments, see Overview of the IAM Service.

For information about availability domains, see Regions and Availability Domains. To get a list of availability domains, use the ListAvailabilityDomains operation in the Identity and Access Management Service API.

All Oracle Cloud Infrastructure Services resources, including outbound connectors, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also retrieve a resource’s OCID by using a List API operation on that resource type, or by viewing the resource in the Console.

Example Usage

resource "oci_file_storage_outbound_connector" "test_outbound_connector" {
	#Required
	availability_domain = var.outbound_connector_availability_domain
	bind_distinguished_name = var.outbound_connector_bind_distinguished_name
	compartment_id = var.compartment_id
	connector_type = var.outbound_connector_connector_type
	endpoints {
		#Required
		hostname = var.outbound_connector_endpoints_hostname
		port = var.outbound_connector_endpoints_port
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.outbound_connector_display_name
	freeform_tags = {"Department"= "Finance"}
	password_secret_id = oci_vault_secret.test_secret.id
	password_secret_version = var.outbound_connector_password_secret_version
}

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 Outbound Connector * update - (Defaults to 20 minutes), when updating the Outbound Connector * delete - (Defaults to 20 minutes), when destroying the Outbound Connector

Import

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

$ terraform import oci_file_storage_outbound_connector.test_outbound_connector "id"