oci_file_storage_export

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

Creates a new export in the specified export set, path, and file system.

Example Usage

resource "oci_file_storage_export" "test_export" {
	#Required
	export_set_id = oci_file_storage_export_set.test_export_set.id
	file_system_id = oci_file_storage_file_system.test_file_system.id
	path = var.export_path

	#Optional
	export_options {
		#Required
		source = var.export_export_options_source

		#Optional
		access = var.export_export_options_access
		allowed_auth = var.export_export_options_allowed_auth
		anonymous_gid = var.export_export_options_anonymous_gid
		anonymous_uid = var.export_export_options_anonymous_uid
		identity_squash = var.export_export_options_identity_squash
		is_anonymous_access_allowed = var.export_export_options_is_anonymous_access_allowed
		require_privileged_source_port = var.export_export_options_require_privileged_source_port
	}
	is_idmap_groups_for_sys_auth = var.export_is_idmap_groups_for_sys_auth
	locks {
		#Required
		type = var.export_locks_type

		#Optional
		message = var.export_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.export_locks_time_created
	}
}

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

Import

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

$ terraform import oci_file_storage_export.test_export "id"