volcengine.cloudfs.FileSystem
Explore with Pulumi AI
Provides a resource to manage cloudfs file system
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Cloudfs.FileSystem("foo", new()
{
CacheCapacityTib = 10,
CachePlan = "T2",
FsName = "tffile",
Mode = "HDFS_MODE",
ReadOnly = true,
SecurityGroupId = "sg-rrv1klfg5s00v0x578mx14m",
SubnetId = "subnet-13fca1crr5d6o3n6nu46cyb5m",
TosBucket = "tfacc",
TosPrefix = "pre/",
VpcRouteEnabled = true,
ZoneId = "cn-beijing-b",
});
var foo1 = new Volcengine.Cloudfs.FileSystem("foo1", new()
{
CacheCapacityTib = 15,
CachePlan = "T2",
FsName = "tffileu",
Mode = "ACC_MODE",
ReadOnly = true,
SecurityGroupId = "sg-rrv1klfg5s00v0x578mx14m",
SubnetId = "subnet-13fca1crr5d6o3n6nu46cyb5m",
TosBucket = "tfacc",
VpcRouteEnabled = false,
ZoneId = "cn-beijing-b",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloudfs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfs.NewFileSystem(ctx, "foo", &cloudfs.FileSystemArgs{
CacheCapacityTib: pulumi.Int(10),
CachePlan: pulumi.String("T2"),
FsName: pulumi.String("tffile"),
Mode: pulumi.String("HDFS_MODE"),
ReadOnly: pulumi.Bool(true),
SecurityGroupId: pulumi.String("sg-rrv1klfg5s00v0x578mx14m"),
SubnetId: pulumi.String("subnet-13fca1crr5d6o3n6nu46cyb5m"),
TosBucket: pulumi.String("tfacc"),
TosPrefix: pulumi.String("pre/"),
VpcRouteEnabled: pulumi.Bool(true),
ZoneId: pulumi.String("cn-beijing-b"),
})
if err != nil {
return err
}
_, err = cloudfs.NewFileSystem(ctx, "foo1", &cloudfs.FileSystemArgs{
CacheCapacityTib: pulumi.Int(15),
CachePlan: pulumi.String("T2"),
FsName: pulumi.String("tffileu"),
Mode: pulumi.String("ACC_MODE"),
ReadOnly: pulumi.Bool(true),
SecurityGroupId: pulumi.String("sg-rrv1klfg5s00v0x578mx14m"),
SubnetId: pulumi.String("subnet-13fca1crr5d6o3n6nu46cyb5m"),
TosBucket: pulumi.String("tfacc"),
VpcRouteEnabled: pulumi.Bool(false),
ZoneId: pulumi.String("cn-beijing-b"),
})
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.cloudfs.FileSystem;
import com.pulumi.volcengine.cloudfs.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) {
var foo = new FileSystem("foo", FileSystemArgs.builder()
.cacheCapacityTib(10)
.cachePlan("T2")
.fsName("tffile")
.mode("HDFS_MODE")
.readOnly(true)
.securityGroupId("sg-rrv1klfg5s00v0x578mx14m")
.subnetId("subnet-13fca1crr5d6o3n6nu46cyb5m")
.tosBucket("tfacc")
.tosPrefix("pre/")
.vpcRouteEnabled(true)
.zoneId("cn-beijing-b")
.build());
var foo1 = new FileSystem("foo1", FileSystemArgs.builder()
.cacheCapacityTib(15)
.cachePlan("T2")
.fsName("tffileu")
.mode("ACC_MODE")
.readOnly(true)
.securityGroupId("sg-rrv1klfg5s00v0x578mx14m")
.subnetId("subnet-13fca1crr5d6o3n6nu46cyb5m")
.tosBucket("tfacc")
.vpcRouteEnabled(false)
.zoneId("cn-beijing-b")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloudfs.FileSystem("foo",
cache_capacity_tib=10,
cache_plan="T2",
fs_name="tffile",
mode="HDFS_MODE",
read_only=True,
security_group_id="sg-rrv1klfg5s00v0x578mx14m",
subnet_id="subnet-13fca1crr5d6o3n6nu46cyb5m",
tos_bucket="tfacc",
tos_prefix="pre/",
vpc_route_enabled=True,
zone_id="cn-beijing-b")
foo1 = volcengine.cloudfs.FileSystem("foo1",
cache_capacity_tib=15,
cache_plan="T2",
fs_name="tffileu",
mode="ACC_MODE",
read_only=True,
security_group_id="sg-rrv1klfg5s00v0x578mx14m",
subnet_id="subnet-13fca1crr5d6o3n6nu46cyb5m",
tos_bucket="tfacc",
vpc_route_enabled=False,
zone_id="cn-beijing-b")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.cloudfs.FileSystem("foo", {
cacheCapacityTib: 10,
cachePlan: "T2",
fsName: "tffile",
mode: "HDFS_MODE",
readOnly: true,
securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
tosBucket: "tfacc",
tosPrefix: "pre/",
vpcRouteEnabled: true,
zoneId: "cn-beijing-b",
});
const foo1 = new volcengine.cloudfs.FileSystem("foo1", {
cacheCapacityTib: 15,
cachePlan: "T2",
fsName: "tffileu",
mode: "ACC_MODE",
readOnly: true,
securityGroupId: "sg-rrv1klfg5s00v0x578mx14m",
subnetId: "subnet-13fca1crr5d6o3n6nu46cyb5m",
tosBucket: "tfacc",
vpcRouteEnabled: false,
zoneId: "cn-beijing-b",
});
resources:
foo:
type: volcengine:cloudfs:FileSystem
properties:
cacheCapacityTib: 10
cachePlan: T2
fsName: tffile
mode: HDFS_MODE
readOnly: true
securityGroupId: sg-rrv1klfg5s00v0x578mx14m
subnetId: subnet-13fca1crr5d6o3n6nu46cyb5m
tosBucket: tfacc
tosPrefix: pre/
vpcRouteEnabled: true
zoneId: cn-beijing-b
foo1:
type: volcengine:cloudfs:FileSystem
properties:
cacheCapacityTib: 15
cachePlan: T2
fsName: tffileu
mode: ACC_MODE
readOnly: true
securityGroupId: sg-rrv1klfg5s00v0x578mx14m
subnetId: subnet-13fca1crr5d6o3n6nu46cyb5m
tosBucket: tfacc
vpcRouteEnabled: false
zoneId: cn-beijing-b
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,
zone_id: Optional[str] = None,
cache_plan: Optional[str] = None,
fs_name: Optional[str] = None,
mode: Optional[str] = None,
subnet_id: Optional[str] = None,
security_group_id: Optional[str] = None,
cache_capacity_tib: Optional[int] = None,
tos_account_id: Optional[int] = None,
tos_ak: Optional[str] = None,
tos_bucket: Optional[str] = None,
tos_prefix: Optional[str] = None,
tos_sk: Optional[str] = None,
vpc_route_enabled: Optional[bool] = None,
read_only: Optional[bool] = 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:cloudfs: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 fileSystemResource = new Volcengine.Cloudfs.FileSystem("fileSystemResource", new()
{
ZoneId = "string",
CachePlan = "string",
FsName = "string",
Mode = "string",
SubnetId = "string",
SecurityGroupId = "string",
CacheCapacityTib = 0,
TosAccountId = 0,
TosAk = "string",
TosBucket = "string",
TosPrefix = "string",
TosSk = "string",
VpcRouteEnabled = false,
ReadOnly = false,
});
example, err := cloudfs.NewFileSystem(ctx, "fileSystemResource", &cloudfs.FileSystemArgs{
ZoneId: pulumi.String("string"),
CachePlan: pulumi.String("string"),
FsName: pulumi.String("string"),
Mode: pulumi.String("string"),
SubnetId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
CacheCapacityTib: pulumi.Int(0),
TosAccountId: pulumi.Int(0),
TosAk: pulumi.String("string"),
TosBucket: pulumi.String("string"),
TosPrefix: pulumi.String("string"),
TosSk: pulumi.String("string"),
VpcRouteEnabled: pulumi.Bool(false),
ReadOnly: pulumi.Bool(false),
})
var fileSystemResource = new FileSystem("fileSystemResource", FileSystemArgs.builder()
.zoneId("string")
.cachePlan("string")
.fsName("string")
.mode("string")
.subnetId("string")
.securityGroupId("string")
.cacheCapacityTib(0)
.tosAccountId(0)
.tosAk("string")
.tosBucket("string")
.tosPrefix("string")
.tosSk("string")
.vpcRouteEnabled(false)
.readOnly(false)
.build());
file_system_resource = volcengine.cloudfs.FileSystem("fileSystemResource",
zone_id="string",
cache_plan="string",
fs_name="string",
mode="string",
subnet_id="string",
security_group_id="string",
cache_capacity_tib=0,
tos_account_id=0,
tos_ak="string",
tos_bucket="string",
tos_prefix="string",
tos_sk="string",
vpc_route_enabled=False,
read_only=False)
const fileSystemResource = new volcengine.cloudfs.FileSystem("fileSystemResource", {
zoneId: "string",
cachePlan: "string",
fsName: "string",
mode: "string",
subnetId: "string",
securityGroupId: "string",
cacheCapacityTib: 0,
tosAccountId: 0,
tosAk: "string",
tosBucket: "string",
tosPrefix: "string",
tosSk: "string",
vpcRouteEnabled: false,
readOnly: false,
});
type: volcengine:cloudfs:FileSystem
properties:
cacheCapacityTib: 0
cachePlan: string
fsName: string
mode: string
readOnly: false
securityGroupId: string
subnetId: string
tosAccountId: 0
tosAk: string
tosBucket: string
tosPrefix: string
tosSk: string
vpcRouteEnabled: false
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:
- Cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - Fs
Name string - The name of file system.
- Mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - Zone
Id string - The id of zone.
- Cache
Capacity intTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- Read
Only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- Subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- Tos
Account intId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- Tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- Tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- Vpc
Route boolEnabled - Whether enable all vpc route.
- Cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - Fs
Name string - The name of file system.
- Mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - Zone
Id string - The id of zone.
- Cache
Capacity intTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- Read
Only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- Subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- Tos
Account intId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- Tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- Tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- Vpc
Route boolEnabled - Whether enable all vpc route.
- cache
Plan String - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - fs
Name String - The name of file system.
- mode String
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - zone
Id String - The id of zone.
- cache
Capacity IntegerTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- read
Only Boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group StringId - The id of security group. This parameter is required when cache acceleration is enabled.
- subnet
Id String - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account IntegerId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak String - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket String - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix String - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk String - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Route BooleanEnabled - Whether enable all vpc route.
- cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - fs
Name string - The name of file system.
- mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - zone
Id string - The id of zone.
- cache
Capacity numberTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- read
Only boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account numberId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Route booleanEnabled - Whether enable all vpc route.
- cache_
plan str - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - fs_
name str - The name of file system.
- mode str
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - zone_
id str - The id of zone.
- cache_
capacity_ inttib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- read_
only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security_
group_ strid - The id of security group. This parameter is required when cache acceleration is enabled.
- subnet_
id str - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos_
account_ intid - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos_
ak str - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos_
bucket str - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos_
prefix str - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos_
sk str - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc_
route_ boolenabled - Whether enable all vpc route.
- cache
Plan String - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - fs
Name String - The name of file system.
- mode String
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - zone
Id String - The id of zone.
- cache
Capacity NumberTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- read
Only Boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group StringId - The id of security group. This parameter is required when cache acceleration is enabled.
- subnet
Id String - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account NumberId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak String - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket String - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix String - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk String - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Route BooleanEnabled - Whether enable all vpc route.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
- Access
Id string - The default vpc access id.
- Created
Time string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mount
Point string - The point mount.
- Status string
- Status of file system.
- Vpc
Id string - The id of vpc.
- Access
Id string - The default vpc access id.
- Created
Time string - The creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mount
Point string - The point mount.
- Status string
- Status of file system.
- Vpc
Id string - The id of vpc.
- access
Id String - The default vpc access id.
- created
Time String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- mount
Point String - The point mount.
- status String
- Status of file system.
- vpc
Id String - The id of vpc.
- access
Id string - The default vpc access id.
- created
Time string - The creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- mount
Point string - The point mount.
- status string
- Status of file system.
- vpc
Id string - The id of vpc.
- access_
id str - The default vpc access id.
- created_
time str - The creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- mount_
point str - The point mount.
- status str
- Status of file system.
- vpc_
id str - The id of vpc.
- access
Id String - The default vpc access id.
- created
Time String - The creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- mount
Point String - The point mount.
- status String
- Status of file system.
- vpc
Id String - The id of vpc.
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,
access_id: Optional[str] = None,
cache_capacity_tib: Optional[int] = None,
cache_plan: Optional[str] = None,
created_time: Optional[str] = None,
fs_name: Optional[str] = None,
mode: Optional[str] = None,
mount_point: Optional[str] = None,
read_only: Optional[bool] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tos_account_id: Optional[int] = None,
tos_ak: Optional[str] = None,
tos_bucket: Optional[str] = None,
tos_prefix: Optional[str] = None,
tos_sk: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_route_enabled: Optional[bool] = None,
zone_id: 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.
- Access
Id string - The default vpc access id.
- Cache
Capacity intTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- Cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - Created
Time string - The creation time.
- Fs
Name string - The name of file system.
- Mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - Mount
Point string - The point mount.
- Read
Only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- Status string
- Status of file system.
- Subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- Tos
Account intId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- Tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- Tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- Vpc
Id string - The id of vpc.
- Vpc
Route boolEnabled - Whether enable all vpc route.
- Zone
Id string - The id of zone.
- Access
Id string - The default vpc access id.
- Cache
Capacity intTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- Cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - Created
Time string - The creation time.
- Fs
Name string - The name of file system.
- Mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - Mount
Point string - The point mount.
- Read
Only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- Security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- Status string
- Status of file system.
- Subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- Tos
Account intId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- Tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- Tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- Tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- Vpc
Id string - The id of vpc.
- Vpc
Route boolEnabled - Whether enable all vpc route.
- Zone
Id string - The id of zone.
- access
Id String - The default vpc access id.
- cache
Capacity IntegerTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- cache
Plan String - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - created
Time String - The creation time.
- fs
Name String - The name of file system.
- mode String
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - mount
Point String - The point mount.
- read
Only Boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group StringId - The id of security group. This parameter is required when cache acceleration is enabled.
- status String
- Status of file system.
- subnet
Id String - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account IntegerId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak String - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket String - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix String - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk String - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Id String - The id of vpc.
- vpc
Route BooleanEnabled - Whether enable all vpc route.
- zone
Id String - The id of zone.
- access
Id string - The default vpc access id.
- cache
Capacity numberTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- cache
Plan string - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - created
Time string - The creation time.
- fs
Name string - The name of file system.
- mode string
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - mount
Point string - The point mount.
- read
Only boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group stringId - The id of security group. This parameter is required when cache acceleration is enabled.
- status string
- Status of file system.
- subnet
Id string - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account numberId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak string - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket string - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix string - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk string - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Id string - The id of vpc.
- vpc
Route booleanEnabled - Whether enable all vpc route.
- zone
Id string - The id of zone.
- access_
id str - The default vpc access id.
- cache_
capacity_ inttib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- cache_
plan str - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - created_
time str - The creation time.
- fs_
name str - The name of file system.
- mode str
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - mount_
point str - The point mount.
- read_
only bool - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security_
group_ strid - The id of security group. This parameter is required when cache acceleration is enabled.
- status str
- Status of file system.
- subnet_
id str - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos_
account_ intid - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos_
ak str - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos_
bucket str - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos_
prefix str - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos_
sk str - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc_
id str - The id of vpc.
- vpc_
route_ boolenabled - Whether enable all vpc route.
- zone_
id str - The id of zone.
- access
Id String - The default vpc access id.
- cache
Capacity NumberTib - The capacity of cache. This parameter is required when cache acceleration is enabled.
- cache
Plan String - The cache plan. The value can be
DISABLED
orT2
orT4
. When expanding the cache size, the cache plan should remain the same. For data lakes, cache must be enabled. - created
Time String - The creation time.
- fs
Name String - The name of file system.
- mode String
- The mode of file system. The value can be
HDFS_MODE
orACC_MODE
. - mount
Point String - The point mount.
- read
Only Boolean - Whether the Namespace created automatically when mounting the TOS Bucket is read-only. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- security
Group StringId - The id of security group. This parameter is required when cache acceleration is enabled.
- status String
- Status of file system.
- subnet
Id String - The id of subnet. This parameter is required when cache acceleration is enabled.
- tos
Account NumberId - When a data lake scenario instance chooses to associate a bucket under another account, you need to set the ID of the account. When importing resources, this attribute will not be imported.
- tos
Ak String - The tos ak. When the data lake scenario chooses to associate buckets under other accounts, need to set the Access Key ID of the account. When importing resources, this attribute will not be imported.
- tos
Bucket String - The tos bucket. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Prefix String - The tos prefix. Must not start with /, but must end with /, such as prefix/. When it is empty, it means the root path. When importing ACC_MODE resources, this attribute will not be imported.
- tos
Sk String - The tos sk. When the data lake scenario chooses to associate buckets under other accounts, need to set the Secret Access Key of the account. When importing resources, this attribute will not be imported.
- vpc
Id String - The id of vpc.
- vpc
Route BooleanEnabled - Whether enable all vpc route.
- zone
Id String - The id of zone.
Import
CloudFileSystem can be imported using the FsName, e.g.
$ pulumi import volcengine:cloudfs/fileSystem:FileSystem default tfname
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.