1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ChdfsFileSystem
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.ChdfsFileSystem

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Provides a resource to create a chdfs file_system

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fileSystem = new tencentcloud.ChdfsFileSystem("fileSystem", {
        capacityQuota: 10995116277760,
        description: "file system for terraform test",
        enableRanger: true,
        fileSystemName: "terraform-test",
        posixAcl: false,
        rangerServiceAddresses: [
            "127.0.0.1:80",
            "127.0.0.1:8000",
        ],
        superUsers: [
            "terraform",
            "iac",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    file_system = tencentcloud.ChdfsFileSystem("fileSystem",
        capacity_quota=10995116277760,
        description="file system for terraform test",
        enable_ranger=True,
        file_system_name="terraform-test",
        posix_acl=False,
        ranger_service_addresses=[
            "127.0.0.1:80",
            "127.0.0.1:8000",
        ],
        super_users=[
            "terraform",
            "iac",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewChdfsFileSystem(ctx, "fileSystem", &tencentcloud.ChdfsFileSystemArgs{
    			CapacityQuota:  pulumi.Float64(10995116277760),
    			Description:    pulumi.String("file system for terraform test"),
    			EnableRanger:   pulumi.Bool(true),
    			FileSystemName: pulumi.String("terraform-test"),
    			PosixAcl:       pulumi.Bool(false),
    			RangerServiceAddresses: pulumi.StringArray{
    				pulumi.String("127.0.0.1:80"),
    				pulumi.String("127.0.0.1:8000"),
    			},
    			SuperUsers: pulumi.StringArray{
    				pulumi.String("terraform"),
    				pulumi.String("iac"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fileSystem = new Tencentcloud.ChdfsFileSystem("fileSystem", new()
        {
            CapacityQuota = 10995116277760,
            Description = "file system for terraform test",
            EnableRanger = true,
            FileSystemName = "terraform-test",
            PosixAcl = false,
            RangerServiceAddresses = new[]
            {
                "127.0.0.1:80",
                "127.0.0.1:8000",
            },
            SuperUsers = new[]
            {
                "terraform",
                "iac",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ChdfsFileSystem;
    import com.pulumi.tencentcloud.ChdfsFileSystemArgs;
    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 fileSystem = new ChdfsFileSystem("fileSystem", ChdfsFileSystemArgs.builder()
                .capacityQuota(10995116277760)
                .description("file system for terraform test")
                .enableRanger(true)
                .fileSystemName("terraform-test")
                .posixAcl(false)
                .rangerServiceAddresses(            
                    "127.0.0.1:80",
                    "127.0.0.1:8000")
                .superUsers(            
                    "terraform",
                    "iac")
                .build());
    
        }
    }
    
    resources:
      fileSystem:
        type: tencentcloud:ChdfsFileSystem
        properties:
          capacityQuota: 1.099511627776e+13
          description: file system for terraform test
          enableRanger: true
          fileSystemName: terraform-test
          posixAcl: false
          rangerServiceAddresses:
            - 127.0.0.1:80
            - 127.0.0.1:8000
          superUsers:
            - terraform
            - iac
    

    Create ChdfsFileSystem Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ChdfsFileSystem(name: string, args: ChdfsFileSystemArgs, opts?: CustomResourceOptions);
    @overload
    def ChdfsFileSystem(resource_name: str,
                        args: ChdfsFileSystemArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ChdfsFileSystem(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        capacity_quota: Optional[float] = None,
                        file_system_name: Optional[str] = None,
                        posix_acl: Optional[bool] = None,
                        chdfs_file_system_id: Optional[str] = None,
                        description: Optional[str] = None,
                        enable_ranger: Optional[bool] = None,
                        ranger_service_addresses: Optional[Sequence[str]] = None,
                        super_users: Optional[Sequence[str]] = None)
    func NewChdfsFileSystem(ctx *Context, name string, args ChdfsFileSystemArgs, opts ...ResourceOption) (*ChdfsFileSystem, error)
    public ChdfsFileSystem(string name, ChdfsFileSystemArgs args, CustomResourceOptions? opts = null)
    public ChdfsFileSystem(String name, ChdfsFileSystemArgs args)
    public ChdfsFileSystem(String name, ChdfsFileSystemArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ChdfsFileSystem
    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 ChdfsFileSystemArgs
    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 ChdfsFileSystemArgs
    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 ChdfsFileSystemArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ChdfsFileSystemArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ChdfsFileSystemArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ChdfsFileSystem 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 ChdfsFileSystem resource accepts the following input properties:

    CapacityQuota double
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    FileSystemName string
    file system name.
    PosixAcl bool
    check POSIX ACL or not.
    ChdfsFileSystemId string
    ID of the resource.
    Description string
    desc of the file system.
    EnableRanger bool
    check the ranger address or not.
    RangerServiceAddresses List<string>
    ranger address list, default empty.
    SuperUsers List<string>
    super users of the file system, default empty.
    CapacityQuota float64
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    FileSystemName string
    file system name.
    PosixAcl bool
    check POSIX ACL or not.
    ChdfsFileSystemId string
    ID of the resource.
    Description string
    desc of the file system.
    EnableRanger bool
    check the ranger address or not.
    RangerServiceAddresses []string
    ranger address list, default empty.
    SuperUsers []string
    super users of the file system, default empty.
    capacityQuota Double
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    fileSystemName String
    file system name.
    posixAcl Boolean
    check POSIX ACL or not.
    chdfsFileSystemId String
    ID of the resource.
    description String
    desc of the file system.
    enableRanger Boolean
    check the ranger address or not.
    rangerServiceAddresses List<String>
    ranger address list, default empty.
    superUsers List<String>
    super users of the file system, default empty.
    capacityQuota number
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    fileSystemName string
    file system name.
    posixAcl boolean
    check POSIX ACL or not.
    chdfsFileSystemId string
    ID of the resource.
    description string
    desc of the file system.
    enableRanger boolean
    check the ranger address or not.
    rangerServiceAddresses string[]
    ranger address list, default empty.
    superUsers string[]
    super users of the file system, default empty.
    capacity_quota float
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    file_system_name str
    file system name.
    posix_acl bool
    check POSIX ACL or not.
    chdfs_file_system_id str
    ID of the resource.
    description str
    desc of the file system.
    enable_ranger bool
    check the ranger address or not.
    ranger_service_addresses Sequence[str]
    ranger address list, default empty.
    super_users Sequence[str]
    super users of the file system, default empty.
    capacityQuota Number
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    fileSystemName String
    file system name.
    posixAcl Boolean
    check POSIX ACL or not.
    chdfsFileSystemId String
    ID of the resource.
    description String
    desc of the file system.
    enableRanger Boolean
    check the ranger address or not.
    rangerServiceAddresses List<String>
    ranger address list, default empty.
    superUsers List<String>
    super users of the file system, default empty.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ChdfsFileSystem resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ChdfsFileSystem Resource

    Get an existing ChdfsFileSystem 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?: ChdfsFileSystemState, opts?: CustomResourceOptions): ChdfsFileSystem
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity_quota: Optional[float] = None,
            chdfs_file_system_id: Optional[str] = None,
            description: Optional[str] = None,
            enable_ranger: Optional[bool] = None,
            file_system_name: Optional[str] = None,
            posix_acl: Optional[bool] = None,
            ranger_service_addresses: Optional[Sequence[str]] = None,
            super_users: Optional[Sequence[str]] = None) -> ChdfsFileSystem
    func GetChdfsFileSystem(ctx *Context, name string, id IDInput, state *ChdfsFileSystemState, opts ...ResourceOption) (*ChdfsFileSystem, error)
    public static ChdfsFileSystem Get(string name, Input<string> id, ChdfsFileSystemState? state, CustomResourceOptions? opts = null)
    public static ChdfsFileSystem get(String name, Output<String> id, ChdfsFileSystemState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ChdfsFileSystem    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.
    The following state arguments are supported:
    CapacityQuota double
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    ChdfsFileSystemId string
    ID of the resource.
    Description string
    desc of the file system.
    EnableRanger bool
    check the ranger address or not.
    FileSystemName string
    file system name.
    PosixAcl bool
    check POSIX ACL or not.
    RangerServiceAddresses List<string>
    ranger address list, default empty.
    SuperUsers List<string>
    super users of the file system, default empty.
    CapacityQuota float64
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    ChdfsFileSystemId string
    ID of the resource.
    Description string
    desc of the file system.
    EnableRanger bool
    check the ranger address or not.
    FileSystemName string
    file system name.
    PosixAcl bool
    check POSIX ACL or not.
    RangerServiceAddresses []string
    ranger address list, default empty.
    SuperUsers []string
    super users of the file system, default empty.
    capacityQuota Double
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    chdfsFileSystemId String
    ID of the resource.
    description String
    desc of the file system.
    enableRanger Boolean
    check the ranger address or not.
    fileSystemName String
    file system name.
    posixAcl Boolean
    check POSIX ACL or not.
    rangerServiceAddresses List<String>
    ranger address list, default empty.
    superUsers List<String>
    super users of the file system, default empty.
    capacityQuota number
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    chdfsFileSystemId string
    ID of the resource.
    description string
    desc of the file system.
    enableRanger boolean
    check the ranger address or not.
    fileSystemName string
    file system name.
    posixAcl boolean
    check POSIX ACL or not.
    rangerServiceAddresses string[]
    ranger address list, default empty.
    superUsers string[]
    super users of the file system, default empty.
    capacity_quota float
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    chdfs_file_system_id str
    ID of the resource.
    description str
    desc of the file system.
    enable_ranger bool
    check the ranger address or not.
    file_system_name str
    file system name.
    posix_acl bool
    check POSIX ACL or not.
    ranger_service_addresses Sequence[str]
    ranger address list, default empty.
    super_users Sequence[str]
    super users of the file system, default empty.
    capacityQuota Number
    file system capacity. min 1GB, max 1PB, CapacityQuota is N * 1073741824.
    chdfsFileSystemId String
    ID of the resource.
    description String
    desc of the file system.
    enableRanger Boolean
    check the ranger address or not.
    fileSystemName String
    file system name.
    posixAcl Boolean
    check POSIX ACL or not.
    rangerServiceAddresses List<String>
    ranger address list, default empty.
    superUsers List<String>
    super users of the file system, default empty.

    Import

    chdfs file_system can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/chdfsFileSystem:ChdfsFileSystem file_system file_system_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack