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

tencentcloud.getTcrInstances

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 instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const name = tencentcloud.getTcrInstances({
        name: "test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name = tencentcloud.get_tcr_instances(name="test")
    
    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.GetTcrInstances(ctx, &tencentcloud.GetTcrInstancesArgs{
    			Name: pulumi.StringRef("test"),
    		}, 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 name = Tencentcloud.GetTcrInstances.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    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.GetTcrInstancesArgs;
    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 name = TencentcloudFunctions.getTcrInstances(GetTcrInstancesArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      name:
        fn::invoke:
          function: tencentcloud:getTcrInstances
          arguments:
            name: test
    

    Using getTcrInstances

    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 getTcrInstances(args: GetTcrInstancesArgs, opts?: InvokeOptions): Promise<GetTcrInstancesResult>
    function getTcrInstancesOutput(args: GetTcrInstancesOutputArgs, opts?: InvokeOptions): Output<GetTcrInstancesResult>
    def get_tcr_instances(id: Optional[str] = None,
                          instance_id: Optional[str] = None,
                          name: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetTcrInstancesResult
    def get_tcr_instances_output(id: Optional[pulumi.Input[str]] = None,
                          instance_id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetTcrInstancesResult]
    func GetTcrInstances(ctx *Context, args *GetTcrInstancesArgs, opts ...InvokeOption) (*GetTcrInstancesResult, error)
    func GetTcrInstancesOutput(ctx *Context, args *GetTcrInstancesOutputArgs, opts ...InvokeOption) GetTcrInstancesResultOutput

    > Note: This function is named GetTcrInstances in the Go SDK.

    public static class GetTcrInstances 
    {
        public static Task<GetTcrInstancesResult> InvokeAsync(GetTcrInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetTcrInstancesResult> Invoke(GetTcrInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTcrInstancesResult> getTcrInstances(GetTcrInstancesArgs args, InvokeOptions options)
    public static Output<GetTcrInstancesResult> getTcrInstances(GetTcrInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTcrInstances:getTcrInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the TCR instance.
    InstanceId string
    ID of the TCR instance to query.
    Name string
    Name of the TCR instance to query.
    ResultOutputFile string
    Used to save results.
    Id string
    ID of the TCR instance.
    InstanceId string
    ID of the TCR instance to query.
    Name string
    Name of the TCR instance to query.
    ResultOutputFile string
    Used to save results.
    id String
    ID of the TCR instance.
    instanceId String
    ID of the TCR instance to query.
    name String
    Name of the TCR instance to query.
    resultOutputFile String
    Used to save results.
    id string
    ID of the TCR instance.
    instanceId string
    ID of the TCR instance to query.
    name string
    Name of the TCR instance to query.
    resultOutputFile string
    Used to save results.
    id str
    ID of the TCR instance.
    instance_id str
    ID of the TCR instance to query.
    name str
    Name of the TCR instance to query.
    result_output_file str
    Used to save results.
    id String
    ID of the TCR instance.
    instanceId String
    ID of the TCR instance to query.
    name String
    Name of the TCR instance to query.
    resultOutputFile String
    Used to save results.

    getTcrInstances Result

    The following output properties are available:

    Id string
    ID of the TCR instance.
    InstanceLists List<GetTcrInstancesInstanceList>
    Information list of the dedicated TCR instances.
    InstanceId string
    Name string
    Name of TCR instance.
    ResultOutputFile string
    Id string
    ID of the TCR instance.
    InstanceLists []GetTcrInstancesInstanceList
    Information list of the dedicated TCR instances.
    InstanceId string
    Name string
    Name of TCR instance.
    ResultOutputFile string
    id String
    ID of the TCR instance.
    instanceLists List<GetTcrInstancesInstanceList>
    Information list of the dedicated TCR instances.
    instanceId String
    name String
    Name of TCR instance.
    resultOutputFile String
    id string
    ID of the TCR instance.
    instanceLists GetTcrInstancesInstanceList[]
    Information list of the dedicated TCR instances.
    instanceId string
    name string
    Name of TCR instance.
    resultOutputFile string
    id str
    ID of the TCR instance.
    instance_lists Sequence[GetTcrInstancesInstanceList]
    Information list of the dedicated TCR instances.
    instance_id str
    name str
    Name of TCR instance.
    result_output_file str
    id String
    ID of the TCR instance.
    instanceLists List<Property Map>
    Information list of the dedicated TCR instances.
    instanceId String
    name String
    Name of TCR instance.
    resultOutputFile String

    Supporting Types

    GetTcrInstancesInstanceList

    Id string
    ID of the TCR instance.
    InstanceType string
    Instance type.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    Name string
    Name of the TCR instance to query.
    PublicDomain string
    Public address for access of the TCR instance.
    Status string
    Status of the TCR instance.
    Tags Dictionary<string, string>
    Tags of the TCR instance.
    Id string
    ID of the TCR instance.
    InstanceType string
    Instance type.
    InternalEndPoint string
    Internal address for access of the TCR instance.
    Name string
    Name of the TCR instance to query.
    PublicDomain string
    Public address for access of the TCR instance.
    Status string
    Status of the TCR instance.
    Tags map[string]string
    Tags of the TCR instance.
    id String
    ID of the TCR instance.
    instanceType String
    Instance type.
    internalEndPoint String
    Internal address for access of the TCR instance.
    name String
    Name of the TCR instance to query.
    publicDomain String
    Public address for access of the TCR instance.
    status String
    Status of the TCR instance.
    tags Map<String,String>
    Tags of the TCR instance.
    id string
    ID of the TCR instance.
    instanceType string
    Instance type.
    internalEndPoint string
    Internal address for access of the TCR instance.
    name string
    Name of the TCR instance to query.
    publicDomain string
    Public address for access of the TCR instance.
    status string
    Status of the TCR instance.
    tags {[key: string]: string}
    Tags of the TCR instance.
    id str
    ID of the TCR instance.
    instance_type str
    Instance type.
    internal_end_point str
    Internal address for access of the TCR instance.
    name str
    Name of the TCR instance to query.
    public_domain str
    Public address for access of the TCR instance.
    status str
    Status of the TCR instance.
    tags Mapping[str, str]
    Tags of the TCR instance.
    id String
    ID of the TCR instance.
    instanceType String
    Instance type.
    internalEndPoint String
    Internal address for access of the TCR instance.
    name String
    Name of the TCR instance to query.
    publicDomain String
    Public address for access of the TCR instance.
    status String
    Status of the TCR instance.
    tags Map<String>
    Tags of the TCR instance.

    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