tencentcloud.CfsUserQuota
Explore with Pulumi AI
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:
- File
System stringId - File system ID.
- User
Id string - Info of UID/GID.
- User
Type string - Quota type. Valid value:
Uid
,Gid
. - Capacity
Hard doubleLimit - Capacity Limit(GB).
- Cfs
User stringQuota Id - ID of the resource.
- File
Hard doubleLimit - File limit.
- File
System stringId - File system ID.
- User
Id string - Info of UID/GID.
- User
Type string - Quota type. Valid value:
Uid
,Gid
. - Capacity
Hard float64Limit - Capacity Limit(GB).
- Cfs
User stringQuota Id - ID of the resource.
- File
Hard float64Limit - File limit.
- file
System StringId - File system ID.
- user
Id String - Info of UID/GID.
- user
Type String - Quota type. Valid value:
Uid
,Gid
. - capacity
Hard DoubleLimit - Capacity Limit(GB).
- cfs
User StringQuota Id - ID of the resource.
- file
Hard DoubleLimit - File limit.
- file
System stringId - File system ID.
- user
Id string - Info of UID/GID.
- user
Type string - Quota type. Valid value:
Uid
,Gid
. - capacity
Hard numberLimit - Capacity Limit(GB).
- cfs
User stringQuota Id - ID of the resource.
- file
Hard numberLimit - File limit.
- file_
system_ strid - File system ID.
- user_
id str - Info of UID/GID.
- user_
type str - Quota type. Valid value:
Uid
,Gid
. - capacity_
hard_ floatlimit - Capacity Limit(GB).
- cfs_
user_ strquota_ id - ID of the resource.
- file_
hard_ floatlimit - File limit.
- file
System StringId - File system ID.
- user
Id String - Info of UID/GID.
- user
Type String - Quota type. Valid value:
Uid
,Gid
. - capacity
Hard NumberLimit - Capacity Limit(GB).
- cfs
User StringQuota Id - ID of the resource.
- file
Hard NumberLimit - 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.
- Capacity
Hard doubleLimit - Capacity Limit(GB).
- Cfs
User stringQuota Id - ID of the resource.
- File
Hard doubleLimit - File limit.
- File
System stringId - File system ID.
- User
Id string - Info of UID/GID.
- User
Type string - Quota type. Valid value:
Uid
,Gid
.
- Capacity
Hard float64Limit - Capacity Limit(GB).
- Cfs
User stringQuota Id - ID of the resource.
- File
Hard float64Limit - File limit.
- File
System stringId - File system ID.
- User
Id string - Info of UID/GID.
- User
Type string - Quota type. Valid value:
Uid
,Gid
.
- capacity
Hard DoubleLimit - Capacity Limit(GB).
- cfs
User StringQuota Id - ID of the resource.
- file
Hard DoubleLimit - File limit.
- file
System StringId - File system ID.
- user
Id String - Info of UID/GID.
- user
Type String - Quota type. Valid value:
Uid
,Gid
.
- capacity
Hard numberLimit - Capacity Limit(GB).
- cfs
User stringQuota Id - ID of the resource.
- file
Hard numberLimit - File limit.
- file
System stringId - File system ID.
- user
Id string - Info of UID/GID.
- user
Type string - Quota type. Valid value:
Uid
,Gid
.
- capacity_
hard_ floatlimit - Capacity Limit(GB).
- cfs_
user_ strquota_ id - ID of the resource.
- file_
hard_ floatlimit - File limit.
- file_
system_ strid - File system ID.
- user_
id str - Info of UID/GID.
- user_
type str - Quota type. Valid value:
Uid
,Gid
.
- capacity
Hard NumberLimit - Capacity Limit(GB).
- cfs
User StringQuota Id - ID of the resource.
- file
Hard NumberLimit - File limit.
- file
System StringId - File system ID.
- user
Id String - Info of UID/GID.
- user
Type 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.