Fileset

class Fileset : KotlinCustomResource

Provides a Network Attached Storage (NAS) Fileset resource. For information about Network Attached Storage (NAS) Fileset and how to use it, see What is Fileset.

NOTE: Available in v1.153.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.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.Fileset;
import com.pulumi.alicloud.nas.FilesetArgs;
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 exampleZones = NasFunctions.getZones(GetZonesArgs.builder()
.fileSystemType("cpfs")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName("terraform-example")
.cidrBlock("172.17.3.0/24")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName("terraform-example")
.cidrBlock("172.17.3.0/24")
.vpcId(exampleNetwork.id())
.zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[1].zoneId()))
.build());
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.protocolType("cpfs")
.storageType("advance_200")
.fileSystemType("cpfs")
.capacity(3600)
.description("terraform-example")
.zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[1].zoneId()))
.vpcId(exampleNetwork.id())
.vswitchId(exampleSwitch.id())
.build());
var exampleFileset = new Fileset("exampleFileset", FilesetArgs.builder()
.fileSystemId(exampleFileSystem.id())
.description("terraform-example")
.fileSystemPath("/example_path/")
.build());
}
}

Import

Network Attached Storage (NAS) Fileset can be imported using the id, e.g.

$ pulumi import alicloud:nas/fileset:Fileset example <file_system_id>:<fileset_id>

Properties

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

The description of the Fileset. It must be 2 to 128 characters in length and must start with a letter or Chinese, but cannot start with https:// or https://.

Link copied to clipboard
val dryRun: Output<Boolean>?

The dry run.

Link copied to clipboard
val filesetId: Output<String>

The first ID of the resource.

Link copied to clipboard
val fileSystemId: Output<String>

The ID of the file system.

Link copied to clipboard
val fileSystemPath: Output<String>

The path of the fileset.

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

The status of the fileset.

Link copied to clipboard
val urn: Output<String>