volcengine.nas.FileSystem
Explore with Pulumi AI
Provides a resource to manage nas file system
Example Usage
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 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
})
}
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());
}
}
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",
)])
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",
}],
});
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.
- File
System stringName - The name of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- Description string
- The description of the nas file system.
- Project
Name string - The project name of the nas file system.
- Snapshot
Id 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<File
System Tag> - Tags.
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- File
System stringName - The name of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- Description string
- The description of the nas file system.
- Project
Name string - The project name of the nas file system.
- Snapshot
Id 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.
- []File
System Tag Args - Tags.
- capacity Integer
- The capacity of the nas file system. Unit: GiB.
- file
System StringName - The name of the nas file system.
- zone
Id String - The zone id of the nas file system.
- description String
- The description of the nas file system.
- project
Name String - The project name of the nas file system.
- snapshot
Id 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<File
System Tag> - Tags.
- capacity number
- The capacity of the nas file system. Unit: GiB.
- file
System stringName - The name of the nas file system.
- zone
Id string - The zone id of the nas file system.
- description string
- The description of the nas file system.
- project
Name string - The project name of the nas file system.
- snapshot
Id 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.
- File
System 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[File
System Tag Args] - Tags.
- capacity Number
- The capacity of the nas file system. Unit: GiB.
- file
System StringName - The name of the nas file system.
- zone
Id String - The zone id of the nas file system.
- description String
- The description of the nas file system.
- project
Name String - The project name of the nas file system.
- snapshot
Id 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:
- Charge
Type string - The charge type of the nas file system.
- Create
Time string - The create time of the nas file system.
- File
System stringType - The type of the nas file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocol
Type string - The protocol type of the nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Status string
- The status of the nas file system.
- Storage
Type string - The storage type of the nas file system.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Name string - The zone name of the nas file system.
- Charge
Type string - The charge type of the nas file system.
- Create
Time string - The create time of the nas file system.
- File
System stringType - The type of the nas file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Protocol
Type string - The protocol type of the nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Status string
- The status of the nas file system.
- Storage
Type string - The storage type of the nas file system.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Name string - The zone name of the nas file system.
- charge
Type String - The charge type of the nas file system.
- create
Time String - The create time of the nas file system.
- file
System StringType - The type of the nas file system.
- id String
- The provider-assigned unique ID for this managed resource.
- protocol
Type String - The protocol type of the nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Integer - The snapshot count of the nas file system.
- status String
- The status of the nas file system.
- storage
Type String - The storage type of the nas file system.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Name String - The zone name of the nas file system.
- charge
Type string - The charge type of the nas file system.
- create
Time string - The create time of the nas file system.
- file
System stringType - The type of the nas file system.
- id string
- The provider-assigned unique ID for this managed resource.
- protocol
Type string - The protocol type of the nas file system.
- region
Id string - The region id of the nas file system.
- snapshot
Count number - The snapshot count of the nas file system.
- status string
- The status of the nas file system.
- storage
Type string - The storage type of the nas file system.
- update
Time string - The update time of the nas file system.
- version string
- The version of the nas file system.
- zone
Name 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.
- charge
Type String - The charge type of the nas file system.
- create
Time String - The create time of the nas file system.
- file
System StringType - The type of the nas file system.
- id String
- The provider-assigned unique ID for this managed resource.
- protocol
Type String - The protocol type of the nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Number - The snapshot count of the nas file system.
- status String
- The status of the nas file system.
- storage
Type String - The storage type of the nas file system.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Name 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) -> FileSystem
func 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)
Resource lookup is not supported in YAML
- 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.
- Charge
Type string - The charge type of the nas file system.
- Create
Time string - The create time of the nas file system.
- Description string
- The description of the nas file system.
- File
System stringName - The name of the nas file system.
- File
System stringType - The type of the nas file system.
- Project
Name string - The project name of the nas file system.
- Protocol
Type string - The protocol type of the nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Snapshot
Id 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.
- Storage
Type string - The storage type of the nas file system.
- List<File
System Tag> - Tags.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- Zone
Name string - The zone name of the nas file system.
- Capacity int
- The capacity of the nas file system. Unit: GiB.
- Charge
Type string - The charge type of the nas file system.
- Create
Time string - The create time of the nas file system.
- Description string
- The description of the nas file system.
- File
System stringName - The name of the nas file system.
- File
System stringType - The type of the nas file system.
- Project
Name string - The project name of the nas file system.
- Protocol
Type string - The protocol type of the nas file system.
- Region
Id string - The region id of the nas file system.
- Snapshot
Count int - The snapshot count of the nas file system.
- Snapshot
Id 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.
- Storage
Type string - The storage type of the nas file system.
- []File
System Tag Args - Tags.
- Update
Time string - The update time of the nas file system.
- Version string
- The version of the nas file system.
- Zone
Id string - The zone id of the nas file system.
- Zone
Name string - The zone name of the nas file system.
- capacity Integer
- The capacity of the nas file system. Unit: GiB.
- charge
Type String - The charge type of the nas file system.
- create
Time String - The create time of the nas file system.
- description String
- The description of the nas file system.
- file
System StringName - The name of the nas file system.
- file
System StringType - The type of the nas file system.
- project
Name String - The project name of the nas file system.
- protocol
Type String - The protocol type of the nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Integer - The snapshot count of the nas file system.
- snapshot
Id 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.
- storage
Type String - The storage type of the nas file system.
- List<File
System Tag> - Tags.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Id String - The zone id of the nas file system.
- zone
Name String - The zone name of the nas file system.
- capacity number
- The capacity of the nas file system. Unit: GiB.
- charge
Type string - The charge type of the nas file system.
- create
Time string - The create time of the nas file system.
- description string
- The description of the nas file system.
- file
System stringName - The name of the nas file system.
- file
System stringType - The type of the nas file system.
- project
Name string - The project name of the nas file system.
- protocol
Type string - The protocol type of the nas file system.
- region
Id string - The region id of the nas file system.
- snapshot
Count number - The snapshot count of the nas file system.
- snapshot
Id 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.
- storage
Type string - The storage type of the nas file system.
- File
System Tag[] - Tags.
- update
Time string - The update time of the nas file system.
- version string
- The version of the nas file system.
- zone
Id string - The zone id of the nas file system.
- zone
Name 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[File
System 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.
- charge
Type String - The charge type of the nas file system.
- create
Time String - The create time of the nas file system.
- description String
- The description of the nas file system.
- file
System StringName - The name of the nas file system.
- file
System StringType - The type of the nas file system.
- project
Name String - The project name of the nas file system.
- protocol
Type String - The protocol type of the nas file system.
- region
Id String - The region id of the nas file system.
- snapshot
Count Number - The snapshot count of the nas file system.
- snapshot
Id 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.
- storage
Type String - The storage type of the nas file system.
- List<Property Map>
- Tags.
- update
Time String - The update time of the nas file system.
- version String
- The version of the nas file system.
- zone
Id String - The zone id of the nas file system.
- zone
Name 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
volcengine
Terraform Provider.