1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CfsUserQuota
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CfsUserQuota

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a cfs user_quota

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const userQuota = new tencentcloud.CfsUserQuota("userQuota", {
        capacityHardLimit: 10,
        fileHardLimit: 10000,
        fileSystemId: "cfs-4636029bc",
        userId: "2159973417",
        userType: "Uid",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    user_quota = tencentcloud.CfsUserQuota("userQuota",
        capacity_hard_limit=10,
        file_hard_limit=10000,
        file_system_id="cfs-4636029bc",
        user_id="2159973417",
        user_type="Uid")
    
    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.NewCfsUserQuota(ctx, "userQuota", &tencentcloud.CfsUserQuotaArgs{
    			CapacityHardLimit: pulumi.Float64(10),
    			FileHardLimit:     pulumi.Float64(10000),
    			FileSystemId:      pulumi.String("cfs-4636029bc"),
    			UserId:            pulumi.String("2159973417"),
    			UserType:          pulumi.String("Uid"),
    		})
    		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 userQuota = new Tencentcloud.CfsUserQuota("userQuota", new()
        {
            CapacityHardLimit = 10,
            FileHardLimit = 10000,
            FileSystemId = "cfs-4636029bc",
            UserId = "2159973417",
            UserType = "Uid",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CfsUserQuota;
    import com.pulumi.tencentcloud.CfsUserQuotaArgs;
    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 userQuota = new CfsUserQuota("userQuota", CfsUserQuotaArgs.builder()
                .capacityHardLimit(10)
                .fileHardLimit(10000)
                .fileSystemId("cfs-4636029bc")
                .userId("2159973417")
                .userType("Uid")
                .build());
    
        }
    }
    
    resources:
      userQuota:
        type: tencentcloud:CfsUserQuota
        properties:
          capacityHardLimit: 10
          fileHardLimit: 10000
          fileSystemId: cfs-4636029bc
          userId: '2159973417'
          userType: Uid
    

    Create CfsUserQuota Resource

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

    Constructor syntax

    new CfsUserQuota(name: string, args: CfsUserQuotaArgs, opts?: CustomResourceOptions);
    @overload
    def CfsUserQuota(resource_name: str,
                     args: CfsUserQuotaArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def CfsUserQuota(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     file_system_id: Optional[str] = None,
                     user_id: Optional[str] = None,
                     user_type: Optional[str] = None,
                     capacity_hard_limit: Optional[float] = None,
                     cfs_user_quota_id: Optional[str] = None,
                     file_hard_limit: Optional[float] = None)
    func NewCfsUserQuota(ctx *Context, name string, args CfsUserQuotaArgs, opts ...ResourceOption) (*CfsUserQuota, error)
    public CfsUserQuota(string name, CfsUserQuotaArgs args, CustomResourceOptions? opts = null)
    public CfsUserQuota(String name, CfsUserQuotaArgs args)
    public CfsUserQuota(String name, CfsUserQuotaArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CfsUserQuota
    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 CfsUserQuotaArgs
    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 CfsUserQuotaArgs
    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 CfsUserQuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CfsUserQuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CfsUserQuotaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    FileSystemId string
    File system ID.
    UserId string
    Info of UID/GID.
    UserType string
    Quota type. Valid value: Uid, Gid.
    CapacityHardLimit double
    Capacity Limit(GB).
    CfsUserQuotaId string
    ID of the resource.
    FileHardLimit double
    File limit.
    FileSystemId string
    File system ID.
    UserId string
    Info of UID/GID.
    UserType string
    Quota type. Valid value: Uid, Gid.
    CapacityHardLimit float64
    Capacity Limit(GB).
    CfsUserQuotaId string
    ID of the resource.
    FileHardLimit float64
    File limit.
    fileSystemId String
    File system ID.
    userId String
    Info of UID/GID.
    userType String
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit Double
    Capacity Limit(GB).
    cfsUserQuotaId String
    ID of the resource.
    fileHardLimit Double
    File limit.
    fileSystemId string
    File system ID.
    userId string
    Info of UID/GID.
    userType string
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit number
    Capacity Limit(GB).
    cfsUserQuotaId string
    ID of the resource.
    fileHardLimit number
    File limit.
    file_system_id str
    File system ID.
    user_id str
    Info of UID/GID.
    user_type str
    Quota type. Valid value: Uid, Gid.
    capacity_hard_limit float
    Capacity Limit(GB).
    cfs_user_quota_id str
    ID of the resource.
    file_hard_limit float
    File limit.
    fileSystemId String
    File system ID.
    userId String
    Info of UID/GID.
    userType String
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit Number
    Capacity Limit(GB).
    cfsUserQuotaId String
    ID of the resource.
    fileHardLimit Number
    File limit.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CfsUserQuota 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 CfsUserQuota Resource

    Get an existing CfsUserQuota 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?: CfsUserQuotaState, opts?: CustomResourceOptions): CfsUserQuota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            capacity_hard_limit: Optional[float] = None,
            cfs_user_quota_id: Optional[str] = None,
            file_hard_limit: Optional[float] = None,
            file_system_id: Optional[str] = None,
            user_id: Optional[str] = None,
            user_type: Optional[str] = None) -> CfsUserQuota
    func GetCfsUserQuota(ctx *Context, name string, id IDInput, state *CfsUserQuotaState, opts ...ResourceOption) (*CfsUserQuota, error)
    public static CfsUserQuota Get(string name, Input<string> id, CfsUserQuotaState? state, CustomResourceOptions? opts = null)
    public static CfsUserQuota get(String name, Output<String> id, CfsUserQuotaState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CfsUserQuota    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:
    CapacityHardLimit double
    Capacity Limit(GB).
    CfsUserQuotaId string
    ID of the resource.
    FileHardLimit double
    File limit.
    FileSystemId string
    File system ID.
    UserId string
    Info of UID/GID.
    UserType string
    Quota type. Valid value: Uid, Gid.
    CapacityHardLimit float64
    Capacity Limit(GB).
    CfsUserQuotaId string
    ID of the resource.
    FileHardLimit float64
    File limit.
    FileSystemId string
    File system ID.
    UserId string
    Info of UID/GID.
    UserType string
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit Double
    Capacity Limit(GB).
    cfsUserQuotaId String
    ID of the resource.
    fileHardLimit Double
    File limit.
    fileSystemId String
    File system ID.
    userId String
    Info of UID/GID.
    userType String
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit number
    Capacity Limit(GB).
    cfsUserQuotaId string
    ID of the resource.
    fileHardLimit number
    File limit.
    fileSystemId string
    File system ID.
    userId string
    Info of UID/GID.
    userType string
    Quota type. Valid value: Uid, Gid.
    capacity_hard_limit float
    Capacity Limit(GB).
    cfs_user_quota_id str
    ID of the resource.
    file_hard_limit float
    File limit.
    file_system_id str
    File system ID.
    user_id str
    Info of UID/GID.
    user_type str
    Quota type. Valid value: Uid, Gid.
    capacityHardLimit Number
    Capacity Limit(GB).
    cfsUserQuotaId String
    ID of the resource.
    fileHardLimit Number
    File limit.
    fileSystemId String
    File system ID.
    userId String
    Info of UID/GID.
    userType String
    Quota type. Valid value: Uid, Gid.

    Import

    cfs user_quota can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cfsUserQuota:CfsUserQuota user_quota user_quota_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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack