Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 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 dictionaryThe following arguments are supported:
getVpc Result
The following output properties are available:
- Cidr
Block string - The CIDR block of the VPC.
- Id string
- Is
Default bool - Whether or not the default VPC.
- Is
Multicast bool - Whether or not the VPC has Multicast support.
- Name string
- Cidr
Block string - The CIDR block of the VPC.
- Id string
- Is
Default bool - Whether or not the default VPC.
- Is
Multicast bool - Whether or not the VPC has Multicast support.
- Name string
- cidr
Block String - The CIDR block of the VPC.
- id String
- is
Default Boolean - Whether or not the default VPC.
- is
Multicast Boolean - Whether or not the VPC has Multicast support.
- name String
- cidr
Block string - The CIDR block of the VPC.
- id string
- is
Default boolean - Whether or not the default VPC.
- is
Multicast 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
- cidr
Block String - The CIDR block of the VPC.
- id String
- is
Default Boolean - Whether or not the default VPC.
- is
Multicast 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
tencentcloudTerraform Provider.
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
published on Friday, Mar 6, 2026 by tencentcloudstack
