tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getTcrVpcAttachments
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of TCR VPC attachment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const id = tencentcloud.getTcrVpcAttachments({
    instanceId: "cls-satg5125",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
id = tencentcloud.get_tcr_vpc_attachments(instance_id="cls-satg5125")
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.GetTcrVpcAttachments(ctx, &tencentcloud.GetTcrVpcAttachmentsArgs{
			InstanceId: "cls-satg5125",
		}, 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 id = Tencentcloud.GetTcrVpcAttachments.Invoke(new()
    {
        InstanceId = "cls-satg5125",
    });
});
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.GetTcrVpcAttachmentsArgs;
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 id = TencentcloudFunctions.getTcrVpcAttachments(GetTcrVpcAttachmentsArgs.builder()
            .instanceId("cls-satg5125")
            .build());
    }
}
variables:
  id:
    fn::invoke:
      function: tencentcloud:getTcrVpcAttachments
      arguments:
        instanceId: cls-satg5125
Using getTcrVpcAttachments
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 getTcrVpcAttachments(args: GetTcrVpcAttachmentsArgs, opts?: InvokeOptions): Promise<GetTcrVpcAttachmentsResult>
function getTcrVpcAttachmentsOutput(args: GetTcrVpcAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetTcrVpcAttachmentsResult>def get_tcr_vpc_attachments(id: Optional[str] = None,
                            instance_id: Optional[str] = None,
                            result_output_file: Optional[str] = None,
                            subnet_id: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTcrVpcAttachmentsResult
def get_tcr_vpc_attachments_output(id: Optional[pulumi.Input[str]] = None,
                            instance_id: Optional[pulumi.Input[str]] = None,
                            result_output_file: Optional[pulumi.Input[str]] = None,
                            subnet_id: Optional[pulumi.Input[str]] = None,
                            vpc_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTcrVpcAttachmentsResult]func GetTcrVpcAttachments(ctx *Context, args *GetTcrVpcAttachmentsArgs, opts ...InvokeOption) (*GetTcrVpcAttachmentsResult, error)
func GetTcrVpcAttachmentsOutput(ctx *Context, args *GetTcrVpcAttachmentsOutputArgs, opts ...InvokeOption) GetTcrVpcAttachmentsResultOutput> Note: This function is named GetTcrVpcAttachments in the Go SDK.
public static class GetTcrVpcAttachments 
{
    public static Task<GetTcrVpcAttachmentsResult> InvokeAsync(GetTcrVpcAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetTcrVpcAttachmentsResult> Invoke(GetTcrVpcAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTcrVpcAttachmentsResult> getTcrVpcAttachments(GetTcrVpcAttachmentsArgs args, InvokeOptions options)
public static Output<GetTcrVpcAttachmentsResult> getTcrVpcAttachments(GetTcrVpcAttachmentsArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getTcrVpcAttachments:getTcrVpcAttachments
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InstanceId string
- ID of the instance to query.
- Id string
- ResultOutput stringFile 
- Used to save results.
- SubnetId string
- ID of subnet to query.
- VpcId string
- ID of VPC to query.
- InstanceId string
- ID of the instance to query.
- Id string
- ResultOutput stringFile 
- Used to save results.
- SubnetId string
- ID of subnet to query.
- VpcId string
- ID of VPC to query.
- instanceId String
- ID of the instance to query.
- id String
- resultOutput StringFile 
- Used to save results.
- subnetId String
- ID of subnet to query.
- vpcId String
- ID of VPC to query.
- instanceId string
- ID of the instance to query.
- id string
- resultOutput stringFile 
- Used to save results.
- subnetId string
- ID of subnet to query.
- vpcId string
- ID of VPC to query.
- instance_id str
- ID of the instance to query.
- id str
- result_output_ strfile 
- Used to save results.
- subnet_id str
- ID of subnet to query.
- vpc_id str
- ID of VPC to query.
- instanceId String
- ID of the instance to query.
- id String
- resultOutput StringFile 
- Used to save results.
- subnetId String
- ID of subnet to query.
- vpcId String
- ID of VPC to query.
getTcrVpcAttachments Result
The following output properties are available:
- Id string
- InstanceId string
- VpcAttachment List<GetLists Tcr Vpc Attachments Vpc Attachment List> 
- Information list of the dedicated TCR namespaces.
- ResultOutput stringFile 
- SubnetId string
- ID of subnet.
- VpcId string
- ID of VPC.
- Id string
- InstanceId string
- VpcAttachment []GetLists Tcr Vpc Attachments Vpc Attachment List 
- Information list of the dedicated TCR namespaces.
- ResultOutput stringFile 
- SubnetId string
- ID of subnet.
- VpcId string
- ID of VPC.
- id String
- instanceId String
- vpcAttachment List<GetLists Tcr Vpc Attachments Vpc Attachment List> 
- Information list of the dedicated TCR namespaces.
- resultOutput StringFile 
- subnetId String
- ID of subnet.
- vpcId String
- ID of VPC.
- id string
- instanceId string
- vpcAttachment GetLists Tcr Vpc Attachments Vpc Attachment List[] 
- Information list of the dedicated TCR namespaces.
- resultOutput stringFile 
- subnetId string
- ID of subnet.
- vpcId string
- ID of VPC.
- id str
- instance_id str
- vpc_attachment_ Sequence[Getlists Tcr Vpc Attachments Vpc Attachment List] 
- Information list of the dedicated TCR namespaces.
- result_output_ strfile 
- subnet_id str
- ID of subnet.
- vpc_id str
- ID of VPC.
- id String
- instanceId String
- vpcAttachment List<Property Map>Lists 
- Information list of the dedicated TCR namespaces.
- resultOutput StringFile 
- subnetId String
- ID of subnet.
- vpcId String
- ID of VPC.
Supporting Types
GetTcrVpcAttachmentsVpcAttachmentList      
- AccessIp string
- IP address of this VPC access.
- EnablePublic boolDomain Dns 
- Whether to enable public domain dns.
- EnableVpc boolDomain Dns 
- Whether to enable vpc domain dns.
- Status string
- Status of this VPC access.
- SubnetId string
- ID of subnet to query.
- VpcId string
- ID of VPC to query.
- AccessIp string
- IP address of this VPC access.
- EnablePublic boolDomain Dns 
- Whether to enable public domain dns.
- EnableVpc boolDomain Dns 
- Whether to enable vpc domain dns.
- Status string
- Status of this VPC access.
- SubnetId string
- ID of subnet to query.
- VpcId string
- ID of VPC to query.
- accessIp String
- IP address of this VPC access.
- enablePublic BooleanDomain Dns 
- Whether to enable public domain dns.
- enableVpc BooleanDomain Dns 
- Whether to enable vpc domain dns.
- status String
- Status of this VPC access.
- subnetId String
- ID of subnet to query.
- vpcId String
- ID of VPC to query.
- accessIp string
- IP address of this VPC access.
- enablePublic booleanDomain Dns 
- Whether to enable public domain dns.
- enableVpc booleanDomain Dns 
- Whether to enable vpc domain dns.
- status string
- Status of this VPC access.
- subnetId string
- ID of subnet to query.
- vpcId string
- ID of VPC to query.
- access_ip str
- IP address of this VPC access.
- enable_public_ booldomain_ dns 
- Whether to enable public domain dns.
- enable_vpc_ booldomain_ dns 
- Whether to enable vpc domain dns.
- status str
- Status of this VPC access.
- subnet_id str
- ID of subnet to query.
- vpc_id str
- ID of VPC to query.
- accessIp String
- IP address of this VPC access.
- enablePublic BooleanDomain Dns 
- Whether to enable public domain dns.
- enableVpc BooleanDomain Dns 
- Whether to enable vpc domain dns.
- status String
- Status of this VPC access.
- subnetId String
- ID of subnet to query.
- vpcId String
- ID of VPC to query.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack