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

tencentcloud.getVpc

Explore with Pulumi AI

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

    Provides details about a specific VPC.

    This resource can prove useful when a module accepts a vpc id as an input variable and needs to, for example, determine the CIDR block of that VPC.

    NOTE: It has been deprecated and replaced by tencentcloud_vpc_instances.

    Using getVpc

    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 getVpc(args: GetVpcArgs, opts?: InvokeOptions): Promise<GetVpcResult>
    function getVpcOutput(args: GetVpcOutputArgs, opts?: InvokeOptions): Output<GetVpcResult>
    def get_vpc(id: Optional[str] = None,
                name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVpcResult
    def get_vpc_output(id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetVpcResult]
    func LookupVpc(ctx *Context, args *LookupVpcArgs, opts ...InvokeOption) (*LookupVpcResult, error)
    func LookupVpcOutput(ctx *Context, args *LookupVpcOutputArgs, opts ...InvokeOption) LookupVpcResultOutput

    > Note: This function is named LookupVpc in the Go SDK.

    public static class GetVpc 
    {
        public static Task<GetVpcResult> InvokeAsync(GetVpcArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcResult> Invoke(GetVpcInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
    public static Output<GetVpcResult> getVpc(GetVpcArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getVpc:getVpc
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the specific VPC to retrieve.
    Name string
    The name of the specific VPC to retrieve.
    Id string
    The ID of the specific VPC to retrieve.
    Name string
    The name of the specific VPC to retrieve.
    id String
    The ID of the specific VPC to retrieve.
    name String
    The name of the specific VPC to retrieve.
    id string
    The ID of the specific VPC to retrieve.
    name string
    The name of the specific VPC to retrieve.
    id str
    The ID of the specific VPC to retrieve.
    name str
    The name of the specific VPC to retrieve.
    id String
    The ID of the specific VPC to retrieve.
    name String
    The name of the specific VPC to retrieve.

    getVpc Result

    The following output properties are available:

    CidrBlock string
    The CIDR block of the VPC.
    Id string
    IsDefault bool
    Whether or not the default VPC.
    IsMulticast bool
    Whether or not the VPC has Multicast support.
    Name string
    CidrBlock string
    The CIDR block of the VPC.
    Id string
    IsDefault bool
    Whether or not the default VPC.
    IsMulticast bool
    Whether or not the VPC has Multicast support.
    Name string
    cidrBlock String
    The CIDR block of the VPC.
    id String
    isDefault Boolean
    Whether or not the default VPC.
    isMulticast Boolean
    Whether or not the VPC has Multicast support.
    name String
    cidrBlock string
    The CIDR block of the VPC.
    id string
    isDefault boolean
    Whether or not the default VPC.
    isMulticast boolean
    Whether or not the VPC has Multicast support.
    name string
    cidr_block str
    The CIDR block of the VPC.
    id str
    is_default bool
    Whether or not the default VPC.
    is_multicast bool
    Whether or not the VPC has Multicast support.
    name str
    cidrBlock String
    The CIDR block of the VPC.
    id String
    isDefault Boolean
    Whether or not the default VPC.
    isMulticast Boolean
    Whether or not the VPC has Multicast support.
    name String

    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