FileSystem

class FileSystem : KotlinCustomResource

Provides a Nas File System resource. After activating NAS, you can create a file system and purchase a storage package for it in the NAS console. The NAS console also enables you to view the file system details and remove unnecessary file systems. For information about NAS file system and how to use it, see Manage file systems

NOTE: Available in v1.33.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetZonesArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NasFunctions.getZones(GetZonesArgs.builder()
.fileSystemType("standard")
.build());
var foo = new FileSystem("foo", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Performance")
.description("terraform-example")
.encryptType("1")
.zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.build());
}
}

Import

Nas File System can be imported using the id, e.g.

$ pulumi import alicloud:nas/fileSystem:FileSystem foo 1337849c59

Properties

Link copied to clipboard
val capacity: Output<Int>

The capacity of the file system. The capacity is required when the file_system_type is extreme. Unit: gib; Note: The minimum value is 100.

Link copied to clipboard
val description: Output<String>?

The File System description.

Link copied to clipboard
val encryptType: Output<Int>?

Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.

Link copied to clipboard
val fileSystemType: Output<String>?

the type of the file system. Valid values: standard (Default), extreme, cpfs.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyId: Output<String>

The id of the KMS key. The kms_key_id is required when the encrypt_type is 2.

Link copied to clipboard
val protocolType: Output<String>

The protocol type of the file system. Valid values: NFS, SMB (Available when the file_system_type is standard), cpfs (Available when the file_system_type is cpfs).

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val storageType: Output<String>

The storage type of the file System.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>?

The id of the VPC. The vpc_id is required when the file_system_type is cpfs.

Link copied to clipboard
val vswitchId: Output<String>?

The id of the vSwitch. The vswitch_id is required when the file_system_type is cpfs.

Link copied to clipboard
val zoneId: Output<String>

The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the protocol_type and storage_type configuration.