oci_file_storage_export_set
This resource provides the Export Set resource in Oracle Cloud Infrastructure File Storage service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/filestorage/latest/ExportSet
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/
The export_set resource cannot be directly created or destroyed. An export set is created by the service automatically when a mount target is created. When a mount target is deleted, the export set associated with it is also deleted automatically.
You can use this resource for managing existing export sets from within Terraform. The resource exposes the following updatable attributes:
display_name
max_fs_stat_bytes
max_fs_stat_files
Any other updates to the behavior of export_set require updating the parent mount target. If you intend to manage export_set with Terraform, you should import the mount_target resource as well. The mount_target resource includes the mount_target_id attribute, which is required for updates to export_set.
Only one export set resource should be created per mount target.
Example Usage
resource "oci_file_storage_export_set" "test_export_set" {
#Required
mount_target_id = oci_file_storage_mount_target.test_mount_target.id
#Optional
display_name = var.export_set_name
max_fs_stat_bytes = 23843202333
max_fs_stat_files = 223442
}
Argument Reference
The following arguments are supported:
mount_target_id- (Required) (Updatable) The OCID of the mount target that the export set is associated withdisplay_name- (Optional) (Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:My export setmax_fs_stat_bytes- (Optional) (Updatable) Controls the maximumtbytes,fbytes, andabytes, values reported byNFS FSSTATcalls through any associated mount targets. This is an advanced feature. For most applications, use the default value. Thetbytesvalue reported byFSSTATwill bemaxFsStatBytes. The value offbytesandabyteswill bemaxFsStatBytesminus the metered size of the file system. If the metered size is larger thanmaxFsStatBytes, thenfbytesandabyteswill both be ‘0’.max_fs_stat_files- (Optional) (Updatable) Controls the maximumtfiles,ffiles, andafilesvalues reported byNFS FSSTATcalls through any associated mount targets. This is an advanced feature. For most applications, use the default value. Thetfilesvalue reported byFSSTATwill bemaxFsStatFiles. The value offfilesandafileswill bemaxFsStatFilesminus the metered size of the file system. If the metered size is larger thanmaxFsStatFiles, thenffilesandafileswill both be ‘0’.
** 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:
availability_domain- The availability domain the export set is in. May be unset as a blank or NULL value. Example:Uocm:PHX-AD-1compartment_id- The OCID of the compartment that contains the export set.display_name- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example:My export setid- The OCID of the export set.max_fs_stat_bytes- Controls the maximumtbytes,fbytes, andabytes, values reported byNFS FSSTATcalls through any associated mount targets. This is an advanced feature. For most applications, use the default value. Thetbytesvalue reported byFSSTATwill bemaxFsStatBytes. The value offbytesandabyteswill bemaxFsStatBytesminus the metered size of the file system. If the metered size is larger thanmaxFsStatBytes, thenfbytesandabyteswill both be ‘0’.max_fs_stat_files- Controls the maximumtfiles,ffiles, andafilesvalues reported byNFS FSSTATcalls through any associated mount targets. This is an advanced feature. For most applications, use the default value. Thetfilesvalue reported byFSSTATwill bemaxFsStatFiles. The value offfilesandafileswill bemaxFsStatFilesminus the metered size of the file system. If the metered size is larger thanmaxFsStatFiles, thenffilesandafileswill both be ‘0’.state- The current state of the export set.time_created- The date and time the export set was created, expressed in RFC 3339 timestamp format. Example:2016-08-25T21:10:29.600Zvcn_id- The OCID of the virtual cloud network (VCN) the export set is in.
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Export Set
* update - (Defaults to 20 minutes), when updating the Export Set
* delete - (Defaults to 20 minutes), when destroying the Export Set
Import
ExportSets can be imported using the id, e.g.
$ terraform import oci_file_storage_export_set.test_export_set "id"