1. Packages
  2. Volcengine
  3. API Docs
  4. cloudfs
  5. NsQuotas
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cloudfs.NsQuotas

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of cloudfs ns quotas

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Cloudfs.NsQuotas.Invoke(new()
        {
            FsNames = new[]
            {
                "tffile",
                "tftest2",
            },
        });
    
    });
    
    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.NsQuotas(ctx, &cloudfs.NsQuotasArgs{
    			FsNames: []string{
    				"tffile",
    				"tftest2",
    			},
    		}, nil)
    		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.CloudfsFunctions;
    import com.pulumi.volcengine.cloudfs.inputs.NsQuotasArgs;
    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 default = CloudfsFunctions.NsQuotas(NsQuotasArgs.builder()
                .fsNames(            
                    "tffile",
                    "tftest2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.cloudfs.ns_quotas(fs_names=[
        "tffile",
        "tftest2",
    ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.cloudfs.NsQuotas({
        fsNames: [
            "tffile",
            "tftest2",
        ],
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:cloudfs:NsQuotas
          Arguments:
            fsNames:
              - tffile
              - tftest2
    

    Using NsQuotas

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function nsQuotas(args: NsQuotasArgs, opts?: InvokeOptions): Promise<NsQuotasResult>
    function nsQuotasOutput(args: NsQuotasOutputArgs, opts?: InvokeOptions): Output<NsQuotasResult>
    def ns_quotas(fs_names: Optional[Sequence[str]] = None,
                  output_file: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> NsQuotasResult
    def ns_quotas_output(fs_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[NsQuotasResult]
    func NsQuotas(ctx *Context, args *NsQuotasArgs, opts ...InvokeOption) (*NsQuotasResult, error)
    func NsQuotasOutput(ctx *Context, args *NsQuotasOutputArgs, opts ...InvokeOption) NsQuotasResultOutput
    public static class NsQuotas 
    {
        public static Task<NsQuotasResult> InvokeAsync(NsQuotasArgs args, InvokeOptions? opts = null)
        public static Output<NsQuotasResult> Invoke(NsQuotasInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<NsQuotasResult> nsQuotas(NsQuotasArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cloudfs:NsQuotas
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FsNames List<string>
    A list of fs name.
    OutputFile string
    File name where to save data source results.
    FsNames []string
    A list of fs name.
    OutputFile string
    File name where to save data source results.
    fsNames List<String>
    A list of fs name.
    outputFile String
    File name where to save data source results.
    fsNames string[]
    A list of fs name.
    outputFile string
    File name where to save data source results.
    fs_names Sequence[str]
    A list of fs name.
    output_file str
    File name where to save data source results.
    fsNames List<String>
    A list of fs name.
    outputFile String
    File name where to save data source results.

    NsQuotas Result

    The following output properties are available:

    FsNames List<string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Quotas List<NsQuotasQuota>
    The collection of query.
    TotalCount int
    The total count of cloud fs quota query.
    OutputFile string
    FsNames []string
    Id string
    The provider-assigned unique ID for this managed resource.
    Quotas []NsQuotasQuota
    The collection of query.
    TotalCount int
    The total count of cloud fs quota query.
    OutputFile string
    fsNames List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    quotas List<NsQuotasQuota>
    The collection of query.
    totalCount Integer
    The total count of cloud fs quota query.
    outputFile String
    fsNames string[]
    id string
    The provider-assigned unique ID for this managed resource.
    quotas NsQuotasQuota[]
    The collection of query.
    totalCount number
    The total count of cloud fs quota query.
    outputFile string
    fs_names Sequence[str]
    id str
    The provider-assigned unique ID for this managed resource.
    quotas Sequence[NsQuotasQuota]
    The collection of query.
    total_count int
    The total count of cloud fs quota query.
    output_file str
    fsNames List<String>
    id String
    The provider-assigned unique ID for this managed resource.
    quotas List<Property Map>
    The collection of query.
    totalCount Number
    The total count of cloud fs quota query.
    outputFile String

    Supporting Types

    NsQuotasQuota

    AccountId int
    The ID of account.
    FsName string
    The name of fs.
    NsCount int
    The count of cloud fs namespace.
    NsCountPerFs int
    This file stores the number of namespaces under the instance.
    NsQuota int
    The quota of cloud fs namespace.
    NsQuotaPerFs int
    This file stores the total namespace quota under the instance.
    QuotaEnough bool
    Whether is enough of cloud fs namespace.
    AccountId int
    The ID of account.
    FsName string
    The name of fs.
    NsCount int
    The count of cloud fs namespace.
    NsCountPerFs int
    This file stores the number of namespaces under the instance.
    NsQuota int
    The quota of cloud fs namespace.
    NsQuotaPerFs int
    This file stores the total namespace quota under the instance.
    QuotaEnough bool
    Whether is enough of cloud fs namespace.
    accountId Integer
    The ID of account.
    fsName String
    The name of fs.
    nsCount Integer
    The count of cloud fs namespace.
    nsCountPerFs Integer
    This file stores the number of namespaces under the instance.
    nsQuota Integer
    The quota of cloud fs namespace.
    nsQuotaPerFs Integer
    This file stores the total namespace quota under the instance.
    quotaEnough Boolean
    Whether is enough of cloud fs namespace.
    accountId number
    The ID of account.
    fsName string
    The name of fs.
    nsCount number
    The count of cloud fs namespace.
    nsCountPerFs number
    This file stores the number of namespaces under the instance.
    nsQuota number
    The quota of cloud fs namespace.
    nsQuotaPerFs number
    This file stores the total namespace quota under the instance.
    quotaEnough boolean
    Whether is enough of cloud fs namespace.
    account_id int
    The ID of account.
    fs_name str
    The name of fs.
    ns_count int
    The count of cloud fs namespace.
    ns_count_per_fs int
    This file stores the number of namespaces under the instance.
    ns_quota int
    The quota of cloud fs namespace.
    ns_quota_per_fs int
    This file stores the total namespace quota under the instance.
    quota_enough bool
    Whether is enough of cloud fs namespace.
    accountId Number
    The ID of account.
    fsName String
    The name of fs.
    nsCount Number
    The count of cloud fs namespace.
    nsCountPerFs Number
    This file stores the number of namespaces under the instance.
    nsQuota Number
    The quota of cloud fs namespace.
    nsQuotaPerFs Number
    This file stores the total namespace quota under the instance.
    quotaEnough Boolean
    Whether is enough of cloud fs namespace.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine