tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getVpcLimits
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of vpc limits
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const limits = tencentcloud.getVpcLimits({
limitTypes: [
"appid-max-vpcs",
"vpc-max-subnets",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
limits = tencentcloud.get_vpc_limits(limit_types=[
"appid-max-vpcs",
"vpc-max-subnets",
])
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.GetVpcLimits(ctx, &tencentcloud.GetVpcLimitsArgs{
LimitTypes: []string{
"appid-max-vpcs",
"vpc-max-subnets",
},
}, nil)
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 limits = Tencentcloud.GetVpcLimits.Invoke(new()
{
LimitTypes = new[]
{
"appid-max-vpcs",
"vpc-max-subnets",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetVpcLimitsArgs;
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 limits = TencentcloudFunctions.getVpcLimits(GetVpcLimitsArgs.builder()
.limitTypes(
"appid-max-vpcs",
"vpc-max-subnets")
.build());
}
}
variables:
limits:
fn::invoke:
function: tencentcloud:getVpcLimits
arguments:
limitTypes:
- appid-max-vpcs
- vpc-max-subnets
Using getVpcLimits
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 getVpcLimits(args: GetVpcLimitsArgs, opts?: InvokeOptions): Promise<GetVpcLimitsResult>
function getVpcLimitsOutput(args: GetVpcLimitsOutputArgs, opts?: InvokeOptions): Output<GetVpcLimitsResult>
def get_vpc_limits(id: Optional[str] = None,
limit_types: Optional[Sequence[str]] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcLimitsResult
def get_vpc_limits_output(id: Optional[pulumi.Input[str]] = None,
limit_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcLimitsResult]
func GetVpcLimits(ctx *Context, args *GetVpcLimitsArgs, opts ...InvokeOption) (*GetVpcLimitsResult, error)
func GetVpcLimitsOutput(ctx *Context, args *GetVpcLimitsOutputArgs, opts ...InvokeOption) GetVpcLimitsResultOutput
> Note: This function is named GetVpcLimits
in the Go SDK.
public static class GetVpcLimits
{
public static Task<GetVpcLimitsResult> InvokeAsync(GetVpcLimitsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcLimitsResult> Invoke(GetVpcLimitsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcLimitsResult> getVpcLimits(GetVpcLimitsArgs args, InvokeOptions options)
public static Output<GetVpcLimitsResult> getVpcLimits(GetVpcLimitsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getVpcLimits:getVpcLimits
arguments:
# arguments dictionary
The following arguments are supported:
- Limit
Types List<string> - Quota name. A maximum of 100 quota types can be queried each time.
- Id string
- Result
Output stringFile - Used to save results.
- Limit
Types []string - Quota name. A maximum of 100 quota types can be queried each time.
- Id string
- Result
Output stringFile - Used to save results.
- limit
Types List<String> - Quota name. A maximum of 100 quota types can be queried each time.
- id String
- result
Output StringFile - Used to save results.
- limit
Types string[] - Quota name. A maximum of 100 quota types can be queried each time.
- id string
- result
Output stringFile - Used to save results.
- limit_
types Sequence[str] - Quota name. A maximum of 100 quota types can be queried each time.
- id str
- result_
output_ strfile - Used to save results.
- limit
Types List<String> - Quota name. A maximum of 100 quota types can be queried each time.
- id String
- result
Output StringFile - Used to save results.
getVpcLimits Result
The following output properties are available:
- Id string
- Limit
Types List<string> - Vpc
Limit List<GetSets Vpc Limits Vpc Limit Set> - vpc limit.
- Result
Output stringFile
- Id string
- Limit
Types []string - Vpc
Limit []GetSets Vpc Limits Vpc Limit Set - vpc limit.
- Result
Output stringFile
- id String
- limit
Types List<String> - vpc
Limit List<GetSets Vpc Limits Vpc Limit Set> - vpc limit.
- result
Output StringFile
- id string
- limit
Types string[] - vpc
Limit GetSets Vpc Limits Vpc Limit Set[] - vpc limit.
- result
Output stringFile
- id str
- limit_
types Sequence[str] - vpc_
limit_ Sequence[Getsets Vpc Limits Vpc Limit Set] - vpc limit.
- result_
output_ strfile
- id String
- limit
Types List<String> - vpc
Limit List<Property Map>Sets - vpc limit.
- result
Output StringFile
Supporting Types
GetVpcLimitsVpcLimitSet
- Limit
Type string - type of vpc limit.
- Limit
Value double - value of vpc limit.
- Limit
Type string - type of vpc limit.
- Limit
Value float64 - value of vpc limit.
- limit
Type String - type of vpc limit.
- limit
Value Double - value of vpc limit.
- limit
Type string - type of vpc limit.
- limit
Value number - value of vpc limit.
- limit_
type str - type of vpc limit.
- limit_
value float - value of vpc limit.
- limit
Type String - type of vpc limit.
- limit
Value Number - value of vpc limit.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack