tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTcrVpcAttachments
Explore with Pulumi AI
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:
- Instance
Id string - ID of the instance to query.
- Id string
- Result
Output stringFile - Used to save results.
- Subnet
Id string - ID of subnet to query.
- Vpc
Id string - ID of VPC to query.
- Instance
Id string - ID of the instance to query.
- Id string
- Result
Output stringFile - Used to save results.
- Subnet
Id string - ID of subnet to query.
- Vpc
Id string - ID of VPC to query.
- instance
Id String - ID of the instance to query.
- id String
- result
Output StringFile - Used to save results.
- subnet
Id String - ID of subnet to query.
- vpc
Id String - ID of VPC to query.
- instance
Id string - ID of the instance to query.
- id string
- result
Output stringFile - Used to save results.
- subnet
Id string - ID of subnet to query.
- vpc
Id 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.
- instance
Id String - ID of the instance to query.
- id String
- result
Output StringFile - Used to save results.
- subnet
Id String - ID of subnet to query.
- vpc
Id String - ID of VPC to query.
getTcrVpcAttachments Result
The following output properties are available:
- Id string
- Instance
Id string - Vpc
Attachment List<GetLists Tcr Vpc Attachments Vpc Attachment List> - Information list of the dedicated TCR namespaces.
- Result
Output stringFile - Subnet
Id string - ID of subnet.
- Vpc
Id string - ID of VPC.
- Id string
- Instance
Id string - Vpc
Attachment []GetLists Tcr Vpc Attachments Vpc Attachment List - Information list of the dedicated TCR namespaces.
- Result
Output stringFile - Subnet
Id string - ID of subnet.
- Vpc
Id string - ID of VPC.
- id String
- instance
Id String - vpc
Attachment List<GetLists Tcr Vpc Attachments Vpc Attachment List> - Information list of the dedicated TCR namespaces.
- result
Output StringFile - subnet
Id String - ID of subnet.
- vpc
Id String - ID of VPC.
- id string
- instance
Id string - vpc
Attachment GetLists Tcr Vpc Attachments Vpc Attachment List[] - Information list of the dedicated TCR namespaces.
- result
Output stringFile - subnet
Id string - ID of subnet.
- vpc
Id 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
- instance
Id String - vpc
Attachment List<Property Map>Lists - Information list of the dedicated TCR namespaces.
- result
Output StringFile - subnet
Id String - ID of subnet.
- vpc
Id String - ID of VPC.
Supporting Types
GetTcrVpcAttachmentsVpcAttachmentList
- Access
Ip string - 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 string
- Status of this VPC access.
- Subnet
Id string - ID of subnet to query.
- Vpc
Id string - ID of VPC to query.
- Access
Ip string - 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 string
- Status of this VPC access.
- Subnet
Id string - ID of subnet to query.
- Vpc
Id string - ID of VPC to query.
- access
Ip String - IP address of this VPC access.
- enable
Public BooleanDomain Dns - Whether to enable public domain dns.
- enable
Vpc BooleanDomain Dns - Whether to enable vpc domain dns.
- status String
- Status of this VPC access.
- subnet
Id String - ID of subnet to query.
- vpc
Id String - ID of VPC to query.
- access
Ip string - IP address of this VPC access.
- enable
Public booleanDomain Dns - Whether to enable public domain dns.
- enable
Vpc booleanDomain Dns - Whether to enable vpc domain dns.
- status string
- Status of this VPC access.
- subnet
Id string - ID of subnet to query.
- vpc
Id 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.
- access
Ip String - IP address of this VPC access.
- enable
Public BooleanDomain Dns - Whether to enable public domain dns.
- enable
Vpc BooleanDomain Dns - Whether to enable vpc domain dns.
- status String
- Status of this VPC access.
- subnet
Id String - ID of subnet to query.
- vpc
Id 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack