tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getVpc
Explore with Pulumi AI
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:
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
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack