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

tencentcloud.getTcrVpcAttachments

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    InstanceId string
    ID of the instance to query.
    Id string
    ResultOutputFile string
    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
    ResultOutputFile string
    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
    resultOutputFile String
    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
    resultOutputFile string
    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_file str
    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
    resultOutputFile String
    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
    VpcAttachmentLists List<GetTcrVpcAttachmentsVpcAttachmentList>
    Information list of the dedicated TCR namespaces.
    ResultOutputFile string
    SubnetId string
    ID of subnet.
    VpcId string
    ID of VPC.
    Id string
    InstanceId string
    VpcAttachmentLists []GetTcrVpcAttachmentsVpcAttachmentList
    Information list of the dedicated TCR namespaces.
    ResultOutputFile string
    SubnetId string
    ID of subnet.
    VpcId string
    ID of VPC.
    id String
    instanceId String
    vpcAttachmentLists List<GetTcrVpcAttachmentsVpcAttachmentList>
    Information list of the dedicated TCR namespaces.
    resultOutputFile String
    subnetId String
    ID of subnet.
    vpcId String
    ID of VPC.
    id string
    instanceId string
    vpcAttachmentLists GetTcrVpcAttachmentsVpcAttachmentList[]
    Information list of the dedicated TCR namespaces.
    resultOutputFile string
    subnetId string
    ID of subnet.
    vpcId string
    ID of VPC.
    id str
    instance_id str
    vpc_attachment_lists Sequence[GetTcrVpcAttachmentsVpcAttachmentList]
    Information list of the dedicated TCR namespaces.
    result_output_file str
    subnet_id str
    ID of subnet.
    vpc_id str
    ID of VPC.
    id String
    instanceId String
    vpcAttachmentLists List<Property Map>
    Information list of the dedicated TCR namespaces.
    resultOutputFile String
    subnetId String
    ID of subnet.
    vpcId String
    ID of VPC.

    Supporting Types

    GetTcrVpcAttachmentsVpcAttachmentList

    AccessIp string
    IP address of this VPC access.
    EnablePublicDomainDns bool
    Whether to enable public domain dns.
    EnableVpcDomainDns bool
    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.
    EnablePublicDomainDns bool
    Whether to enable public domain dns.
    EnableVpcDomainDns bool
    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.
    enablePublicDomainDns Boolean
    Whether to enable public domain dns.
    enableVpcDomainDns Boolean
    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.
    enablePublicDomainDns boolean
    Whether to enable public domain dns.
    enableVpcDomainDns boolean
    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_domain_dns bool
    Whether to enable public domain dns.
    enable_vpc_domain_dns bool
    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.
    enablePublicDomainDns Boolean
    Whether to enable public domain dns.
    enableVpcDomainDns Boolean
    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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack