volcengine.nas.FileSystem
Explore with Pulumi AI
Provides a resource to manage nas file system
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.nas.Zones({});
const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
    fileSystemName: "acc-test-fs",
    description: "acc-test",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    capacity: 103,
    projectName: "default",
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.nas.zones()
foo_file_system = volcengine.nas.FileSystem("fooFileSystem",
    file_system_name="acc-test-fs",
    description="acc-test",
    zone_id=foo_zones.zones[0].id,
    capacity=103,
    project_name="default",
    tags=[volcengine.nas.FileSystemTagArgs(
        key="k1",
        value="v1",
    )])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/nas"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := nas.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = nas.NewFileSystem(ctx, "fooFileSystem", &nas.FileSystemArgs{
			FileSystemName: pulumi.String("acc-test-fs"),
			Description:    pulumi.String("acc-test"),
			ZoneId:         pulumi.String(fooZones.Zones[0].Id),
			Capacity:       pulumi.Int(103),
			ProjectName:    pulumi.String("default"),
			Tags: nas.FileSystemTagArray{
				&nas.FileSystemTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Nas.Zones.Invoke();
    var fooFileSystem = new Volcengine.Nas.FileSystem("fooFileSystem", new()
    {
        FileSystemName = "acc-test-fs",
        Description = "acc-test",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        Capacity = 103,
        ProjectName = "default",
        Tags = new[]
        {
            new Volcengine.Nas.Inputs.FileSystemTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.nas.NasFunctions;
import com.pulumi.volcengine.nas.inputs.ZonesArgs;
import com.pulumi.volcengine.nas.FileSystem;
import com.pulumi.volcengine.nas.FileSystemArgs;
import com.pulumi.volcengine.nas.inputs.FileSystemTagArgs;
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 fooZones = NasFunctions.Zones();
        var fooFileSystem = new FileSystem("fooFileSystem", FileSystemArgs.builder()        
            .fileSystemName("acc-test-fs")
            .description("acc-test")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .capacity(103)
            .projectName("default")
            .tags(FileSystemTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());
    }
}
resources:
  fooFileSystem:
    type: volcengine:nas:FileSystem
    properties:
      fileSystemName: acc-test-fs
      description: acc-test
      zoneId: ${fooZones.zones[0].id}
      capacity: 103
      projectName: default
      tags:
        - key: k1
          value: v1
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:nas:Zones
      Arguments: {}
Create FileSystem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FileSystem(name: string, args: FileSystemArgs, opts?: CustomResourceOptions);@overload
def FileSystem(resource_name: str,
               args: FileSystemArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def FileSystem(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               capacity: Optional[int] = None,
               file_system_name: Optional[str] = None,
               zone_id: Optional[str] = None,
               description: Optional[str] = None,
               project_name: Optional[str] = None,
               snapshot_id: Optional[str] = None,
               tags: Optional[Sequence[FileSystemTagArgs]] = None)func NewFileSystem(ctx *Context, name string, args FileSystemArgs, opts ...ResourceOption) (*FileSystem, error)public FileSystem(string name, FileSystemArgs args, CustomResourceOptions? opts = null)
public FileSystem(String name, FileSystemArgs args)
public FileSystem(String name, FileSystemArgs args, CustomResourceOptions options)
type: volcengine:nas:FileSystem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volcengineFileSystemResource = new Volcengine.Nas.FileSystem("volcengineFileSystemResource", new()
{
    Capacity = 0,
    FileSystemName = "string",
    ZoneId = "string",
    Description = "string",
    ProjectName = "string",
    SnapshotId = "string",
    Tags = new[]
    {
        new Volcengine.Nas.Inputs.FileSystemTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := nas.NewFileSystem(ctx, "volcengineFileSystemResource", &nas.FileSystemArgs{
	Capacity:       pulumi.Int(0),
	FileSystemName: pulumi.String("string"),
	ZoneId:         pulumi.String("string"),
	Description:    pulumi.String("string"),
	ProjectName:    pulumi.String("string"),
	SnapshotId:     pulumi.String("string"),
	Tags: nas.FileSystemTagArray{
		&nas.FileSystemTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var volcengineFileSystemResource = new FileSystem("volcengineFileSystemResource", FileSystemArgs.builder()
    .capacity(0)
    .fileSystemName("string")
    .zoneId("string")
    .description("string")
    .projectName("string")
    .snapshotId("string")
    .tags(FileSystemTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
volcengine_file_system_resource = volcengine.nas.FileSystem("volcengineFileSystemResource",
    capacity=0,
    file_system_name="string",
    zone_id="string",
    description="string",
    project_name="string",
    snapshot_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
const volcengineFileSystemResource = new volcengine.nas.FileSystem("volcengineFileSystemResource", {
    capacity: 0,
    fileSystemName: "string",
    zoneId: "string",
    description: "string",
    projectName: "string",
    snapshotId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:nas:FileSystem
properties:
    capacity: 0
    description: string
    fileSystemName: string
    projectName: string
    snapshotId: string
    tags:
        - key: string
          value: string
    zoneId: string
FileSystem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FileSystem resource accepts the following input properties:
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- FileSystem stringName 
- The name of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- Description string
- The description of the nas file system.
- ProjectName string
- The project name of the nas file system.
- SnapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<FileSystem Tag> 
- Tags.
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- FileSystem stringName 
- The name of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- Description string
- The description of the nas file system.
- ProjectName string
- The project name of the nas file system.
- SnapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
[]FileSystem Tag Args 
- Tags.
- capacity Integer
- The capacity of the nas file system. Unit: GiB.
- fileSystem StringName 
- The name of the nas file system.
- zoneId String
- The zone id of the nas file system.
- description String
- The description of the nas file system.
- projectName String
- The project name of the nas file system.
- snapshotId String
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<FileSystem Tag> 
- Tags.
- capacity number
- The capacity of the nas file system. Unit: GiB.
- fileSystem stringName 
- The name of the nas file system.
- zoneId string
- The zone id of the nas file system.
- description string
- The description of the nas file system.
- projectName string
- The project name of the nas file system.
- snapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
FileSystem Tag[] 
- Tags.
- capacity int
- The capacity of the nas file system. Unit: GiB.
- file_system_ strname 
- The name of the nas file system.
- zone_id str
- The zone id of the nas file system.
- description str
- The description of the nas file system.
- project_name str
- The project name of the nas file system.
- snapshot_id str
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
Sequence[FileSystem Tag Args] 
- Tags.
- capacity Number
- The capacity of the nas file system. Unit: GiB.
- fileSystem StringName 
- The name of the nas file system.
- zoneId String
- The zone id of the nas file system.
- description String
- The description of the nas file system.
- projectName String
- The project name of the nas file system.
- snapshotId String
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
- ChargeType string
- The charge type of the nas file system.
- CreateTime string
- The create time of the nas file system.
- FileSystem stringType 
- The type of the nas file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProtocolType string
- The protocol type of the nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- Status string
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneName string
- The zone name of the nas file system.
- ChargeType string
- The charge type of the nas file system.
- CreateTime string
- The create time of the nas file system.
- FileSystem stringType 
- The type of the nas file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- ProtocolType string
- The protocol type of the nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- Status string
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneName string
- The zone name of the nas file system.
- chargeType String
- The charge type of the nas file system.
- createTime String
- The create time of the nas file system.
- fileSystem StringType 
- The type of the nas file system.
- id String
- The provider-assigned unique ID for this managed resource.
- protocolType String
- The protocol type of the nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Integer
- The snapshot count of the nas file system.
- status String
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneName String
- The zone name of the nas file system.
- chargeType string
- The charge type of the nas file system.
- createTime string
- The create time of the nas file system.
- fileSystem stringType 
- The type of the nas file system.
- id string
- The provider-assigned unique ID for this managed resource.
- protocolType string
- The protocol type of the nas file system.
- regionId string
- The region id of the nas file system.
- snapshotCount number
- The snapshot count of the nas file system.
- status string
- The status of the nas file system.
- storageType string
- The storage type of the nas file system.
- updateTime string
- The update time of the nas file system.
- version string
- The version of the nas file system.
- zoneName string
- The zone name of the nas file system.
- charge_type str
- The charge type of the nas file system.
- create_time str
- The create time of the nas file system.
- file_system_ strtype 
- The type of the nas file system.
- id str
- The provider-assigned unique ID for this managed resource.
- protocol_type str
- The protocol type of the nas file system.
- region_id str
- The region id of the nas file system.
- snapshot_count int
- The snapshot count of the nas file system.
- status str
- The status of the nas file system.
- storage_type str
- The storage type of the nas file system.
- update_time str
- The update time of the nas file system.
- version str
- The version of the nas file system.
- zone_name str
- The zone name of the nas file system.
- chargeType String
- The charge type of the nas file system.
- createTime String
- The create time of the nas file system.
- fileSystem StringType 
- The type of the nas file system.
- id String
- The provider-assigned unique ID for this managed resource.
- protocolType String
- The protocol type of the nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Number
- The snapshot count of the nas file system.
- status String
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneName String
- The zone name of the nas file system.
Look up Existing FileSystem Resource
Get an existing FileSystem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FileSystemState, opts?: CustomResourceOptions): FileSystem@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capacity: Optional[int] = None,
        charge_type: Optional[str] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        file_system_name: Optional[str] = None,
        file_system_type: Optional[str] = None,
        project_name: Optional[str] = None,
        protocol_type: Optional[str] = None,
        region_id: Optional[str] = None,
        snapshot_count: Optional[int] = None,
        snapshot_id: Optional[str] = None,
        status: Optional[str] = None,
        storage_type: Optional[str] = None,
        tags: Optional[Sequence[FileSystemTagArgs]] = None,
        update_time: Optional[str] = None,
        version: Optional[str] = None,
        zone_id: Optional[str] = None,
        zone_name: Optional[str] = None) -> FileSystemfunc GetFileSystem(ctx *Context, name string, id IDInput, state *FileSystemState, opts ...ResourceOption) (*FileSystem, error)public static FileSystem Get(string name, Input<string> id, FileSystemState? state, CustomResourceOptions? opts = null)public static FileSystem get(String name, Output<String> id, FileSystemState state, CustomResourceOptions options)resources:  _:    type: volcengine:nas:FileSystem    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- ChargeType string
- The charge type of the nas file system.
- CreateTime string
- The create time of the nas file system.
- Description string
- The description of the nas file system.
- FileSystem stringName 
- The name of the nas file system.
- FileSystem stringType 
- The type of the nas file system.
- ProjectName string
- The project name of the nas file system.
- ProtocolType string
- The protocol type of the nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- SnapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Status string
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- 
List<FileSystem Tag> 
- Tags.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- ZoneName string
- The zone name of the nas file system.
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- ChargeType string
- The charge type of the nas file system.
- CreateTime string
- The create time of the nas file system.
- Description string
- The description of the nas file system.
- FileSystem stringName 
- The name of the nas file system.
- FileSystem stringType 
- The type of the nas file system.
- ProjectName string
- The project name of the nas file system.
- ProtocolType string
- The protocol type of the nas file system.
- RegionId string
- The region id of the nas file system.
- SnapshotCount int
- The snapshot count of the nas file system.
- SnapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Status string
- The status of the nas file system.
- StorageType string
- The storage type of the nas file system.
- 
[]FileSystem Tag Args 
- Tags.
- UpdateTime string
- The update time of the nas file system.
- Version string
- The version of the nas file system.
- ZoneId string
- The zone id of the nas file system.
- ZoneName string
- The zone name of the nas file system.
- capacity Integer
- The capacity of the nas file system. Unit: GiB.
- chargeType String
- The charge type of the nas file system.
- createTime String
- The create time of the nas file system.
- description String
- The description of the nas file system.
- fileSystem StringName 
- The name of the nas file system.
- fileSystem StringType 
- The type of the nas file system.
- projectName String
- The project name of the nas file system.
- protocolType String
- The protocol type of the nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Integer
- The snapshot count of the nas file system.
- snapshotId String
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status String
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- 
List<FileSystem Tag> 
- Tags.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneId String
- The zone id of the nas file system.
- zoneName String
- The zone name of the nas file system.
- capacity number
- The capacity of the nas file system. Unit: GiB.
- chargeType string
- The charge type of the nas file system.
- createTime string
- The create time of the nas file system.
- description string
- The description of the nas file system.
- fileSystem stringName 
- The name of the nas file system.
- fileSystem stringType 
- The type of the nas file system.
- projectName string
- The project name of the nas file system.
- protocolType string
- The protocol type of the nas file system.
- regionId string
- The region id of the nas file system.
- snapshotCount number
- The snapshot count of the nas file system.
- snapshotId string
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status string
- The status of the nas file system.
- storageType string
- The storage type of the nas file system.
- 
FileSystem Tag[] 
- Tags.
- updateTime string
- The update time of the nas file system.
- version string
- The version of the nas file system.
- zoneId string
- The zone id of the nas file system.
- zoneName string
- The zone name of the nas file system.
- capacity int
- The capacity of the nas file system. Unit: GiB.
- charge_type str
- The charge type of the nas file system.
- create_time str
- The create time of the nas file system.
- description str
- The description of the nas file system.
- file_system_ strname 
- The name of the nas file system.
- file_system_ strtype 
- The type of the nas file system.
- project_name str
- The project name of the nas file system.
- protocol_type str
- The protocol type of the nas file system.
- region_id str
- The region id of the nas file system.
- snapshot_count int
- The snapshot count of the nas file system.
- snapshot_id str
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status str
- The status of the nas file system.
- storage_type str
- The storage type of the nas file system.
- 
Sequence[FileSystem Tag Args] 
- Tags.
- update_time str
- The update time of the nas file system.
- version str
- The version of the nas file system.
- zone_id str
- The zone id of the nas file system.
- zone_name str
- The zone name of the nas file system.
- capacity Number
- The capacity of the nas file system. Unit: GiB.
- chargeType String
- The charge type of the nas file system.
- createTime String
- The create time of the nas file system.
- description String
- The description of the nas file system.
- fileSystem StringName 
- The name of the nas file system.
- fileSystem StringType 
- The type of the nas file system.
- projectName String
- The project name of the nas file system.
- protocolType String
- The protocol type of the nas file system.
- regionId String
- The region id of the nas file system.
- snapshotCount Number
- The snapshot count of the nas file system.
- snapshotId String
- The snapshot id when creating the nas file system. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- status String
- The status of the nas file system.
- storageType String
- The storage type of the nas file system.
- List<Property Map>
- Tags.
- updateTime String
- The update time of the nas file system.
- version String
- The version of the nas file system.
- zoneId String
- The zone id of the nas file system.
- zoneName String
- The zone name of the nas file system.
Supporting Types
FileSystemTag, FileSystemTagArgs      
Import
NasFileSystem can be imported using the id, e.g.
$ pulumi import volcengine:nas/fileSystem:FileSystem default enas-cnbjd3879745****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.